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
117
votes
3 answers

What does Maven Update Project do in Eclipse?

What does "Maven -> Update Project..." do in Eclipse?
Ashish
  • 14,295
  • 21
  • 82
  • 127
35
votes
5 answers

My Application Could not open ServletContext resource

i have Eclipse Maven web project where i use Spring mvc and Spring security. When i truy to launch it, it doesn't suceed to intialize the context: Could not open ServletContext resource [/WEB-INF/spring-dispatcher-servlet.xml] More details…
14
votes
3 answers

Can I Configure m2eclipse through pom.xml?

With the maven-eclipse-plugin, using mvn eclipse:eclipse, you can specifiy eclipse project natures and builders that will automatically be added to the eclipse project. Earlier versions of m2eclipse used the configuration block of the…
Sean Patrick Floyd
  • 292,901
  • 67
  • 465
  • 588
13
votes
5 answers

how install maven on eclipse

i want to install maven plug in on eclipse. but when add the maven site in install software section, and beginning to download and install it, an error occurred about dependency. how can fix it? i want a complete installation guide...
013
  • 175
  • 1
  • 1
  • 7
13
votes
5 answers

How do I get my Eclipse-Maven project to automatically update its classpath when I change a dependency in my pom.xml file?

I’m using Eclipse Mars with Maven (v 3.3). When I update a dependency in my pom (change the version), my Eclipse-Maven project doesn’t pick it up, even when I right click my project, and select “Maven” -> “Update Project.” I know this because I do…
Dave
  • 15,639
  • 133
  • 442
  • 830
11
votes
2 answers

How to manage shared resources for several web apps in Maven AND Eclipse?

Note: I didn't get any response in the first version of this question, so I modified it to be more generic... Context My project is divided into several maven modules and several web-applications. Here is the structure: my-project + pom.xml +--…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
10
votes
4 answers

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

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…
Dave
  • 21,524
  • 28
  • 141
  • 221
9
votes
2 answers

Eclipse maven build path issue in case of custom sourceDirectory

I have converted an existing Java project to a Maven project and Maven builds everything perfectly when using the command line. When I import the same project into Eclipse and compile (by right-clicking the project -> runs as Maven build, it still…
tryingToLearn
  • 10,691
  • 12
  • 80
  • 114
9
votes
2 answers

Set vm default arguments via maven for eclipse

I want to specify vm args of -Djava.library.path=./src/main/resources so that a dll is picked up automatically, and I want to specify this in maven, so other developers don't have to manually configure eclipse. I was thinking perhaps the the maven…
David Turner
  • 5,014
  • 6
  • 26
  • 27
8
votes
1 answer

Maven/Eclipse: The default build path for resources excluded everything

I'm using M2E for maven integration with eclipse. My unit tests reference property files in the resources/ directory. Well, everything fine in the command line test (mvn test). However, in Eclipse, the resources couldn't be found. Check the Java…
Lenik
  • 13,946
  • 17
  • 75
  • 103
5
votes
1 answer

What is the correct way to specify a main class when packaging a jar using m2eclipse?

Problem: I'd like to specify the main class in a jar file that I am packaging using m2eclipse: [right-click] -> Run As -> Maven package. I'm still learning Maven and from what I've read, the straight-up way of accomplishing this task is to add a…
4
votes
1 answer

Maven network issues?

The problem is: Nexus-maven-repository-index.zip downloads at 10kbps and maven eclipse:eclipse artifact download stops / pauses. I'm not behind any proxy. EDIT: This is caused by AVG Link Scanner, same issue as in Maven failing to download jar…
CatInABox
  • 387
  • 2
  • 4
  • 12
3
votes
1 answer

maven pom.xml dependencies order vs classpath/build path order

I am trying to understand the connection between the dependencies in a project's pom.xml file and the order of the java classpath/build path (my question is also regarding the inheritance of poms). So far I wasn't able to find a detailed…
Achi Even-dar
  • 427
  • 1
  • 10
  • 20
3
votes
1 answer

How to say to eclipse-maven-plugin perform from eclipse same actions as mvn from cmd

I develop java application using Eclipse IDE and Windows OS. I have this problem: From cmd my maven task works good but if I invoke it from eclipse - I see build failure I want to use maven with configuration from cmd in my eclipse. I made following…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
3
votes
4 answers

Write custom maven command set using eclipse plugin

from command line I can write mvn install -Pauto-deploy Is it possible to store this command in my eclipse maven plugin. I want to execute this command by click. I see only standart things in maven menu: build clean install test I want see at…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1
2 3 4 5