On 2009-02-10, Stefan Bodewig <[email protected]> wrote:

> The AntUnit tests fail for me as well, I'll see if I can make them run
> outside of mvn.

OK, we have a bunch of different issues, some of which I have
addressed:

* The Ant tasklib's JUnit tests failed on Windows, fixed now.

* There is/was a ClassLoader issue that made the testCustomMatcher
  tests fail even when run inside Ant (the test class must be loaded
  via the same classloader as the rat task itself or otherwise the
  tast class implements a "different" IHeaderMatcher).

  Fixed for the case where AntUnit is run inside Ant, but currently
  javac fails when I run the tests from inside Maven since <javac>
  doesn't seem to find tools.jar - I'm way outside of my mvn foo here.

* For some reasons the AntUnit tests fail when the report goes to
  Ant's logging system instead of a file.  This looks like a bug in
  AntUnit that I may find time to address later (way later, I'm
  afraid).

  Right now I can see the log is OK, so the tests are supposed to
  pass.  I've disabled the tests.

Right now I'm stuck with a clean mvn build (I knew I'd type that ;-):

,----
| $ mvn clean package > log
| $ tail -n 40 log
| [au:antunit] Target: testWithASLUnknownSentToFile took 0,172 sec
| [au:antunit] Target: testWithReportSentToFile took 0,094 sec
| [INFO] Executed tasks
| [INFO] [jar:jar]
| [INFO] Building jar: 
C:\OSS\rat\rat\rat-anttasks\target\rat-anttasks-0.6-SNAPSHO
| T.jar
| [INFO] 
------------------------------------------------------------------------
| [INFO] Building RAT Maven Plugin
| [INFO]    task-segment: [clean, package]
| [INFO] 
------------------------------------------------------------------------
| [INFO] 
------------------------------------------------------------------------
| [ERROR] BUILD FAILURE
| [INFO] 
------------------------------------------------------------------------
| [INFO] A required plugin was not found: Plugin could not be found - check 
that t
| he goal name is correct: Unable to download the artifact from any repository
| 
| Try downloading the file manually from the project website.
| 
| Then, install it using the command:
|     mvn install:install-file -DgroupId=org.apache.rat 
-DartifactId=rat-maven-plu
| gin -Dversion=0.6-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file
| 
| Alternatively, if you host your own repository you can deploy the file there:
|     mvn deploy:deploy-file -DgroupId=org.apache.rat 
-DartifactId=rat-maven-plugi
| n -Dversion=0.6-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file 
-Durl=[ur
| l] -DrepositoryId=[id]
| 
| 
|   org.apache.rat:rat-maven-plugin:maven-plugin:0.6-SNAPSHOT
| 
| from the specified remote repositories:
|   central (http://repo1.maven.org/maven2)
| 
|   org.apache.rat:rat-maven-plugin:maven-plugin:0.6-SNAPSHOT
| 
| from the specified remote repositories:
|   central (http://repo1.maven.org/maven2)
| 
| [INFO] 
------------------------------------------------------------------------
| [INFO] For more information, run Maven with the -e switch
| [INFO] 
------------------------------------------------------------------------
| [INFO] Total time: 11 seconds
| [INFO] Finished at: Tue Feb 10 11:03:36 CET 2009
| [INFO] Final Memory: 25M/46M
| [INFO] 
------------------------------------------------------------------------
`----

No idea what to do with this.

Stefan

Reply via email to