Questions tagged [m2eclipse]

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.

m2e is a renaming of Sonatype's m2eclipse when it was transferred from Codehaus to the Eclipse Foundation in the Indigo (3.7).

References

1312 questions
101
votes
24 answers

An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException

I'm developing a Java EE web project. When I try to add a dependency, this error message appears. I use Eclipse Kepler. An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException Could you help me? Thank you.
achref05
  • 1,653
  • 4
  • 16
  • 18
99
votes
5 answers

How to update maven repository in Eclipse?

Assuming you're already using the m2eclipse plugin, what can you do when it doesn't update the dependencies to the latest in your repo? For example, on the command line, you can just add the -U flag as in mvn clean install -U …to force the…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
95
votes
12 answers

M2E and having maven generated source folders as eclipse source folders

I have a maven project in eclipse and have maven goals that run annotation processors to generate code. The output folder for this code is target/generated-sources/apt. In order for Eclipse to see this generated code I need to add…
Michael Wiles
  • 20,902
  • 18
  • 71
  • 101
90
votes
13 answers

How do I set the eclipse.ini -vm option?

I installed the Maven plugin for Eclipse, and then I got an error like below: please make sure the -vm option in eclipse.ini is pointing to a JDK How do I use the -vm option to point to my JDK in eclipse.ini?
cometta
  • 35,071
  • 77
  • 215
  • 324
80
votes
24 answers

Compiler error "archive for required library could not be read" - Spring Tool Suite

I am starting to configure my development environment and I am using Spring Tool Suite 2.8.1 along with m2E 1.01. As far as I can tell, since this is a Maven Project (my first), my Maven POM is dictating (along with m2E smarts) my project build…
totalcruise
  • 1,343
  • 2
  • 13
  • 25
77
votes
16 answers

maven-archetype-webapp eclipse problem

I'm trying to create a very simple webapp with maven and eclipse, but I'm having no joy at all, in fact the reverse of joy. I go to File -> New Project, select Maven Project, and select the maven-archetype-webapp. When I finish the wizard, a webapp…
Jeremy
  • 1,635
  • 2
  • 18
  • 21
72
votes
5 answers

"Faceted Project Problem (Java Version Mismatch)" error message

Eclipse's "problems" tab is displaying this error: Description: Java compiler level does not match the version of the installed Java project facet. Resource: groupping Path: [blank] Location: Unknown Type: Faceted Project Problem (Java…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
69
votes
17 answers

m2eclipse error

I am developing a web application with Eclipse and I generate the project with a maven archetype. When I enable maven dependency management, Eclipse mark some errors in the pom file, this error is: Multiple annotations found at this line: -…
McSas
  • 2,224
  • 3
  • 27
  • 42
68
votes
5 answers

get rid of POM not found warning for org.eclipse.m2e:lifecycle-mapping

With intent to get m2e 1.0 working correctly I have had to specify the lifecycle mapping: org.eclipse.m2e
Ralph
  • 118,862
  • 56
  • 287
  • 383
68
votes
11 answers

Maven "build path specifies execution environment J2SE-1.5", even though I changed it to 1.7

In Eclipse Juno, I installed the latest m2e plugin (1.2.20120903-1050). In preferences, I have added jdk1.7.0_11 in Java -> Installed JREs -> Add, and then specified the location (C:\Program Files\Java\jdk1.7.0_11). When I create a new Maven…
bheussler
  • 1,406
  • 2
  • 15
  • 18
67
votes
13 answers

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

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…
Vjeetje
  • 5,314
  • 5
  • 35
  • 57
65
votes
8 answers

How to exclude a folder that is producing warnings/errors in an Eclipse project?

Okay. I'm sick of this problem. This has to have an easy fix, I'm sure of it!! I hope SO can help me to get rid of this once and for all! Question How do we get Eclipse to stop trying to process/compile all files under a particular project…
gMale
  • 17,147
  • 17
  • 91
  • 116
62
votes
7 answers

Checkout Maven project from SCM - no connectors

I have a problem with checkout Maven project in Eclipse Indigo. I've installed m2e plugin, Subclipse, Git, but can't select appropriate SCM type ? How to solve this ?
marioosh
  • 27,328
  • 49
  • 143
  • 192
60
votes
11 answers

m2e lifecycle-mapping not found

I am trying to use the solution described here to solve the annoying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (execution: default, phase: generate-sources)" when I place the…
TraderJoeChicago
  • 6,205
  • 8
  • 50
  • 54
55
votes
19 answers

Eclipse loops endlessly: Invoking 'Maven Project Builder'

Ugh! My Eclipse is stuck in an endless loop: No operations to display at this time Refreshing Workspace Building Workspace. Invoking 'Maven Project Builder' on /MobileWebApp The building workspace never gets past 58%. Details: Google's GWT…
Justin
  • 6,031
  • 11
  • 48
  • 82
1
2
3
87 88