m2eclipse

Debug Maven project in Eclipse with third party sources

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully. It even works out of the box with debugging. But when I am debugging open source third party libarries. It seems maven could automatically pull the source code down, but the eclipse debugger cannot resolve the currently execution point to the ...

How can i manage dependecy of JavaFX project with m2Eclipse plugin ?

JavaFX Editor in Eclipse couldn't see dependencies which is imported by m2eclipse (Junit, JavaFX library..), i must put libraries from Project Properties - Java Build Path - Libraries, if i want to solve this problem. M2Eclipse plugin and JavaFX plugin couldn't work together? OR JavaFX plugin couldn't work with Eclipse successfully ?...

Can I access Maven properties as variables in Eclipse?

I have a Maven project that derives the path to a native library using properties which can be set in local profiles. For example: <project> ... <build> ... <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <environmentVariables> <LD_LIBRARY_PATH>${f...

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 have a simple POM file set up as a test: <project xmlns="http://maven.apache.org/POM/4.0...

maven m2eclipse multi module project

I have a multi module maven project and the directory structure is hierarchical. Some modules have dependencies on others. I have added the dependent modules to the dependency section of the project's POM. However, in order to resolve those dependencies, I need to import the parent project, and select Project Properties > Maven and selec...

Changing Eclipse project to use Maven?

My boss asked me to convert one of our projects to use Maven to build. So I created a pom.xml file and now Maven builds the project fine and runs all the tests and everything. "Fine", my boss said, "We don't need these any more" and he deleted the /libs directory from the project, and he deleted the JRE from the classpath. That's fine...

making maven work with eclipse

Hello I'm trying to install maven plugin with eclipse and I have a following problem, more in picture below : So my question is, is this supposed to take this long or I did something wrong? I'm using eclipse galileo , I went to the window-> install new software -> typed in http://m2eclipse.sonatype.org/update/ website and name ma...

Maven for javaee-api

I use the latest m2eclipse to generate a standard ejb project, but then I got an error: Missing artifact javaee:javaee-api:jar:5:provided The pom.xml is as follow: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://m...

I can't find the maven plugin org.maven.ide.eclipse:lifecycle-mapping 0.9.9-SNAPSHOT

I have a maven pom file which depends on this plugin, but I can't find it anywhere online. Is this something which needs to be built from some other piece of code? ...

How do I get my snapshots in Nexus to appear in the m2eclipse dependency search?

Hi, I've been working through the Nexus guide this weekend and I've got everything set up, to the point that I can publish a snapshot to my local nexus install. I can't seem to work out how to get m2eclipse to see the snapshot and offer it as an option in the Add Dependencies search panel. How do I do that? Thanks! In case it's of any...

GWT Maven and web.xml

I'm using the GWT Maven plugin from Codehaus with m2eclipse. Where is my web.xml file supposed to end up? Isn't the Maven build supposed to copy it to the /war directory? I can't see it there. Or does Jetty pick it up automatically from src/main/webapp/WEB-INF/? Here's a relevant section from my pom.xml. <plugin> <groupId>org.apache....

Spring ContextLoader fails to find applicationContext.xml

I've been working alone on a project for a long time and now another developer joined so I wanted to set up the project on his machine from SVN. We are both using very similar set-ups: OS X Snow Leopard Latest Eclipse WTP m2eclipse Maven Plugin Subversive SVN Plugin Tomcat 6.0.24 The Spring version used is 2.5.6. I set up the proje...

Is there a way to make WTP + M2Eclipse work together with a "war:inplace like" configuration ?

I try to work with M2Eclipse, WTP and a Tomcat 5.5 server configuration. Publication of classes + web resources in wtp.deploy directory seams very time consuming if your webapp contains many files. Furthermore publishing operation can be prone to error as I have many maven modules as dependencies. I try to find a biaised-but-faster way t...

How to tell M2Eclipse to install jar file as a maven dependency

I want to add jpoller.jar as a maven dependency, so I edited my pom.xml file to include it: <dependency> <groupId>org.sadun</groupId> <artifactId>jpoller</artifactId> <version>1.5.2</version> </dependency> Now, as expected, when I compile from the command line I get an error because jpoller isn't in any of the repositories...

Maven not worth it (yet) for EAR deployment?

I'm in the process of porting several J2EE projects from Ant to Maven2. All of these projects contain 1 EJB and 1 web module, and use the recommended "skinny" EAR packaging method. This means that the JARs that the EJB and/or web modules depend on are all just put in the root of the EAR. Both EJB and web modules have Class-Path entries i...

Failed eclipse update when trying to install eclipse

When trying to install eclipse using the eclipse new software feature, I get this error: Cannot complete the install because one or more required items could not be found. Software being installed: Maven SCM handler for Subclipse (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.8.200905041414) Mis...

spring mvc test using eclipse and maven2

So I created a simple web app using maven, the pom.xml is setup in Eclipse just fine. I added apache commons, spring 3.0 as a dependancy. I created a test controller using annotations, and a jsp file. In eclipse, I only see a Run option, and no build option. With maven2 pom.xml setup etc., is just clicking on Run enough to build the p...

Setting the compiler versions

The eclipse 'problems' tab is displaying this error: Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet. groupping Unknown Faceted Project Problem (Java Version Mismatch) I am using eclipse, my pom.xml has this setting: <plugins> <plugi...

how do I add apache commons logging using the maven2 with eclipse?

I can't seem to find apache common logging when using eclipse w/maven2 plugin. I need it for spring3 mvc apparently. ...

How do I stop a http redirect from corrupting my maven repository?

I use the m2eclipse plugin, and I commute on a ferry with wifi service provided by Boigo. When I try to access anything via http on the ferry, if I haven't already logged in any request gets redirected to a login screen. The problem is that if for any reason eclipse decides to refresh its maven dependencies before I've logged in, I get...