m2eclipse

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

ε祈祈猫儿з 提交于 2019-12-03 07:34:50
问题 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

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

一笑奈何 提交于 2019-12-03 06:44:15
问题 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

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

十年热恋 提交于 2019-12-03 06:17:55
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 once it's fixed: Here is my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=

maven android plugin:No Android SDK path could be found

此生再无相见时 提交于 2019-12-03 06:08:53
I use the maven-android-plugin version 3.3.2. When I try to build my android project I have the following exception: org.apache.maven.plugin.MojoExecutionException : No Android SDK path could be found. You may configure it in the plugin configuration section in the pom file using <sdk><path>...</path></sdk> or <properties><android.sdk.path>...</android.sdk.path></properties> or on command-line using -Dandroid.sdk.path=... or by setting environment variable ANDROID_HOME However environment variable ANDROID_HOME is set to android sdk path. Can you please help me? It sounds like, while the env

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

谁都会走 提交于 2019-12-03 05:15:58
问题 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

Eclipse m2eclipse getting dependencies from local repository

那年仲夏 提交于 2019-12-03 05:15:49
I have dependencies installed local on my machine (~/.m2/repository/blah/blah/blah) and m2eclipse is not recognizing them as there - I think m2eclipse is using its own maven instance. Is there any way to force m2eclipse to use the local maven installation in osx? I had the same problem, and this is what worked for me. Using Eclipse Indigo: Windows->Show View->Other In the pop-up: Maven->Maven Repositories Once the view is displayed, right click on the appropriate repo, and select "Rebuild Index" Wait a few seconds and done! I have dependencies installed local on my machine (~/.m2/repository

m2e: Generated code with exec-maven-plugin

邮差的信 提交于 2019-12-03 04:57:47
问题 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>

What is the difference between “Maven Install” and “Maven Build” with M2Eclipse?

空扰寡人 提交于 2019-12-03 04:34:50
I tried to search about the differences between maven install and maven build in the eclipse m2e plugin (if you right click the project and click "run as", you will see them), and I still cannot find a good explanation of them (I looked through the official document as well). Anyone can help? From what I currently understand: maven install: build and install the artifacts in to the local repository maven build: only build but not install? what does install mean then? Also, when you checkout a repository online, do you usually do maven install (to install everything, including the dependencies)

Eclipse WTP not publishing Maven dependencies

点点圈 提交于 2019-12-03 04:19:15
问题 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

How to create new Eclipse RCP project using Maven?

為{幸葍}努か 提交于 2019-12-03 03:57:06
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 m2eclipse. The other option is to make 2 project: maven project and Eclipse RCP project that will