m2eclipse

m2eclipse cannot update index from central repo

泄露秘密 提交于 2019-12-18 03:21:14
问题 I have just downloaded and installed M2Eclipse, but it fails to update the index of the central repo. At the same time, Maven itself is able to download artifacts from the repo (via command line). I had the settings.xml file in maven/conf , and I copied it to .m2/ directory, but it didn't help. I have proxy, but proxy settings are given in settings.xml - commands from command line work fine, but not in Eclipse. In Eclipse it gives me this: Unable to update index for central|http://repo1.maven

How do Java and Maven builders work together in eclipse?

*爱你&永不变心* 提交于 2019-12-17 23:18:31
问题 do I understand correctly, that Java builder recompiles sources on scr path to the output path, which usually happens after each "ctrl + s" if automatic building is activated or via "ctrl + b" or throws validation errors from javac. As to Maven2Bulder. I just cloned m2e-core git repository and there is the corresponding class org.eclipse.m2e.core.internal.builder.MavenBuilder, which is quite complicated stuff. <projectDescription> <name>modeshape-example-repositories</name> <comment></comment

Why am I receiving a “Plugin execution not covered by lifecycle configuration with GWT” error?

痴心易碎 提交于 2019-12-17 22:35:44
问题 I'm using STS and I imported a GWT project from another machine. The project uses m2eclipse. I'm getting these two errors when building the project: Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:gwt-maven-plugin:2.2.0:i18n (execution: default, phase: generate-sources) pom.xml /contactsgwt line 175 Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-war-plugin:2.1.1:exploded (execution: default, phase: compile) pom.xml

An internal error occurred during: “Updating Maven Project”. java.lang.NullPointerException

自作多情 提交于 2019-12-17 21:43:43
问题 I'm developing a Java EE web project. When I try to add a dependency, this error message appears. I use Eclipse Kepler. An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException Could you help me? Thank you. 回答1: I solved mine by deleting the .settings folder and .project file in the project and then reimporting the project. 回答2: For me worked the answer I found on CodeRanch, by user Maneesh Godbole : Close eclipse. Navigate to your "workspace" folder Ensure

How to tell M2Eclipse to install jar file as a maven dependency

久未见 提交于 2019-12-17 18:15:12
问题 I want to add jpoller.jar as a maven dependency, so I edited my pom.xml file to include it: <dependency> <groupId>org.sadun</groupId> <artifactId>jpoller</artifactId> <version>1.5.2</version> </dependency> Now, as expected, when I compile from the command line I get an error because jpoller isn't in any of the repositories I have listed in my pom, nor could I find one for it. Although I could create a repository for it, I'd rather not at this point. Thus, I get the following error: [INFO]

How To: Eclipse Maven install build jar with dependencies

倖福魔咒の 提交于 2019-12-17 17:32:34
问题 I am using Eclipse Maven (m2e) inside Eclipse and I am running my project like this: My pom.xml looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>ro.project</groupId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>ro.project</name> <properties> <org.springframework

Java compiler level does not match the version of the installed Java project facet

孤街浪徒 提交于 2019-12-17 17:19:25
问题 I have created a New Dynamic Project under Eclipse Helios Version, where my JRE Version is set to 1.6. I have added Maven capabilities to the Web Application by clicking on Configure → Convert to Maven Project . After adding this, a build error appeared in the Eclipse Problems view: Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch) Please tell me how to resolve this error (I want to have my JRE version

m2Eclipse plugin: What does 'Resolve Workspace Artifacts' do?

此生再无相见时 提交于 2019-12-17 15:38:40
问题 I'm sorry if I am asking a possibly-trivial question, but I am having so much trouble finding out exactly what Resolve Workspace Artifacts does in the Maven build window in the Eclipse IDE, using the M2Eclipse plugin. I'm referring to this: Does anyone have any idea? I tried google-ing and stackoverflow-ing the solution; there are lots of bug requests/reports but no clear-cut descriptions of this option. Thanks for the help. 回答1: Assume you have two or more projects in your workspace e.g.

Plugin error: execution not covered by lifecycle configuration

我是研究僧i 提交于 2019-12-17 10:49:20
问题 I am trying to use the maven-warpath-plugin available here. But I keep getting an error in my pom.xml file that says: Plugin execution not covered by lifecycle configuration: org.appfuse.plugins:maven-warpath-plugin:2.1.0:add-classes (execution: default, phase: generate-sources) How do I resolve this? Here is my pom.xml snippet for the plugin: <plugin> <groupId>org.appfuse.plugins</groupId> <artifactId>maven-warpath-plugin</artifactId> <version>2.1.0</version> <extensions>true</extensions>

Compiler error “archive for required library could not be read” - Spring Tool Suite

吃可爱长大的小学妹 提交于 2019-12-17 08:30:56
问题 I am starting to configure my development environment and I am using Spring Tool Suite 2.8.1 along with m2E 1.01. As far as I can tell, since this is a Maven Project (my first), my Maven POM is dictating (along with m2E smarts) my project build configuration and dependencies. What I would like to know is why my IDE is displaying Java Build Problems that read "Archive required for library library/path/somejar.jar cannot be read or is not a valid zip file" when I can see the jars in my .m2