m2eclipse

Is maven-eclipse-plugin no longer needed with the new M2Eclipse in Indigo?

邮差的信 提交于 2019-12-02 21:02:48
Historically, its been a major hassle for our team to import our multi-module Maven project into Eclipse given all the Flex, WTP, and GWT stuff in there. We were recently thinking that the maven-eclipse-plugin could help us by generating the appropriate Eclipse project files. However, it seems now that the M2Eclipse plugin has been swallowed up by Eclipse and importing Maven projects now seems to read the pom and try to do the Right Thing. Does this mean the maven-eclipse-plugin is essentially obsolete? What can we do to help our projects import into Eclipse in the best possible way? maven

How to tell Eclipse to ignore errors in an Ant build.xml?

橙三吉。 提交于 2019-12-02 20:22:19
I have an Eclipse project which is built using Maven, and I'm using the m2eclipse plugin inside Eclipse for it's Maven support. However this project also contains a build.xml which is not used for actually building the project, but just for scripting capabilities as a utility for developers on the project - it is not used in building or packaging the product (just helping to automate some side tasks the developers often have to invoke on the side). Whenever this file is opened in an editor in Eclipse, Eclipse notices what it thinks is a problem with some missing declarations in the build.xml

Maven - Suppress Overriding managed version warning in Eclipse

余生长醉 提交于 2019-12-02 20:10:16
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 permanently suppress this warning message in Eclipse? It shows up both in my pom.xml and my problems view.

m2e: Generated code with exec-maven-plugin

守給你的承諾、 提交于 2019-12-02 19:17:33
I have been using m2eclipse for 2 years or so and have now switched to m2e . Unfortunately, this has broken some functionality for me. In many projects, I have generated Java code, usually generated through a main class in a library project. Here's a typical setup: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <id>generateDTOs</id> <phase>generate-sources</phase> <goals> <goal>java</goal> </goals> <configuration> <classpathScope>test</classpathScope> <mainClass>com.somecompany.SomeCodeGenerator</mainClass> <arguments>

alternative to maven scm connector subclipse (not working with subclipse1.8)?

坚强是说给别人听的谎言 提交于 2019-12-02 18:32:05
So for my project I am in need of Subclipse 1.8.x. This has been well and good, but the maven SCM handler for subclipse is only compatible with Subclipse 1.6.x. I like this plugin because it automatically loads modules (and detects them), so you can store your poms in a hierarchical fashion in svn. ( parent / module + module / module) etc. and checking out a multi-module maven project with the handler only requires one check out. Since I cannot count on that working, how should I store multi-module maven projects in svn? Store them flat-level (Eclipse-style) in svn, check them out one at a

How to configure maven install to skip tests in eclipse?

大城市里の小女人 提交于 2019-12-02 17:37:16
i was wondering if it's possible to configure run as maven install in eclipse to skip unit tests, if such thing is doable, then please tell me how to do it, thanks in advance. Ensure Maven is configured for your project Right-click on your project Go to 'Run As' Select 'Run Configurations' In the left-hand column, right-click 'Maven Build' and select 'New' Select the base directory (the project) you want to build from Write 'install' and any other goals you want in the 'Goals' field Click the 'Skip Tests' radio button Click Run! Hope that helps. It depends on maven test plugin that you use.

Eclipse WTP not publishing Maven dependencies

时间秒杀一切 提交于 2019-12-02 17:36:17
I'm trying to set up a basic hello world project using Eclipse Indigo and a Tomcat server. I created a dynamic project with a simple servlet. Tested the servlet and that worked fine. Then I enabled Maven support and added logback to my pom. I put a logging statement in the servlet's doGet method. When running the servlet, it complains it cannot find any bindings because the logback jars are not being copied into the Eclipse tomcat instance. I expected to find the jars published somewhere in here: ${workspace}\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\ How do I get Eclipse to work

Eclipse Juno m2ecliipse : directory structure explanation

大城市里の小女人 提交于 2019-12-02 17:13:00
问题 I'm working under Eclipse Juno on a maven-archetype-webapp project done with m2eclipse. I don't understand directory structure. Anyone could explain how it's working? Thanks What i src/main/ressources for ? When you create package, it's not showed as package but only directory. I create a /src/main/java package and it's where i put my classes. The package structure hierarchy is ok. What is librairies ressources? Is it where you put javascript jquery? but when i put jquery plugin it does a lot

No archetypes currently available. The archetype list will refresh when the indexes finish updating

孤街醉人 提交于 2019-12-02 15:34:01
In Eclipse with m2eclipse installed, when I choose File > New > Project... > Maven > Maven Project with Use default Workspace location and Catalog: Nexus Indexer selected, the following error message is showing up: No archetypes currently available. The archetype list will refresh when the indexes finish updating. Why does this error occur? I had same problem and it was solved by adding a remote catalog: http://repo1.maven.org/maven2/archetype-catalog.xml This solution i found at : http://jira.talendforge.org/secure/attachment/36787/DeveloperGuide-Feedback.pdf in this case you can use another

An internal error occurred during: “Updating Maven Project”. Unsupported IClasspathEntry kind=4

你。 提交于 2019-12-02 14:00:35
As the title mentioned I have the following problem: I use Eclipse with Maven Nature and when I update my Maven Project, I get this error: An internal error occurred during: "Updating Maven Project". Unsupported IClasspathEntry kind=4 The solution that always comes back is the following: rightclick project, remove maven nature mvn eclipse:clean (with project open in eclipse/STS) (sometimes they suggest to do mvn eclipse:eclipse next) rightclick project and reenable maven nature Now I exhaustively tried all combinations several times. But I always keep getting the above error. The error