title: Maven 3 transitive dependencies of test dependency are marked as compile, why?
body: <p>I observed a strange behaviour in my maven 3.0.5 / JDK 1.7 build. Within the dependency tree I found <strong>TEST</strong>-resources that have transitive <strong>COMPILE</strong> dependencies (see section 1 below).</p>
  
  <p>This triggers than in a subsequent build phase that <strong>maven-jira-plugin:4.2.20</strong> unpacks these resources to the target/class folder (In effect this is the expected/normal behaviour, but not desired here, see section 2 below)</p>
  
  <p>On an other machine, (same Maven/JDK version) these dependencies are <em>not</em> marked as <strong>COMPILE</strong> and the build is running fine.</p>
  
  <p><strong>Any hints why the transitive dependencies are marked as compile?</strong></p>
  
  <p><em>[UPDATE 1]</em> I am little bit confused about the -X output... the <em>jira maven plugins</em> seems to do some extra magic... Does "Included..." means that the jira plugin uses the specified version of the dependency-plugin?</p>
  
  <pre><code>[DEBUG] Populating class realm maven.api
  [DEBUG] Created new class realm extension&gt;com.atlassian.maven.plugins:maven-jira-plugin:4.2.20
  [DEBUG] Importing foreign packages into class realm extension&gt;com.atlassian.maven.plugins:maven-jira-plugin:4.2.20
  [DEBUG]   Imported:  &lt; maven.api
  [DEBUG] Populating class realm extension&gt;com.atlassian.maven.plugins:maven-jira-plugin:4.2.20
  [DEBUG]   Included: com.atlassian.maven.plugins:maven-jira-plugin:jar:4.2.20
  [..]
  [DEBUG]   Included: org.apache.maven.plugins:maven-dependency-plugin:jar:2.0
  </code></pre>
  
  <p><strong>(1) Dependency Tree</strong></p>
  
  <pre><code>[INFO] 
  [INFO] --- maven-dependency-plugin:2.5.1:tree (default-cli) @  ---
  [INFO] com.example.jira.plugins:example-plugin-solman-connector:atlassian-plugin:6.2.0.2-SNAPSHOT
  [INFO] +- com.atlassian.activeobjects:activeobjects-plugin:jar:0.23.2:provided
         [..]
  [INFO] +- javax.xml.ws:jaxws-api:jar:2.2.8:provided
  [INFO] +- com.sun.xml.ws:jaxws-rt:jar:2.2.8:provided
         [..]
  [INFO] +- com.atlassian.jira:jira-core:jar:6.2.2:provided
  [INFO] |  +- com.atlassian.jira:jira-api:jar:6.2.2:provided
         [..]            
  [INFO] |  +- com.atlassian.cargo-test-runner:cargo-test-runner:jar:2.6:test
  [INFO] |  |  +- org.codehaus.cargo:cargo-core-uberjar:jar:1.1.2:test
  [INFO] |  |  |  +- saxpath:saxpath:jar:1.0-FCS:**compile** &lt;-------
  [INFO] |  |  |  +- msv:msv:jar:20020414:**compile**
  [INFO] |  |  |  +- relaxngDatatype:relaxngDatatype:jar:20020414:**compile**
  [INFO] |  |  |  +- isorelax:isorelax:jar:20020414:**compile**
  [INFO] |  |  |  +- org.apache.ant:ant:jar:1.7.1:test
  [INFO] |  |  |  \- org.apache.ant:ant-launcher:jar:1.7.1:test
  [INFO] |  |  \- ant:ant:jar:1.5.4:test
  </code></pre>
  
  <p><strong>(2) Build Log including effective pom</strong></p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building example-plugin-solman-connector 6.2.0.2-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-antrun-plugin:1.7:run (default) @ example-plugin-solman-connector ---
  [INFO] Executing tasks
  
  main:
       [echo] ******************* BUILD VARIABLES ****************************************** 
       [..]
       [echo] ******************************************************************************
  [INFO] Executed tasks
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:copy-bundled-dependencies (default-copy-bundled-dependencies) @ example-plugin-solman-connector ---
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/com/google/code/gson/gson/2.2.2-atlassian-1/gson-2.2.2-atlassian-1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/javax/activation/activation/1.1.1/activation-1.1.1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/xpp3/xpp3/1.1.3.4-RC8/xpp3-1.1.3.4-RC8.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/log4j/log4j/1.2.16/log4j-1.2.16.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/stax/stax-api/1.0.1/stax-api-1.0.1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/dom4j/dom4j/1.4/dom4j-1.4.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/commons-beanutils/commons-beanutils/1.6.1/commons-beanutils-1.6.1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:compress-resources (default-compress-resources) @ example- INFO]  [..]
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ example-plugin-solman-connector -- [..]-
  [INFO] --- maven-jira-plugin:4.2.20:filter-plugin-descriptor (default-filter-plugin-descriptor) @ example-plugin-solman-connector --- [..]
  [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ example-plugin-solman-connector ---
  [INFO] Compiling 30 source files to /home/atlassian/x/build/target/classes [..]
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:generate-manifest (default-generate-manifest) @ example-plugin-solman-connector ---
  [INFO] No manifest instructions found, adding only non-OSGi manifest attributes
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:generate-rest-docs (default-generate-rest-docs) @ example-plugin-solman-connector ---
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:copy-test-bundled-dependencies (default-copy-test-bundled-dependencies) @ example-plugin-solman-connector ---
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ example-plugin-solman-connector ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory /home/atlassian/x/build/src/test/resources
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:filter-test-plugin-descriptor (default-filter-test-plugin-descriptor) @ example-plugin-solman-connector ---
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:generate-test-manifest (default-generate-test-manifest) @ example-plugin-solman-connector ---
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ example-plugin-solman-connector ---
  [INFO] No sources to compile
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:unit-test (default-unit-test) @ example-plugin-solman-connector ---
  [..]
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:validate-manifest (default-validate-manifest) @ example-plugin-solman-connector ---[..]
  [INFO] --- maven-jira-plugin:4.2.20:jar (default-jar) @ example-plugin-solman-connector ---
  [INFO] Building jar: /home/atlassian/x/build/target/example-plugin-solman-connector-6.2.0.2-SNAPSHOT-jira_6.2.2-build_unknown_unknown.jar [..]
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:generate-obr-artifact (default-generate-obr-artifact) @ example-plugin-solman-connector --- [..]
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:validate-test-manifest (default-validate-test-manifest) @ example-plugin-solman-connector ---
  [INFO] 
  [INFO] --- maven-jira-plugin:4.2.20:test-jar (default-test-jar) @ example-plugin-solman-connector ---
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building example-plugin-solman-connector 6.2.0.2-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-help-plugin:2.2:effective-pom (default-cli) @ example-plugin-solman-connector ---
  [INFO] 
  Effective POMs, after inheritance, interpolation, and profiles are applied:
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;[..]        
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;[..]&lt;/parent&gt;
    &lt;groupId&gt;com.example.jira.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;example-plugin-solman-connector&lt;/artifactId&gt;
    &lt;version&gt;6.2.0.2-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;atlassian-plugin&lt;/packaging&gt;
    &lt;developers&gt;
    &lt;scm&gt;[..]&lt;/scm&gt;
    &lt;distributionManagement&gt;[..]&lt;/distributionManagement&gt;
    &lt;properties&gt;[..]&lt;/properties&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.activeobjects&lt;/groupId&gt;
        &lt;artifactId&gt;activeobjects-plugin&lt;/artifactId&gt;
        &lt;version&gt;0.23.2&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;commons-configuration&lt;/groupId&gt;
        &lt;artifactId&gt;commons-configuration&lt;/artifactId&gt;
        &lt;version&gt;1.9&lt;/version&gt;
        &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
        &lt;version&gt;2.4&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        [..]
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        [..]
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.xml.ws&lt;/groupId&gt;
        &lt;artifactId&gt;jaxws-api&lt;/artifactId&gt;
        &lt;version&gt;2.2.8&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
        &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
        &lt;version&gt;2.2.8&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
        &lt;artifactId&gt;jira-core&lt;/artifactId&gt;
        &lt;version&gt;6.2.2&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.sal&lt;/groupId&gt;
        &lt;artifactId&gt;sal-api&lt;/artifactId&gt;
        &lt;version&gt;2.10.11&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.10&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;atlassian-plugins-osgi-testrunner&lt;/artifactId&gt;
        &lt;version&gt;1.1.4&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
        &lt;artifactId&gt;jira-tests&lt;/artifactId&gt;
        &lt;version&gt;6.2.2&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
        &lt;artifactId&gt;jira-func-tests&lt;/artifactId&gt;
        &lt;version&gt;6.2.2&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
        &lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
        &lt;version&gt;1.1.1&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
        &lt;artifactId&gt;gson&lt;/artifactId&gt;
        &lt;version&gt;2.2.2-atlassian-1&lt;/version&gt;
        &lt;scope&gt;compile&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;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;repositories&gt;
      [..]
    &lt;/repositories&gt;
    &lt;pluginRepositories&gt;
      [..]
    &lt;/pluginRepositories&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;[..]&lt;/sourceDirectory&gt;
      &lt;scriptSourceDirectory&gt;[..]&lt;/scriptSourceDirectory&gt;
      &lt;testSourceDirectory&gt;[..]&lt;/testSourceDirectory&gt;
      &lt;outputDirectory&gt;[..]&lt;/outputDirectory&gt;
      &lt;testOutputDirectory&gt;[..]&lt;/testOutputDirectory&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;directory&gt;/home/atlassian/x/build/src/main/resources&lt;/directory&gt;
          &lt;includes&gt;
            &lt;include&gt;atlassian-plugin.xml&lt;/include&gt;
          &lt;/includes&gt;
        &lt;/resource&gt;
        &lt;resource&gt;
          &lt;filtering&gt;false&lt;/filtering&gt;
          &lt;directory&gt;/home/atlassian/x/build/src/main/resources&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;atlassian-plugin.xml&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;testResources&gt;
        &lt;testResource&gt;
          &lt;directory&gt;/home/atlassian/x/build/src/test/resources&lt;/directory&gt;
        &lt;/testResource&gt;
      &lt;/testResources&gt;
      &lt;directory&gt;/home/atlassian/x/build/target&lt;/directory&gt;
      &lt;pluginManagement&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.7&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4.1&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.5.1&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-ear-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.1&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.5&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-jxr-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-plugin-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-rar-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.6&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.0-beta-7&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.1.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.12&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.1-alpha-2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-jira-plugin&lt;/artifactId&gt;
            &lt;version&gt;4.2.20&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-amps-plugin&lt;/artifactId&gt;
            &lt;version&gt;4.2.20&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
            &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.2.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.9&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-help-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.9&lt;/version&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-jira-plugin&lt;/artifactId&gt;
          &lt;version&gt;4.2.20&lt;/version&gt;
          &lt;extensions&gt;true&lt;/extensions&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-mvn-install&lt;/id&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;mvn-install&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-integration-test&lt;/id&gt;
              &lt;phase&gt;integration-test&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;integration-test&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-copy-test-bundled-dependencies&lt;/id&gt;
              &lt;phase&gt;generate-test-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;copy-test-bundled-dependencies&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-compress-resources&lt;/id&gt;
              &lt;phase&gt;process-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;compress-resources&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-filter-plugin-descriptor&lt;/id&gt;
              &lt;phase&gt;process-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;filter-plugin-descriptor&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-unit-test&lt;/id&gt;
              &lt;phase&gt;test&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;unit-test&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-filter-test-plugin-descriptor&lt;/id&gt;
              &lt;phase&gt;process-test-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;filter-test-plugin-descriptor&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-generate-test-manifest&lt;/id&gt;
              &lt;phase&gt;process-test-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate-test-manifest&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-generate-manifest&lt;/id&gt;
              &lt;phase&gt;process-classes&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate-manifest&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-generate-rest-docs&lt;/id&gt;
              &lt;phase&gt;process-classes&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate-rest-docs&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-validate-manifest&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;validate-manifest&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-jar&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;jar&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-generate-obr-artifact&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate-obr-artifact&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-validate-test-manifest&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;validate-test-manifest&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-test-jar&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;test-jar&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-copy-bundled-dependencies&lt;/id&gt;
              &lt;phase&gt;generate-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;copy-bundled-dependencies&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-mvn-deploy&lt;/id&gt;
              &lt;phase&gt;deploy&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;mvn-deploy&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
                &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
                &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;productVersion&gt;6.2.2&lt;/productVersion&gt;
            &lt;productDataVersion&gt;5.2&lt;/productDataVersion&gt;
            &lt;allowGoogleTracking&gt;false&lt;/allowGoogleTracking&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;executions&gt;[..]
          &lt;/executions&gt;
          &lt;configuration&gt;[..]
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.7&lt;/version&gt;
          &lt;executions&gt;[..]&lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.1.2&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;attach-sources&lt;/id&gt;
              &lt;phase&gt;deploy&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;jar-no-fork&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.4.1&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-clean&lt;/id&gt;
              &lt;phase&gt;clean&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;clean&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.6&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-resources&lt;/id&gt;
              &lt;phase&gt;process-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;resources&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-testResources&lt;/id&gt;
              &lt;phase&gt;process-test-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;testResources&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
          [..]
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;reporting&gt;
     [..]
    &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>