Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-532

Undeclared test resources fail build despite 'ignoreNonCompile'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.10
    • None
    • analyze
    • Windows 7 Pro 64-bit, Java OpenSDK 8, Maven 3.3.9

    Description

      I have this plugin in my project's root POM:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.10</version>
        <executions>
          <execution>
            <id>analyze</id>
            <goals>
              <goal>analyze-only</goal>
            </goals>
            <configuration>
              <failOnWarning>true</failOnWarning>
              <ignoreNonCompile>true</ignoreNonCompile>
              <ignoredUnusedDeclaredDependencies>*</ignoredUnusedDeclaredDependencies>
            </configuration>
          </execution>
        </executions>
      </plugin>
      

      Even though I want to ignore used undeclared test dependencies via <ignoreNonCompile>true</ignoreNonCompile>, my build fails like this in several modules:

      [INFO] --- maven-dependency-plugin:2.10:analyze-only (analyze) @ xxx.yyy ---
      [WARNING] Used undeclared dependencies found:
      [WARNING]    org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.2.0:test
      [WARNING]    org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.3:test
      [WARNING]    org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.11.Final:test
      [WARNING]    org.jboss.arquillian.spock:arquillian-spock-core:jar:1.0.0.RC4_XXX:test
      [WARNING]    org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.2.0:test
      
      (...)
      
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:analyze-only (analyze) on project xxx.yyy: Dependency problems found -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:analyze-only (analyze) on project yyy.zzz: Dependency problems found -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:analyze-only (analyze) on project zzz.aaa: Dependency problems found -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:analyze-only (analyze) on project aaa.bbb: Dependency problems found -> [Help 1]
      

      Attachments

        Activity

          People

            elharo Elliotte Rusty Harold
            kriegaex Alexander Kriegisch
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: