m2eclipse

Maven in Eclipse complains that “Unable to locate the Javac Compiler” whenever POM changed

断了今生、忘了曾经 提交于 2019-11-26 20:00:48
问题 I got error message every time I changed my pom.xml in eclipse. Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web: Compilation failure Unable to locate the Javac Compiler in: C:\Program Files (x86)\Java\jre6\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases

Classic error: Unable to update index for central|http://repo1.maven.org/maven2

ぐ巨炮叔叔 提交于 2019-11-26 19:43:34
问题 I am facing a situation where my eclipse indigo is "Unable to update index for central|http://repo1.maven.org/maven2" . I am using an external Maven 3.0.3 installation and m2eclipse configured with Eclipse Indigo and I am definitely not behind any proxy. Also my networking configuration in eclipse is all set to direct and I am still unable to update the indices. What may I have overlooked? I have searched on Google and other forums but am unable to resolve it. 回答1: From Wojtek's link. Close

Maven and eclipse: a reliable way to add non-Maven or external jars to a project?

蓝咒 提交于 2019-11-26 19:29:13
问题 Maven is great. It mostly keeps me out of jar dependency hell by specifying versions of dependent packages in the pom configuration, and applies them automatically. It also has great integration with Eclipse via m2e, so that things work seamlessly in an IDE. This is all great for dependencies that are globally known to Maven. However, sometimes, there are libraries that need to be included in a project that is not available in the Maven repos. In this case, I usually add them to a lib/

What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?

六月ゝ 毕业季﹏ 提交于 2019-11-26 19:19:36
I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default Preferences->Java->Installed JREs . When I changed the Maven project to use the 1.6 JRE it still had the build errors left over from when the project was using Java 1.5 (I described these build errors earlier in: I have build errors with m2eclipse but not with maven2 on the command line - is my m2eclipse misconfigured? ) I'm going to delete the project and try again but I want to make sure this time that it uses Java 1.6 from the start to see if this eliminates the build problems. How do I

get rid of POM not found warning for org.eclipse.m2e:lifecycle-mapping

纵饮孤独 提交于 2019-11-26 19:05:22
问题 With intent to get m2e 1.0 working correctly I have had to specify the lifecycle mapping: <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <versionRange>[2.0.2,)</versionRange> <goals> <goal>process</goal> </goals> <

Maven “Module” vs “Project” (Eclipse, m2eclipse plugin)

痞子三分冷 提交于 2019-11-26 18:48:52
问题 I'm a beginner at Maven and I've played with it from a command line point of view a little, so now I was trying to use it in Eclipse; I installed the m2eclipse plugin to do so. But I'm stumped from the very beginning! Apparently I've missed a bit of terminology somewhere along the line. I can't keep track of all these new Maven terms... What is a Maven Project, and what is a Maven Module? These are my options when creating a new project in the Maven category in Eclipse. 回答1: They are

How do I start Maven “compile” goal on save in Eclipse?

前提是你 提交于 2019-11-26 18:01:20
问题 I have a Maven project with JavaScript code. There is a special javascript compiler plugin connected to the compile goal in the pom.xml. So when I type "mvn compile" then the JavaScript sources in src/main/javascript are compiled (compressed and obfuscated) and saved into the target/classes directory. On the command line this works great. But now I want to make the development easier by using Eclipse with the m2eclipse plugin. I want Eclipse to call the compile goal whenever I change a

How to fix error “Updating Maven Project”. Unsupported IClasspathEntry kind=4?

假如想象 提交于 2019-11-26 17:54:01
问题 I have imported maven project in STS, when I run update update project I receive: "Updating Maven Project". Unsupported IClasspathEntry kind=4 Is there a workaround for this? 回答1: This issue has been fixed in m2e 1.5.0 which is available for Eclipse Kepler (4.3) and Luna (4.4) Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=374332#c14 The problem is caused by the fact that STS (the Spring IDE/Eclipse), as well Eclipse and other Eclipse based IDE's, use the m2e(clipse) plugin but that

Maven2: Missing artifact but jars are in place

我只是一个虾纸丫 提交于 2019-11-26 16:59:43
From now to then, my Maven 2 started to mess around. I am using SPring STS 2.6.1 and have a single project based on Spring 3, Hibernate, DWR, Cometd and all that stuff. Today I just updated from Git und all of a sudden, I got that scary mvn exclamation mark (!) next to my project. After hitting "Project -> Maven -> Update dependencies" I just receive: 24.05.11 15:26:58 MESZ: Missing artifact org.jdom:jdom:jar:1.1:compile 24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-common:jar:1.3.0:compile 24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-core:jar:1.3.0:compile 24

Can I Configure m2eclipse through pom.xml?

左心房为你撑大大i 提交于 2019-11-26 16:44:09
问题 With the maven-eclipse-plugin, using mvn eclipse:eclipse, you can specifiy eclipse project natures and builders that will automatically be added to the eclipse project. Earlier versions of m2eclipse used the configuration block of the maven-eclipse-plugin and also let you activate natures and builders using the same mechanisms. This seems to no longer be the case because a) I can't find any reference to maven-eclipse-plugin in the m2eclipse sources and b) it just doesn't work :-) So this is