m2eclipse

Compile maven projects with JDK 1.6 in Eclipse Mars

折月煮酒 提交于 2020-01-02 16:20:22
问题 I need older version of m2e because I need to use older maven version (I have to compile some projects with JDK 1.6). Here the exception when launch any build (with java 1.6) in Mars: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at

Maven Build Failure - failure to find plugins

久未见 提交于 2020-01-02 04:57:05
问题 I have created a project using the m2 eclipse tool and selected the web application archetype now if I try to package this empty application I get a build failure saying [ERROR] Plugin org.apache.maven.plugins:maven-war-plugin:2.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-war-plugin:jar:2.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update in terval of central has

Eclipse Juno build error with “Maven Project Builder”

两盒软妹~` 提交于 2020-01-02 00:43:05
问题 When I try to clean & build my Maven project I get the following error: Errors occurred during the build. Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'. org/apache/maven/project/MavenProject Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'. org/apache/maven/project/MavenProject similarly with the clean all process, it throws the following: Errors occurred during the build. Errors running builder 'Maven Project Builder' on project

How do I get m2eclipse to recognize $M2_OPTS?

谁说胖子不能爱 提交于 2020-01-01 07:08:11
问题 It appears m2eclipse is not recognizing my $M2_OPTS variable. I can run the same build outside of eclipse fine (with cranked up heapsize): [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51 seconds [INFO] Finished at: Tue Nov 10 00:00:02 EST 2009 [INFO] Final Memory: 72M/187M [INFO] ----------------------------------------------------------

How do I get m2eclipse to recognize $M2_OPTS?

你。 提交于 2020-01-01 07:08:06
问题 It appears m2eclipse is not recognizing my $M2_OPTS variable. I can run the same build outside of eclipse fine (with cranked up heapsize): [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51 seconds [INFO] Finished at: Tue Nov 10 00:00:02 EST 2009 [INFO] Final Memory: 72M/187M [INFO] ----------------------------------------------------------

How to create new Eclipse RCP project using Maven?

蹲街弑〆低调 提交于 2020-01-01 00:45:17
问题 How to create new Eclipse RCP project using Maven (preferably m2eclipse)? I read that there's plug-in for Maven that have idea about Eclipse. (Maven Eclipse Plugin) And then it looks like I need to find some Maven Archetype to create Eclipse RCP project, but I could not. At this point I am in doubt if I go right way. I just want to use maven dependencies resolution and other features in my RCP application development. P.S. I found that it is possible to "Enable Dependency Management" via

No Maven menu items in Eclipse Indigo SR2 EE even after m2e + DWM install

泄露秘密 提交于 2019-12-31 02:55:33
问题 I've installed Eclipse Indigo SR2 EE: Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857 and even after installing m2e from Marketplace I don't have any Maven menu items in File->Import, File->New->Project..., or Window->Preferences. I'm really confused. I'm on a Fedora 17 x64 machine - and my other Fedora 17 x64 machine at work works fine with the same version of Eclipse! m2e is clearly shown in "Installed Software": m2e - Maven Integration for

How to get Maven plugin to use Eclipse workspace resolution?

亡梦爱人 提交于 2019-12-31 02:46:05
问题 I'm developing a Maven plugin. It's going to be used during development, and it would greatly increase our productivity if the plugin would include -SNAPSHOT projects in Eclipse on the classpath. In other words, use Eclipse workspace resolution instead of getting the artifacts for these other projects out of the repository. I tried to set this annotation in the plugin: @requiresDependencyResolution compile but it didn't solve the problem. Anyone know how to do this? 来源: https://stackoverflow

Maven m2e enforces its own compiler settings - disable

北城余情 提交于 2019-12-30 08:23:09
问题 After starting Eclipse, Mven seems to set the compiler settings to 1.5 and forget all the other global code style settings to ensure a higher code quality. Is there some way to disable this feature? Or can I specify all compiler and code style checks in my POM? It is very annoying because Ecplise can't run the app because of not allowed override annotations for interfaces. The tick in Java compiler -> Enable project specific settings is always set after a restart. 回答1: You can set the

Jacoco Maven Plugin - Plugin execution not covered by lifecycle configuration

旧城冷巷雨未停 提交于 2019-12-30 05:38:11
问题 I'm new to Maven and want to use the Jacoco Maven Plugin to build my projects. I've set up an example project with TestNG the only dependency. Here is part of the pom.xml: <dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.6.2.201302030002</version> <executions> <execution> <goals> <goal