m2eclipse

Maven for Eclipse (M2E) Installation error

萝らか妹 提交于 2019-12-10 00:58:43
问题 Error Details: Cannot complete the install because one or more required items could not be found. Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317) Missing requirement: Maven Integration for Eclipse (Editors) 1.4.0.20130601-0317 (org.eclipse.m2e.editor 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found Cannot satisfy dependency: From: m2e - Maven Integration for

Maven 2 project error icon in Eclipse

≯℡__Kan透↙ 提交于 2019-12-09 17:03:01
问题 I have create multi-module maven project in Eclipse IDE (already installed M2Eclipse plugin). There I can build my project successfully. But after build also it shows errors icon in my every module project. What kind of issue it can be? Thank You. 回答1: Without knowing what errors you are seeing I am going to assume that your issue is with eclipse project properties (build path, src directory specification, output classes directory, etc). You tagged m2eclipse plugin, so you should be able to

Eclipse + Maven + Groovy: src/test/groovy directory gets removed after update project configuration

你。 提交于 2019-12-09 13:37:05
问题 I'm developing a Java web project in Eclipse (STS version 2.8.1.RELEASE) with Maven (version 2.2.1) and unit tests written in Groovy. The unit tests are located under src/test/groovy . Furthermore I'm using the m2eclipse plugin for Eclipse (version 1.0) and the Gmaven plugin in Maven (version 1.3). Building in Maven works without problems: the groovy files are compiled and executed as tests. For the unit tests to work in Eclipse I added the Groovy nature to the project, added the folder src

How to add dependencies to 3rd party library using nexus/maven

ⅰ亾dé卋堺 提交于 2019-12-09 11:03:07
问题 i'm trying to use Nexus + m2eclipse/maven-3 professionnally, and i've got a huge 3rd party library that needs a lot of dependencies. Is there any ways to ease my pain by uploading to Nexus this third party library with all its dependencies linked, so that anyone who would need it would just have to add the maven-dependency-tag only for this huge library ? Do i need to create the pom myself ? thank you for your help. 回答1: Is there any ways to ease my pain by uploading to Nexus this third party

GWT Maven Eclipse Plugin - Compilation Fails Due to Duplicate Class

为君一笑 提交于 2019-12-09 08:59:04
问题 I am using Eclipse 3.5 (Galileo) with m2eclipse and GWT Eclipse plugins installed. I created a project using the gwt-maven-plugin archetype. I have created an RPC service defined with these classes: my.package.client.DataService my.package.client.DataServiceAsync my.package.server.DataServiceImpl When I run mvn clean , the target directory is removed (as exepected). When I run gwt:compile gwt:run -X -e , I get the error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler

Is there a permanent fix for Eclipse Deployment Assembly losing the Maven Dependencies?

送分小仙女□ 提交于 2019-12-09 05:22:59
问题 I had a problem similar to this (java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener), the difference in my case is that the common fix (adding Maven Dependencies to Deployment Assembly) is only temporary and it breaks every time I do a Maven Update, which is not too frequent, but just enough to be a real nuisance. Is there a permanent fix? DETAILS This is the error I get And I fix it by going here: Then here: and finally here... Here's what it looks like

Multiple maven pom.xml files

烂漫一生 提交于 2019-12-08 20:23:08
问题 I have an Eclipse project with a GWT client and a Restlet API. I normally use Maven for dependency management but I havent used it in an Eclipse project where seperate parts have seperate dependencies. For example - the client would use Google Gin for dependency injection and the server uses Google Guice. Am I able to split it into two seperate pom.xml files to manage the dependencies of both seperate areas? Thanks 回答1: You can create a multi module project. See examples here and here and

M2Eclipse: Resolving Maven dependencies from the Eclipse workspace

本秂侑毒 提交于 2019-12-08 19:18:27
问题 The M2Eclipse Homepage states that the plugin is capable of the following: Resolving Maven dependencies from the Eclipse workspace without installing to local Maven repository As I did not find any documentation, I could not figure out what this exactly means and how it is done. I am especially interested in cases where a project in workspace corresponds to two different jars (which both contain parts of the classes). 回答1: The Eclipse workspace (when using M2E) acts as a local maven

Maven warning on MacOS: Workspace defines a VM that does not contain a valid jre/lib/rt.jar

坚强是说给别人听的谎言 提交于 2019-12-08 16:51:25
问题 I am trying to clean my Maven and I am getting this warning when I run mvn eclipse:eclipse -Dwtpversion=2.0 [WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Does any one have a clue on how to fix it? I am on MacOS. Here is what I have configured for my eclipse: 回答1: There is a patch here, but it has not been applied to any release so far. :-( As a workaround you can create a symlink as described

Plugin execution not covered by lifecycle configuration

Deadly 提交于 2019-12-08 14:52:24
问题 I am newbiee to maven. I am trying to add JAXB2 plugin and dependencies to generate xml files from xsd. When I add underneath dependencies then a error is thrown under markers:- Plugin execution not covered by lifecycle configuration: org.jvnet.jaxb2.maven2: maven-jaxb2-plugin:0.7.4:generate(execution: default, phase: generate-sources) The error is marked over tag in jaxb2 plugin. I added this tag in reference to solutions over internet, but nothing works. My pom.xml looks like this:- <build>