You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexander Kriegisch (JIRA)" <ji...@apache.org> on 2016/07/07 14:32:11 UTC

[jira] [Updated] (MDEP-532) Undeclared test resources fail build despite 'ignoreNonCompile'

     [ https://issues.apache.org/jira/browse/MDEP-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Kriegisch updated MDEP-532:
-------------------------------------
    Description: 
I have this plugin in my project's root POM:

{code}
<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>
{code}

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

{code}
[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
{code}

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

{code}
<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>
{code}

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

{code}
[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
{code}


> Undeclared test resources fail build despite 'ignoreNonCompile'
> ---------------------------------------------------------------
>
>                 Key: MDEP-532
>                 URL: https://issues.apache.org/jira/browse/MDEP-532
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 2.10
>         Environment: Windows 7 Pro 64-bit, Java OpenSDK 8, Maven 3.3.9
>            Reporter: Alexander Kriegisch
>
> I have this plugin in my project's root POM:
> {code}
> <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>
> {code}
> Even though I want to ignore used undeclared test dependencies via {{<ignoreNonCompile>true</ignoreNonCompile>}}, my build fails like this in several modules:
> {code}
> [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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)