Questions tagged [maven-eclipse-plugin]

An Eclipse plug-in for generating Eclipse IDE files, like .classpath, .project, etc. Often confused with M2Eclipse.

One of two leading plug-ins integrating Eclipse IDE with Maven. As opposed to M2Eclipse, it focuses on generating Eclipse project files on demand, rather than full, live integration with Eclipse build.

Beware this plugin has been officially RETIRED and it is no longer maintained.

Users are advised to use m2e, the Eclipse Maven Integration instead of this plugin, as it can more closely resemble the actual build and runtime classpaths as described in the project pom.xml - among other advantages. However, there are project setups and workflows that still work more efficiently with statically generated Eclipse metadata - for example when there is a large number of projects in a reactor. That's where the Maven Eclipse Plugin can still help you

More info

72 questions
3
votes
0 answers

Maven Eclipse Plugin classpathContainer with attributes?

I can set the classpathContainer parameter in my pom for a configuration of the Maven Eclipse Plugin for the command eclipse:eclipse. If I set:
2
votes
2 answers

mvn eclipse:eclipse not adding SNAPSHOT JAR to classpath

I recently decided to try to use my Maven project as a dependency of another project. I built the project and it installed to my local repository: I then set up the other Maven project to use this dependency (see the first dependency in the…
Mitch
  • 23,716
  • 9
  • 83
  • 122
2
votes
0 answers

Custom AuditListener integration with eclipse-cs

I've written a custom AuditListener that works fine when run from the command line using maven, but when trying with checkstyle inside eclipse I get the following error message - "cannot initalize module TreeWalker - Unable to instantiate…
Ed Cresswell
  • 123
  • 1
  • 7
2
votes
1 answer

How to automatically set the JRE_CONTAINER on top of all others dependencies in Eclipse.classpath?

I want to modify automatically the order on which classpathentry are written by the Maven Eclipse plugin. Is there a way to do that? I want to do that for two reasons. First reason: in my application, the interface org.w3c.dom.Node is provided by…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
2
votes
1 answer

Is there a way to add a custom line in .classpath using mvn eclipse:eclipse?

I am using mvn eclipse:eclipse command to generate my .project and .classpath. However, for some reasons, I want to add one line in the .classpath file. Is there a configuration in my pom.xml that I can use to achieve that? Note that…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
2
votes
0 answers

Eclipse cleans target (with its WEB-INF/lib) folder before running app

It's not a question but I'm sure it can help someone else because it has happened to almost everyone in my company too. The context: I'm working with Eclipse on a Java GWT Maven project with the Eclipse Google Plugin. Once, I updated my dependencies…
Freddy Boucher
  • 1,387
  • 1
  • 16
  • 27
2
votes
0 answers

How to change the template for autogenerated pom.xml file in Eclipse maven

Whenever I create a new Maven project in Eclipse Juno, it creates a pom.xml file by default. The file has got some dependencies e.g. Junit 3.8.1 I'd like to change the template for this autogenerated file so the dependency created is for JUnit 4 not…
El Do
  • 77
  • 2
2
votes
1 answer

Maven eclipse plugin: Use linked or virtual folders as source folders

I am using the maven-eclipse-plugin (not M2E!) to generate my project. I have checked out the project under a source directory: C:\source, and this source is not organized in the Maven convention. My eclipse work space is under C:\eclipse\workspace,…
Neel
  • 2,100
  • 5
  • 24
  • 47
2
votes
1 answer

Why does eclipse not resolve the maven plugin dependencies after it being added to the dependencies section?

I just installed the maven eclipse plugin and all is great. I have tried creating my first mojo. After the setup, it has downloaded all the required dependencies. Now what is troubling me is that Eclipse isn't able to resolve the…
Husain Khambaty
  • 740
  • 1
  • 9
  • 22
2
votes
1 answer

Maven plugin for updating Eclipse annotation processor settings?

I'm using Eclipse Indigo and have a Maven project which uses an annotation processor to generate code. I have set up annotation processing in the project properties (in Eclipse), but ideally I'd prefer this IDE setting to be managed by Maven so I…
Chris Beach
  • 4,302
  • 2
  • 31
  • 50
2
votes
2 answers

Very lightweight Eclipse-Maven integration - dependency management only?

From my experience, Maven is often an overkill in small/experimental applications. But depencency management is very useful feature of Maven and actually the only one that can be really helpful in mentioned type of applications. I wonder if I can…
1
vote
3 answers

Multiple maven projects in eclipse Indigo

I have a multiple maven project like this: root/ ----war ----jar1 ----jar2 ----jar3 The war use jar1, jar2 and jar3 When I run a "mvn clean install", the compiled war is good and work fine in my server (jboss). When I run a "mvn eclipse:eclipse" to…
Kiva
  • 9,193
  • 17
  • 62
  • 94
1
vote
1 answer

Missing dependencies after renaming project in eclipse

I have a perfectly fine working maven project in eclipse. The project has some dependencies. I can run the Maven build up to 'deploy' with no issues. The project in question is sort of a template for future use. Therefore in general it should work…
roediGERhard
  • 163
  • 1
  • 12
1
vote
1 answer

Maven Eclipse Plugin automatically creates maven folder under META-INF

I have a Dynamic Web Project that we need to convert to Maven Project. I am using Eclipse 2021-03 with Maven Integration for Eclipse v1.17.2 I used a "normal" procedure to convert the project: Right click on the project Selected Configure ->…
Francesco Sgaramella
  • 1,009
  • 5
  • 21
  • 39
1
vote
1 answer

Trying to package a specific lib into my jar, ain't working

I'm unable to package needed libs into my Jar, the shade plugin doesn't give any output of any kind in the console, Making it a littile hard to describe what's happening here, as it's more there lack of.
Tau
  • 33
  • 5