Sonntag, 19. April 2009

Practise of Maven

1. Creating a simple project

Using the Archetype plugin as the example:

C:\>mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03\
-DartifactId=simple\ -DpackageName=org.sonatype.mavenbook

2. Buidling a simple project

C:>mvn install
Attention: 'mvn install' must run in the directory with the file pom.xml

3.Site Generation and Reporting

C:\>mvn site
After this command executes, you
should see a project web site in the target/site directory. Load
target/site/index.html and you should see a basic shell of a project site.

Keine Kommentare: