Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0


Here's an example of how to this.

  • Create a simple web application using maven archetype:
  • mvn archetype:generate -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes -DartifactId=example -Dpackage=com.lackey
  • choose option 18 (simple web app -- this will generate a simple web app project).
  • cd example
  • create a file src/main/webapp/
  • run: mvn package
  • notice you have a file target/example/ -- this means will end up in your .war.
  • now change your pom file to include the following directives in the <build> block:
Code Block
  • run: mvn package (again)

notice the file target/example/ is no longer present. You can check the .war as well, it won't be there, which is what you want in this case.