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

1277 questions
953
votes
33 answers

How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds

I am trying to work with Spring Data and Neo4j. I started by trying to follow this guide linked to by the main site. In particular I based my pom.xml off of the "Hello, World!" example file. Here is a snip from my pom.xml for the plugin that is…
Andrew White
  • 50,300
  • 17
  • 108
  • 132
694
votes
33 answers

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

I'm compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this: Windows-->preferences-->installed jres--> jdk1.7.xx path But this is showing an error [ERROR] COMPILATION ERROR : [INFO]…
Sai prateek
  • 10,642
  • 8
  • 39
  • 60
413
votes
15 answers

How to fix error "Updating Maven Project". Unsupported IClasspathEntry kind=4?

I have imported maven project in STS, when I run update update project I receive: "Updating Maven Project". Unsupported IClasspathEntry kind=4 Is there a workaround for this?
user810430
  • 10,663
  • 15
  • 34
  • 42
214
votes
12 answers

Java compiler level does not match the version of the installed Java project facet

I have created a New Dynamic Project under Eclipse Helios Version, where my JRE Version is set to 1.6. I have added Maven capabilities to the Web Application by clicking on Configure → Convert to Maven Project. After adding this, a build error…
user974802
  • 3,057
  • 9
  • 22
  • 28
213
votes
13 answers

What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?

I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default Preferences->Java->Installed JREs. When I changed the Maven project to use the 1.6 JRE it still had the build errors left over from when the…
Chris Collins
  • 3,420
  • 5
  • 25
  • 24
200
votes
2 answers

Maven "Module" vs "Project" (Eclipse, m2eclipse plugin)

I'm a beginner at Maven and I've played with it from a command line point of view a little, so now I was trying to use it in Eclipse; I installed the m2eclipse plugin to do so. But I'm stumped from the very beginning! Apparently I've missed a bit of…
Ricket
  • 31,028
  • 28
  • 106
  • 137
181
votes
29 answers

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for…
Curt
  • 2,774
  • 6
  • 24
  • 34
159
votes
15 answers

Maven: best way of linking custom external JAR to my project?

It's my first couple of days learning Maven and I'm still struggling with the basics. I have an external .jar file (not available in the public repos) that I need to reference in my project and I'm trying to figure out what my best option is. It's…
Alexandr Kurilin
  • 7,188
  • 6
  • 43
  • 72
156
votes
8 answers

maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e

I have a fairly simple Maven project: ... org.apache.maven.plugins
Naftuli Kay
  • 75,812
  • 80
  • 244
  • 374
147
votes
20 answers

web.xml is missing and is set to true

Consider: When I create a simple Maven project in Eclipse I am getting this error: web.xml is missing and is set to true How can I fix this problem?
Yogesh Doke
  • 1,636
  • 2
  • 10
  • 20
137
votes
33 answers

Maven2: Missing artifact but jars are in place

From now to then, my Maven 2 started to mess around. I am using SPring STS 2.6.1 and have a single project based on Spring 3, Hibernate, DWR, Cometd and all that stuff. Today I just updated from Git und all of a sudden, I got that scary mvn…
Jannick
  • 1,964
  • 2
  • 15
  • 18
124
votes
10 answers

Plugin execution not covered by lifecycle configuration (JBossas 7 EAR archetype)

I am using Eclipse 3.7 Indigo with Maven M2E Plugin 1.0.100. Using the JBoss 7.x JavaEE 6 EAR archetype, the pom for EAR is giving me this error: Plugin execution not covered by lifecycle configuration: …
Oh Chin Boon
  • 21,393
  • 45
  • 133
  • 208
124
votes
18 answers

How to configure Eclipse build path to use Maven dependencies?

I would like to take advantage of the features that Maven provides for managing dependencies in a project. My brief understanding of how Maven works is that it will aquire the JARs needed and then build the project with these libraries. Currently I…
James Goodwin
  • 7,041
  • 3
  • 26
  • 40
119
votes
10 answers

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". error

Regarding Eclipse IDE (Indigo, Juno and Kepler (32 and 64 bit versions)) Platforms: Windows, Ubuntu, Mac m2e version: 1.1.0.20120530-0009, 1.2.0.20120903-1050, 1.3.0.20130129-0926, 1.4.0.20130601-0317 General info The above error came after…
Konstantinos Margaritis
  • 3,167
  • 3
  • 19
  • 31
116
votes
42 answers

Missing Maven dependencies in Eclipse project

We have a project set up with maven for resolving dependancies. It usually works fine, but now I am trying to compile and run it on a new PC and I have problem with missing dependencies in Eclipse. What is funny is that if I run "mvn package" in…
hostnik
  • 2,425
  • 2
  • 15
  • 14
1
2 3
85 86