My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
EclipseMavenSetup  
How to use Eclipse, SVN and Maven
Phase-Implementation
Updated Apr 27, 2011 by axelclk@gmail.com

Prerequisite

I'm using these plugins under Eclipse:

Setup

Install Subclipse and the Maven Eclipse plugins.

  1. In Eclipse go to menu Help -> Software Updates -> Find and Install.
  2. Choose "Search for new features to install"
  3. The required plugin URLs for subclipse and M2Eclipse are:
  4. http://subclipse.tigris.org/update_1.0.x
  5. http://m2eclipse.sonatype.org/sites/m2e/

Once installed, select the "SVN Repository" Eclipse perspective and add

as a repository URL.

Open the trunk node and right click on the info.bliki.wiki node, select the "Find/Check out as..." menu option. In the following dialog box you can Check out the source code from SVN.

Maven install

Now change back to the Eclipse Java perspective.

For the Maven plugin to recognize the module dependencies you have to:

  • right click in the Package Explorer view on the info.bliki.wiki project node and choose the Properties menu
  • in the left tree of the appearing dialog box select the Maven node.
  • in the right Maven panel enable the checkbox Include Modules

As a result the line

includeModules=true
should be set in the file:
info.bliki.wiki/.settings/org.maven.ide.eclipse.prefs

In the Package Explorer view do a right mouse click on the pom.xml file and select the menu Run As -> Maven build....

In the appearing dialog box choose the install goal and run Maven (or hit the Run As -> Maven Install menu directly in the Package Explorer views menu).

Comment by ben.mcgee.good@gmail.com, May 21, 2010

I think.. that the most recent version of the Maven plugins replaces "Include Modules" with "Resolve dependencies in Workspace projects". Thanks for the very detailed documentation here BTW.

Powered by Google Project Hosting