Maven

From TeamWeaverWiki

Jump to: navigation, search

The TeamWeaver build infrastructure is based on Apache Maven.

To create binaries for a certain TeamWeaver bundle call "mvn install" in its root directory (the one containing the pom.xml file).


Contents

Useful stuff

Arbitry/popular maven commands

  • Create project
    • mvn archetype:create ...
  • Building
    • mvn package (compile to create local build artifact)
    • mvn install (mvn package plus install to local maven repository)
    • mvn deploy (mvn install plus deploy to public maven repository)
  • Release
    • mvn release prepare
    • mvn release perform
  • Manage repository
    • mvn install:install-file
    • mvn deploy:deploy-file
  • Eclipse
    • mvn eclipse:eclipse (generate Eclipse .project files etc. for a maven project
    • mvn eclipse:clean (remove Eclipse .project files etc
  • Other
    • mvn clean (remove build artifacts)
    • mvn javadoc:javadoc (generate javadoc)
    • mvn jetty:run

Q&A

  • Maven gets me a Java OutOfMemory Exception
    • Increase heap space by setting the environment variable "MAVEN_OPTS" to e.g. "-Xmx1024m -Xms512m"

Links

This page was last modified on 17 June 2009, at 09:32. This page has been accessed 8,312 times.