Maven Notes

Skip to end of metadata
Go to start of metadata

Maven 2 notes

Links

Create reference app

  • To quick start a new project, use the archetype goal:
  • The -DarchetypeArtifactId= can used to specify differnt archetypes.
  • The different archetypes are:
Archetype Description
maven-archetype-quickstart The default value, a regular java project.
maven-archetype-webapp A web application
maven-archetype-plugin Maven plugin

Release in mvn

  • Check out from svn:
  • Do a release:clean and release:prepare in batch mode:
  • Do a release:perform:
  • Or do a deploy to a maven 1 repo, specifying all properties:

Release requirements

  • Edit your pom.xml to include
  • Your pom.xml <id> value must match the settings.xml <id>.
  • Edit your $HOME/.m2/settings.xml to include:
  • The <username> must have write access to the <url>scp://web.gordonturner.ca/gordonturner.ca/maven2</url> location.

Maven 1 notes

Links

Multiproject buildpath eclipse

  • To trick the maven eclipse into using dependent projects, add the maven.eclipse.classpath.include property to your project.properties and include a leading slash.
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.