logo
header art

Using Maven to Manage Your Projects

June 23, 2005

Building and Documenting Your Project

This section of the article is just a quick overview of some of the more common commands you're likely to use when managing a webapp project.

  • maven jar - if you're building a project whose generated artifact is a jar, this command will cause Maven to build your project and generate the artifact.
  • maven tomcat:deploy - if you're building a webapp project, I recommend installing the Tomcat-Plugin. Once you've done that, you can use this command to build and deploy your project to your Tomcat server. NOTE: Your Tomcat server must be running for this to work.
  • maven site:generate - use this to build (but not deploy) the project's documentation site. This command is most useful for making sure the documentation is up to date, but the generated reports typically have good information in them, including a nicely formatted representation of your unit-testing results.
  • maven clean - use this to clean up all the files created as a result of building your project.