[ 
https://issues.apache.org/jira/browse/RAT-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163977#comment-13163977
 ] 

Orion Poplawski commented on RAT-113:
-------------------------------------

Okay, so I patched the apache-rat-plugin/pom.xml to add a dependency on 
maven-compat which allows it to build.  Now I get a test failure:

Running org.apache.rat.mp.RatCheckMojoTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 2.185 sec <<< 
FAILURE!

Results :

Tests in error: 
  testIt1(org.apache.rat.mp.RatCheckMojoTest): java.util.NoSuchElementException
  testIt2(org.apache.rat.mp.RatCheckMojoTest): java.util.NoSuchElementException
  testIt3(org.apache.rat.mp.RatCheckMojoTest): java.util.NoSuchElementException

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0

$ cat 
/export/home/orion/fedora/apache-rat/apache-re-rat-plugin/target/surefire-reports/org.apache.rat.mp.RatCheckMojoTest.txt
 
-------------------------------------------------------------------------------
Test set: org.apache.rat.mp.RatCheckMojoTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 2.185 sec <<< 
FAILURE!
testIt1(org.apache.rat.mp.RatCheckMojoTest)  Time elapsed: 1.551 sec  <<< ERROR!
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
java.util.NoSuchElementException
      role: org.apache.maven.plugin.Mojo
  roleHint: org.apache.rat:apache-rat-plugin:0.8:check
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:231)
        at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:200)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:182)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:127)
        at 
org.apache.rat.mp.RatCheckMojoTest.newRatMojo(RatCheckMojoTest.java:161)
        at 
org.apache.rat.mp.RatCheckMojoTest.newRatCheckMojo(RatCheckMojoTest.java:145)
        at org.apache.rat.mp.RatCheckMojoTest.testIt1(RatCheckMojoTest.java:304)
Caused by: java.util.NoSuchElementException
        at java.util.Collections$EmptyIterator.next(Collections.java:2958)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
        ... 35 more
testIt2(org.apache.rat.mp.RatCheckMojoTest)  Time elapsed: 0.27 sec  <<< ERROR!
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
java.util.NoSuchElementException
      role: org.apache.maven.plugin.Mojo
  roleHint: org.apache.rat:apache-rat-plugin:0.8:check
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:231)
        at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:200)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:182)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:127)
        at 
org.apache.rat.mp.RatCheckMojoTest.newRatMojo(RatCheckMojoTest.java:161)
        at 
org.apache.rat.mp.RatCheckMojoTest.newRatCheckMojo(RatCheckMojoTest.java:145)
        at org.apache.rat.mp.RatCheckMojoTest.testIt2(RatCheckMojoTest.java:353)
Caused by: java.util.NoSuchElementException
        at java.util.Collections$EmptyIterator.next(Collections.java:2958)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
        ... 35 more
testIt3(org.apache.rat.mp.RatCheckMojoTest)  Time elapsed: 0.278 sec  <<< ERROR!
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
java.util.NoSuchElementException
      role: org.apache.maven.plugin.Mojo
  roleHint: org.apache.rat:apache-rat-plugin:0.8:check
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:231)
        at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:200)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:182)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:127)
        at 
org.apache.rat.mp.RatCheckMojoTest.newRatMojo(RatCheckMojoTest.java:161)
        at org.apache.rat.mp.RatCheckMojoTest.testIt3(RatCheckMojoTest.java:380)
Caused by: java.util.NoSuchElementException
        at java.util.Collections$EmptyIterator.next(Collections.java:2958)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
        ... 34 more

                
> Support maven 3
> ---------------
>
>                 Key: RAT-113
>                 URL: https://issues.apache.org/jira/browse/RAT-113
>             Project: RAT
>          Issue Type: New Feature
>          Components: maven
>    Affects Versions: 0.9
>         Environment: Fedora 16, maven 3
>            Reporter: Orion Poplawski
>
> Trying to build current trunk (revision 1211216) with maven 3 on Fedora, I 
> get:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
> (default-compile) on project apache-rat-plugin: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /export/home/orion/fedora/apache-rat/rat-trunk-build/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java:[27,41]
>  cannot find symbol
> [ERROR] symbol  : class ArtifactResolver
> [ERROR] location: package org.apache.maven.artifact.resolver
> [ERROR] 
> [ERROR] 
> /export/home/orion/fedora/apache-rat/rat-trunk-build/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java:[87,12]
>  cannot find symbol
> [ERROR] symbol  : class ArtifactResolver
> [ERROR] location: class org.apache.rat.mp.RatReportMojo
> [ERROR] 
> [ERROR] 
> /export/home/orion/fedora/apache-rat/rat-trunk-build/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java:[27,41]
>  cannot find symbol
> [ERROR] symbol  : class ArtifactResolver
> [ERROR] location: package org.apache.maven.artifact.resolver
> [ERROR] 
> [ERROR] 
> /export/home/orion/fedora/apache-rat/rat-trunk-build/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java:[87,12]
>  cannot find symbol
> [ERROR] symbol  : class ArtifactResolver
> [ERROR] location: class org.apache.rat.mp.RatReportMojo
> It seems the ArtifactResolver class is not in maven 3.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to