m2eclipse

Problems by import of a multiple modules maven 2 project into eclipse workspace

梦想与她 提交于 2019-12-22 11:11:09
问题 I was wondering if someone has experienced the same problem as me and can help me. I have a maven project which contains 6 modules. Some of modules are depending on each other. The project is written in Java and builds to jars, wars and aar. I've been trying to import it to Eclipse with the m2eclipse plug-in. It seems to work fine until the project builds. During the build process I get hundreds of errors complaining about missing Java files which are generated. As I found out eclipse can't

Failed eclipse update when trying to install eclipse

纵然是瞬间 提交于 2019-12-22 10:44:28
问题 When trying to install eclipse using the eclipse new software feature, I get this error: Cannot complete the install because one or more required items could not be found. Software being installed: Maven SCM handler for Subclipse (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.8.200905041414) Missing requirement: Maven SCM handler for Subclipse (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.8.200905041414)

Maven workspace resolution missing jars for local Tomcat testing

痞子三分冷 提交于 2019-12-22 10:04:57
问题 I have a mavenized project with dependencies upon 4 others mavenized projects that my team is currently working on. We have "workspace resolution" enabled. If I publish to Tomcat, jars are not available for the 4 projects so I see all sorts of NoClassDefFoundError exceptions. I don't see any problems with JUnit testing or packaging. (I run the package goal and the resulting war file includes the SNAPSHOT jars that I expect.) I see a lot of people advocating for using workspace resolution, but

Eclipse WTP / m2eclipse - can neither clean nor publish to tomcat

半城伤御伤魂 提交于 2019-12-22 09:08:51
问题 I'm working on a pretty complex project (Java / Spring / Maven multi-module) with WAR overlays in Eclipse Indigo Java EE (heavily using m2eclipse) on Ubuntu 11.10 / 64bit All good till this morning: I cannot clean / publish to tomcat anymore: Publishing failed Could not delete <directory> May be locked by another process. I can easily delete these files by hand (but still tomcat cannot publish), and I cannot find out which process might be locking it (linux: lsof <directory> ) I tried a sh.

Eclipse has no Java facet version 1.8

≡放荡痞女 提交于 2019-12-21 16:53:43
问题 I am using eclipse Kepler (enterprise edition), Java 8, and M2Eclipse and trying to make a web application. I have already gone to help -> eclipse marketplace and installed these two patches: Java 8 support for Eclipse Kepler SR2 Java 8 support for m2e for Eclipse Kepler SR2 Those patches cleared up a lot of my problems, but one remains. I did a maven -> update from within eclipse, it went and updated all my projects except the only web app in my workspace. It gives me a pop up message that

Restore maven plugin for a project on eclipse

孤者浪人 提交于 2019-12-21 06:48:27
问题 I've disabled m2eclipse plugin for a project by clicking on "Disable Maven Nature" as shown in the Figure below. Then the Maven entry disappeared from the menu and I'm unable to restore it. How do I restore/reset/re-enable so that the entry appears again? PS 1: I'd like to do that without re-importing the project. PS 2: I've looked in ${WORKSPACE}/.metadata\.plugins\org.eclipse.m2e.core.ui and ${WORKSPACE}/.metadata\.plugins\org.eclipse.m2e.core but nothing seems related. 回答1: Solution: Go to

I have build errors with m2eclipse but not with maven2 on the command line - is my m2eclipse misconfigured?

大兔子大兔子 提交于 2019-12-21 04:03:27
问题 I installed m2eclipse to build a java project in Eclipse. I imported the project as follows: Import-> Maven-> Existing Maven Projects-> Import Maven Projects-> - Select root directory - Select pom file - Click Finish To be sure m2eclipse was actually building the project, I deleted the target directory and made sure it was re-created by m2eclipse and it was. But unlike with the command-line version of maven which built everything perfectly, m2eclipse leaves a large number of build errors in

Using maven console with m2eclipse

给你一囗甜甜゛ 提交于 2019-12-20 20:31:09
问题 Maven newb here.. Is there any way to open a console in eclipse and execute maven commands on the M2Eclipse plugin? It's a pretty nice plugin but I'm looking around and not finding some of the functionalities that I want. Thanks! 回答1: If you want to run a specific maven plugin, You can do this ==> Right click on pom.xml ==> Run as ==> Maven build ==> It will open a pop up You can type the goal that you want run, Type your goal in the Goals: input box Goal : compile ==> Run This will run

Eclipse Indigo for Java EE + Maven plugin = the Maven menu does not appear in import and preference

限于喜欢 提交于 2019-12-20 11:30:15
问题 I have used Indigo Java (not Java EE) and the maven plugin is already installed. Or at least, I know I have the possibility to import a Maven Project without installing anything. But then I wanted to use Eclipse Indigo for Java EE developers. This version does not have maven already installed. I can not import a maven project. So I decided to install the m2e plugin. And I have tried to install it many different ways (information on theses sites): http://code.google.com/p/google-web-toolkit

Maven - Suppress Overriding managed version warning in Eclipse

五迷三道 提交于 2019-12-20 09:27:42
问题 I am using spring-boot , and experienced an error similar to the one described here. I added the following to my pom.xml. <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId><!--$NO-MVN-MAN-VER$--> <version>1.1.0.Final</version> </dependency> I am overriding the validation-api 1.0.0 dependency defined in my parent pom.xml, by way of Spring boot, and this gives the pesky warning message: Overriding managed version 1.0.0.GA for validation-api How can I