Questions tagged [m2e]

m2eclipse is a Plug-in for the Eclipse IDE that defines Eclipse Project structures by analyzing Maven Project models.

From the m2eclipse Project Home Page:

m2eclipse provides comprehensive Maven integration for Eclipse. You can use m2eclipse to manage both simple and multi-module Maven projects, execute Maven builds via the Eclipse interface, and interact with Maven repositories. m2eclipse makes development easier by integrating data from a project’s Object Model with Eclipse IDE features. With m2eclipse, you can use Maven within Eclipse in a natural and intuitive interface.

m2eclipse is a renaming of Sonatype's m2eclipse when it was transferred from Codehaus to the Eclipse Foundation in the Indigo (3.7). Sonatype is still involved in building m2eclipse, and the latest bleeding-edge releases are available on their website.

References

742 questions
14
votes
1 answer

How do I know which Eclipse M2E connectors I have installed?

I understand that the new M2E within Eclipse has pluggable connectors which help configure the Eclipse project based on what they see in the POM when the project is imported. I also believe that (for the most part) these connectors are automatically…
Dave
  • 21,524
  • 28
  • 141
  • 221
14
votes
3 answers

Automatically generate Java from .proto with maven/m2e in Eclipse IDE

For my team, I'd like to configure maven/eclipse build to automatically generate Java code from *.proto files (in a project that uses gRPC). Currently one needs to run mvn generate-source or mvn protobuf:compile (as in plugin usage page). Or what is…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
14
votes
3 answers

How to fix m2e error in pom.xml: plugin execution not covered by lifecycle configuration?

I am having the title mentioned error in my Maven Java project. Below is a comparison of a good project and my troubled project. How to fix these 2 errors? And in the upper good one why there're so many configurator, configurator,...? It looks…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
14
votes
3 answers

Why Jenkins fails to load the resources?

Here is the layout of my project: src/ test/ resources/ ares/ file1.xml file2.xml Here is the layout of the Jenkins workspace: my-module/ target/ test-classes/ ares/ file1.xml …
Stephan
  • 41,764
  • 65
  • 238
  • 329
14
votes
4 answers

Getting "The POM for is invalid, transitive dependencies (if any) will not be available" only in Eclipse

I have recently upgraded to JAXB 2.2.11 and noticed in my Eclipse console the following message: 10/15/14, 11:42:46 PM GMT+2: [INFO] Creating new launch configuration 10/15/14, 11:42:58 PM GMT+2: [INFO]…
lexicore
  • 42,748
  • 17
  • 132
  • 221
14
votes
12 answers

"org.eclipse.m2e.jdt.JarLifecycleMapping" is not available

How do I deal with this m2e plugin problem with Eclipse: Description Resource Path Location Type Lifecycle mapping "org.eclipse.m2e.jdt.JarLifecycleMapping" is not available. To enable full functionality, install the lifecycle…
quarks
  • 33,478
  • 73
  • 290
  • 513
14
votes
2 answers

What does the exported attribute in .classpath do?

What does the exported attribute do in this .classpath line? I've got a project that builds & runs fine with and without it. So, what difference does it…
Withheld
  • 4,603
  • 10
  • 45
  • 76
14
votes
1 answer

How do I use android libraries (apklibs) with maven and eclipse?

I am using Eclipse 3.7.2 + Android + Maven + m2e and I have a problem with Android libraries included via Maven as apklibs. I built a test scenario with two projects, mvntest1 (the main project) and mvntest2 (my library project). The pom.xml's are…
mogoh
  • 992
  • 2
  • 7
  • 27
14
votes
1 answer

m2e gives inscrutable "project read error"

I just started to use m2e to try to build the sample travellog elastic beanstalk project. On the console I'm getting "[ERROR] Project read error". This also appears in red on the "Dependency Hierarchy" tab. What does this mean and how do I find out…
user1420538
  • 481
  • 1
  • 3
  • 9
14
votes
1 answer

Usage of maven Build Helper Maven Plugin

I'm attempting to add a source folder for maven java project to Eclipse using a maven plugin. When trying to use the org.codehaus.mojo plugin I receive the following error Failed to execute goal…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
13
votes
3 answers

Importing multiple maven projects from git into eclipse

I've got a git repository with two Maven projects "foo" and "bar". The structure of the cloned repo is as follows: myrepo .git foo pom.xml bar pom.xml What I want Two projects "foo" and "bar" in my workspace with maven nature and…
Jens Theeß
  • 580
  • 1
  • 3
  • 15
13
votes
2 answers

Eclipse Maven: run test with spring profile

I want to run maven with different profile but it seems not working. I created 2 differents java class for my JPAConfiguration : JPAConfiguration.class and JPAConfigurationTest.class @Configuration @Profile({"dev"})…
Jonathan Lebrun
  • 1,462
  • 3
  • 20
  • 42
13
votes
1 answer

How can I map Maven lifecycle phases not covered by the Eclipse m2e plugin?

I’m using Eclipse Kepler on Mac 10.9.5. I have imported a number of Maven projects using the m2e Eclipse plugin. All these projects are children of a parent pom. When I look at the “Overview” in the individual child pom.xml files, I see stuff…
Dave
  • 15,639
  • 133
  • 442
  • 830
13
votes
6 answers

m2e: Folder containing java _sources_ need to be used by several m2e projects

I have a situation where I need to have a folder containing Java sources used as a source folder for several maven projects "next to each other" in a tree structure. Due to dependency differences for the maven projets I cannot create an artifact…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
13
votes
2 answers

Single command to build all Eclipse maven projects in current workspace?

Does anyone know any simple yet effective way to build all Maven projects in current workspace, for example, maven clean install for each such project. Is it for example possible to select multiple projects and use something similar to…
JLund
  • 496
  • 1
  • 4
  • 14