title: Maven Pom clean issue
body: <p>I am getting this maven clean error that errors on <code>org.apache.maven.plugins</code>:  </p>
  
  <blockquote>
    <p>maven-clean-plugin:2.4.1:clean Failed to delete C:\Users\Hobbs\git\heroku\reservosity\target\tomcat.8080\work\Tomcat\localhost_\WEB-INF\lib\mysql-connector-java-5.1.20.jar</p>
  </blockquote>
  
  <p>Not sure why this is happening. Any help would be appreciated.</p>
  
  <p>Logs:</p>
  
  <pre><code>Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
  Maven home: C:\Users\Hobbs\git\heroku\reservosity\EMBEDDED
  Java version: 1.7.0_04, vendor: Oracle Corporation
  Java home: C:\Program Files\Java\jre7
  Default locale: en_IE, platform encoding: Cp1252
  OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
  SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  [INFO] Error stacktraces are turned on.
  [DEBUG] Reading global settings from EMBEDDED\conf\settings.xml
  [DEBUG] Reading user settings from C:\Users\Hobbs\.m2\settings.xml
  [DEBUG] Using local repository at C:\Users\Hobbs\.m2\repository
   [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\Hobbs\.m2\repository
      [INFO] Scanning for projects...
      [DEBUG] Extension realms for project com.example:Reservosity:war:0.0.1-SNAPSHOT: (none)
      [DEBUG] Looking up lifecyle mappings for packaging war from ClassRealm[plexus.core, parent: null]
   [WARNING] 
   [WARNING] Some problems were encountered while building the effective model for com.example:Reservosity:war:0.0.1-SNAPSHOT
   [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 232, column 12
   [WARNING] 
   [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
   [WARNING] 
   [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
   [WARNING] 
   [DEBUG] === REACTOR BUILD PLAN ================================================
   [DEBUG] Project: com.example:Reservosity:war:0.0.1-SNAPSHOT
   [DEBUG] Tasks:   [clean]
  [DEBUG] Style:   Regular
  [DEBUG] =======================================================================
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Reservosity 0.0.1-SNAPSHOT
   [INFO] ------------------------------------------------------------------------
  [DEBUG] Lifecycle default -&gt; [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
  [DEBUG] Lifecycle clean -&gt; [pre-clean, clean, post-clean]
  [DEBUG] Lifecycle site -&gt; [pre-site, site, post-site, site-deploy]
  [DEBUG] Lifecycle default -&gt; [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
  [DEBUG] Lifecycle clean -&gt; [pre-clean, clean, post-clean]
  [DEBUG] Lifecycle site -&gt; [pre-site, site, post-site, site-deploy]
  [DEBUG] === PROJECT BUILD PLAN ================================================
  [DEBUG] Project:       com.example:Reservosity:0.0.1-SNAPSHOT
  [DEBUG] Dependencies (collect): []
  [DEBUG] Dependencies (resolve): []
  [DEBUG] Repositories (dependencies): [central (http://repo.maven.apache.org/maven2, releases)]
  [DEBUG] Repositories (plugins)     : [central (http://repo.maven.apache.org/maven2, releases)]
  [DEBUG] -----------------------------------------------------------------------
  [DEBUG] Goal:          org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean)
  [DEBUG] Style:         Regular
      [DEBUG] Configuration: &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;directory default-value="${project.build.directory}"/&gt;
   &lt;excludeDefaultDirectories default-value="false"&gt;${clean.excludeDefaultDirectories}     &lt;/excludeDefaultDirectories&gt;
    &lt;failOnError default-value="true"&gt;${maven.clean.failOnError}&lt;/failOnError&gt;
     &lt;followSymLinks default-value="false"&gt;${clean.followSymLinks}&lt;/followSymLinks&gt;
      &lt;outputDirectory default-value="${project.build.outputDirectory}"/&gt;
     &lt;reportDirectory default-value="${project.reporting.outputDirectory}"/&gt;
     &lt;skip default-value="false"&gt;${clean.skip}&lt;/skip&gt;
     &lt;testOutputDirectory default-value="${project.build.testOutputDirectory}"/&gt;
     &lt;verbose&gt;${clean.verbose}&lt;/verbose&gt;
     &lt;/configuration&gt;
  [DEBUG] =======================================================================
  [INFO] 
  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Reservosity ---
  [DEBUG] Created new class realm maven.api
  [DEBUG] Importing foreign packages into class realm maven.api
  [DEBUG]   Imported: org.apache.maven.wagon.events &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.transfer &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.exception &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.metadata &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.collection &lt; plexus.core
   [DEBUG]   Imported: org.sonatype.aether.version &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.monitor &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.wagon.repository &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.repository &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.wagon.resource &lt; plexus.core
   [DEBUG]   Imported: org.codehaus.plexus.logging &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.profiles &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.repository &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.classrealm &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.execution &lt; plexus.core
  [DEBUG]   Imported: org.sonatype.aether.artifact &lt; plexus.core
   [DEBUG]   Imported: org.sonatype.aether.spi &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.reporting &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.usability &lt; plexus.core
   [DEBUG]   Imported: org.codehaus.plexus.container &lt; plexus.core
   [DEBUG]   Imported: org.codehaus.plexus.component &lt; plexus.core
   [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.wagon.authentication &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.lifecycle &lt; plexus.core
   [DEBUG]   Imported: org.codehaus.plexus.classworlds &lt; plexus.core
    [DEBUG]   Imported: org.sonatype.aether.graph &lt; plexus.core
   [DEBUG]   Imported: org.sonatype.aether.* &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.settings &lt; plexus.core
   [DEBUG]   Imported: org.codehaus.classworlds &lt; plexus.core
   [DEBUG]   Imported: org.sonatype.aether.impl &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.wagon.* &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.toolchain &lt; plexus.core
   [DEBUG]   Imported: org.sonatype.aether.deployment &lt; plexus.core
    DEBUG]   Imported: org.apache.maven.wagon.observers &lt; plexus.core
    [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException &lt; plexus.core
    [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.configuration &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.cli &lt; plexus.core
    [DEBUG]   Imported: org.sonatype.aether.installation &lt; plexus.core
    [DEBUG]   Imported: org.codehaus.plexus.context &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.wagon.authorization &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.project &lt; plexus.core
   [DEBUG]   Imported: org.apache.maven.rtinfo &lt; plexus.core
    [DEBUG]   Imported: org.codehaus.plexus.lifecycle &lt; plexus.core
    [DEBUG]   Imported: org.codehaus.plexus.configuration &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.artifact &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.model &lt; plexus.core
     [DEBUG]   Imported: org.apache.maven.* &lt; plexus.core
    [DEBUG]   Imported: org.apache.maven.wagon.proxy &lt; plexus.core
      [DEBUG]   Imported: org.sonatype.aether.resolution &lt; plexus.core
     [DEBUG]   Imported: org.apache.maven.plugin &lt; plexus.core
     [DEBUG]   Imported: org.codehaus.plexus.* &lt; plexus.core
         [DEBUG]   Imported: org.codehaus.plexus.personality &lt; plexus.core
        [DEBUG] Populating class realm maven.api
       [DEBUG] org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1:
        [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
        [DEBUG]    org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
        [DEBUG] Created new class realm plugin&gt;org.apache.maven.plugins:maven-clean-plugin:2.4.1
        [DEBUG] Importing foreign packages into class realm plugin&gt;org.apache.maven.plugins:maven-clean-plugin:2.4.1
       [DEBUG]   Imported:  &lt; maven.api
       [DEBUG] Populating class realm plugin&gt;org.apache.maven.plugins:maven-clean-plugin:2.4.1
       [DEBUG]   Included: org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1
       [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
       [DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
         [DEBUG] Configuring mojo org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean from plugin realm ClassRealm[plugin&gt;org.apache.maven.plugins:maven-clean-plugin:2.4.1, parent: sun.misc.Launcher$AppClassLoader@2d8ed284]
     [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean' with basic configurator --&gt;
     [DEBUG]   (f) directory = C:\Users\Hobbs\git\heroku\reservosity\target
     [DEBUG]   (f) excludeDefaultDirectories = false
     [DEBUG]   (f) failOnError = true
     [DEBUG]   (f) followSymLinks = false
     [DEBUG]   (f) outputDirectory = C:\Users\Hobbs\git\heroku\reservosity\target\classes
     [DEBUG]   (f) reportDirectory = C:\Users\Hobbs\git\heroku\reservosity\target\site
     [DEBUG]   (f) skip = false
     [DEBUG]   (f) testOutputDirectory = C:\Users\Hobbs\git\heroku\reservosity\target\test-classes
     [DEBUG] -- end configuration --
    [INFO] Deleting C:\Users\Hobbs\git\heroku\reservosity\target
     [INFO] Deleting file C:\Users\Hobbs\git\heroku\reservosity\target\tomcat.8080\work\Tomcat\localhost\_\WEB-INF\lib\mysql-connector-java-5.1.20.jar
     [INFO] ------------------------------------------------------------------------
     [INFO] BUILD FAILURE
     [INFO] ------------------------------------------------------------------------
     [INFO] Total time: 0.408s
    [INFO] Finished at: Thu Feb 28 21:21:27 GMT 2013
    [INFO] Final Memory: 4M/121M
      [INFO] ------------------------------------------------------------------------
           [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-       plugin:2.4.1:clean (default-clean) on project Reservosity:
    Failed to clean project: Failed to delete C:\Users\Hobbs\git\heroku\reservosity\target\tomcat.8080\work\Tomcat\localhost 
     \_\WEB-INF\lib\mysql-connector-java-5.1.20.jar -&gt; [Help 1]
     org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal   
    org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project
    Reservosity: Failed to clean project: Failed to delete C:\Users\Hobbs\git\heroku    \reservosity\target\tomcat.8080\work\Tomcat\localhost\_\WEB-INF\lib\mysql-connector-  java-5.1.20.jar
  </code></pre>
  
  <p>POM.xml:</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.example&lt;/groupId&gt;
  &lt;artifactId&gt;Reservosity&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
  &lt;properties&gt;
      &lt;org.springframework.version&gt;3.1.1.RELEASE&lt;/org.springframework.version&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;taglibs&lt;/groupId&gt;
          &lt;artifactId&gt;standard&lt;/artifactId&gt;
          &lt;version&gt;1.1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hsqldb&lt;/groupId&gt;
          &lt;artifactId&gt;hsqldb&lt;/artifactId&gt;
          &lt;version&gt;2.2.8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.20&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
          &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
          &lt;version&gt;1.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.github.jsimone&lt;/groupId&gt;
          &lt;artifactId&gt;webapp-runner&lt;/artifactId&gt;
          &lt;version&gt;7.0.27.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- Tiles dependency --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-core&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-jsp&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-api&lt;/artifactId&gt;
          &lt;version&gt;2.2.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-servlet&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
          &lt;artifactId&gt;tiles-template&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Security --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-core&lt;/artifactId&gt;
          &lt;version&gt;3.1.3.RELEASE&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-asm&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
          &lt;version&gt;3.1.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
          &lt;version&gt;3.1.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.0.GA&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;version&gt;4.1.9.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;version&gt;4.3.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
          &lt;version&gt;4.1.9.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;joda-time&lt;/groupId&gt;
          &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
          &lt;version&gt;1.9.11&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Junit API --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
          &lt;version&gt;1.9.5&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- JavaMail API --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javamail&lt;/groupId&gt;
          &lt;artifactId&gt;javamail&lt;/artifactId&gt;
          &lt;version&gt;1.3.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Java Activation --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.activation&lt;/groupId&gt;
          &lt;artifactId&gt;activation&lt;/artifactId&gt;
          &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- JavaMail extension --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.mail&lt;/groupId&gt;
          &lt;artifactId&gt;mail&lt;/artifactId&gt;
          &lt;version&gt;1.4.6-rc1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
          &lt;version&gt;1.7.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- slf4j-bridge for commons-logging --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
          &lt;version&gt;1.7.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;version&gt;1.7.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- The newrelic-agent.jar dependency. --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.newrelic.agent.java&lt;/groupId&gt;
          &lt;artifactId&gt;newrelic-agent&lt;/artifactId&gt;
          &lt;version&gt;2.12.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- The newrelic-api.jar dependency. --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.newrelic.agent.java&lt;/groupId&gt;
          &lt;artifactId&gt;newrelic-api&lt;/artifactId&gt;
          &lt;version&gt;2.12.0&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- The newrelic-java.zip dependency. --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.newrelic.agent.java&lt;/groupId&gt;
          &lt;artifactId&gt;newrelic-java&lt;/artifactId&gt;
          &lt;version&gt;2.12.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;aspectj&lt;/groupId&gt;
          &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
          &lt;version&gt;1.5.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.2&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;unpack-zip&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;unpack-dependencies&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;com.newrelic.agent.java&lt;/groupId&gt;
                                  &lt;artifactId&gt;newrelic-java&lt;/artifactId&gt;
                                  &lt;version&gt;theVersion&lt;/version&gt;
                                  &lt;type&gt;zip&lt;/type&gt;
                                  &lt;overWrite&gt;true&lt;/overWrite&gt;
                                  &lt;outputDirectory&gt;target&lt;/outputDirectory&gt;
                                  &lt;destFileName&gt;newrelic&lt;/destFileName&gt;
                              &lt;/artifactItem&gt;
                          &lt;/artifactItems&gt;
                          &lt;outputDirectory&gt;/newrelic&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;copy&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;com.github.jsimone&lt;/groupId&gt;
                                  &lt;artifactId&gt;webapp-runner&lt;/artifactId&gt;
                                  &lt;version&gt;7.0.27.1&lt;/version&gt;
                                  &lt;destFileName&gt;webapp-runner.jar&lt;/destFileName&gt;
                              &lt;/artifactItem&gt;
                          &lt;/artifactItems&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>