m2eclipse

Installing Eclipse

I am installing Eclipse for RCP and RAP Developers, my old copy went rogue and decided to act up. So clean install time! Yay! I downloaded the new version copied it to opt folder and extracted it, then ran it. For some reason I cant install any plugins due to some crap error*, and it doesn't have list of default plugins, i deleted my ...

mvn eclipse:eclipse within Eclipse

Hi, I have the m2Eclipse plugin from Sonatype installed in my IDE. It allows me to run various maven commands (package, install, etc.) by right-clicking on a pom.xml file and navigating to the "Run As" menu. However, I haven't figuered out how to the equivalent of mvn eclipse:eclipse from within the IDE, is this possible? Thanks, Don ...

what is the recommended system requirement for using eclipse and maven plugin?

I am wondering what is the recommended system requirement for using eclipse and m2eclipse plugin. I am using E8400 and 4Gb ram currently. Nearly every time I changed something in the pom.xml the eclipse IDE would hang for a while (about 1-3 minutes) before it finished. Is it normal? ...

Eclipse Maven Plugin Configuration Problem

I have followed this thread now when i try to build using maven plugin installed i am getting following error. goal i executed was clean -X install Unable to locate the Javac Compiler in: C:\Program Files\Java\jre6\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is requi...

eclipse: Run on server disappear

I have a maven project created with maven-archetype-webapp. As i use on Windows machine, the project generated by Maven has a "Run on Server" but when i create it on Linux machine, it doesnt have. Please tell me how can i enable it. Thanks ...

Best practice for multiple project setup with m2eclipse

Example scenario: I have 2 projects, "common-project" and "application-project". The application-project depends on the API provided by common-project. There are also 3rd party jars (example guava) used by both projects. I am trying convert to using maven and m2eclipse, but am unclear on the best approach. Currently, my maven-free setup...

Missing package property files in war build

Littered throughout my project are various property files located in packages that are not being included when the package goal is run from a Maven build. Using the 0.10.2 m2eclipse plugin and the default "package" goal. In the project: src->main->java->mypackage->MyProperties.java src->main->java->mypackage->MyProperties.properti...

Building jar with maven-scala-plugin

I created scala application and now I want to build jar. I run mvn package than I try to run jar by command java -jar target/burner-1.0-SNAPSHOT.jar and I see error: Failed to load Main-Class manifest attribute from How can I define Main-Class property? Do I need to create Manifest.mf? where? Or I need to have mainclass property some...

How do you change the default test location in Eclipse when using Maven?

If I'm looking at a class (MyComponent, say) somewhere underneath src/main/java in Eclipse, I can right click it and pick new...--> other --> JUnit test. Eclipse is smart enough to guess the name for the unit test class (MyComponentTest), but it insists on putting the unit test under src/main/java. Is there anything in Eclipse or m2Eclip...

Can a multi-module m2eclipse/WTP project get utility modules deployed into WEB-INF/classes?

We currently use MyEclipse with its built-in Maven4MyEclipse integration and its built-in J2EE server support, but want to convert over to regular eclipse (Helios specifically) to be able to use its 64-bit install on windows. (MyEclipse does not yet support 64-bit on Windows.) So far I've got a working prototype of Helios eclipse using...

How to make wicket's quickstart maven archetype for 1.4.9 available in Eclipse?

Hi. I'm using Eclipse 3.6 with the m2Eclipse plugin. Up until now I've been using Wicket's web based quickstart, but I just realised that m2Eclipse allows me to create Maven projects from archetypes within Eclipse. The problem is that the wicket-archetype-quickstart is version 1.4.7, but the newest version of Wicket is 1.4.9. Is it pos...

Enabling maven dependency management disables refactor menu item in Eclipse

Does anyone notice that after enabling Maven dependency management in Eclipse for a project, the refactor item on the context menu of Java editor disappears for that project? Is there a solution to that? A patch or upgrade? Or a kludge? Further Info: Need to further assert that the context menu on project/package explorer is unaffected...

Maven in eclipse query using m2Eclipse

Hi I'm using Maven in Eclipse with the m2Eclipse plugin. I'm very confused about how this is supposed to build within eclipse. The on-the-fly compiling works as normal (i.e. as if without maven) so if you have an error it will be highlighted. But when I want to run a junit for example, any changes to the code are only picked up after...

How do I get Eclipse to find the "org.eclipse.team.cvs.ssh" bundle?

I've been trying to install IAM or m2eclipse without success. Both of them need the org.eclipse.team.cvs.ssh bundle, but Eclipse Helios complains that the repository could not be found. I've been attempting to then just install that single bundle without success. I select the "Helios - http://download.eclipse.org/releases/helios" reposi...

m2eclipse - child projects suddenly cant see each other...

Not a very good title, I'll try and explain. This has worked for months, then today for some unknown reason, eclipse cant resolve any of the imports from siblings (peer projects), when nothing has changed (really!). No eclipse or eclipse plugin updates, no source code changes, no config changes. I have a fairly standard project struct...

Exporting eclipse maven project as a non-maven eclipse project with dependencies

Is it possible to export my maven Java project on Eclipse to users that do not have maven or the eclipse maven plugin? The first question that comes to my mind is how to force all the dependencies to be included with the export. I want to make it easier for people who are not using Maven to import my project on Eclipse and use it, in ot...

Could Not find the Main class.Program Will exit

Hi..this is NaveenKumar from Banglore here my problem is i tried to run the java programs in Eclipse Id in my machine but when i was tried to run my java program in Eclipse Id, then it is displaying a Error Dialog Box jest like as "Could Not find the Main class.Program will exit, like wise it is displaying. For this what to do please pro...

configuring m2eclipse: "Eclipse is running in a JRE but a JDK is required"

After installed m2eclipse, I received a message saying that Eclipse needs to "run in a JDK" and to update the eclipse.ini to do so. So I added this: -vm C:\Program Files (x86)\Java\jdk1.6.0_20 as the last two lines of the eclipse.ini file in my Eclipse installation directory. However, I am again receiving this warning. Did I not en...

I have build errors with m2eclipse but not with maven2 on the command line - is my m2eclipse misconfigured?

I installed m2eclipse to build a java project in Eclipse. I imported the project as follows: Import-> Maven-> Existing Maven Projects-> Import Maven Projects-> - Select root directory - Select pom file - Click Finish To be sure m2eclipse was actually building the project, I deleted the target directory and made sure it was re-created...

What causes a new 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 project was using Java 1.5 (I described these build errors earlier in this question.) I'm g...