Hi,

I'm getting some strange behaviour sometimes. I think it happens when
there's a plugin installed (maybe only happens with SNAPSHOTs) and a newer
version is installed.

E.g. I had installed aspectj plugin 3.2-SNAPSHOT and installed a clean 3.2
with "maven clean plugin:install". Then I run "maven clean plugin:test" and
a test failed. There was an error: "Plugin 'maven-test-plugin' in project
'Test project for Maven AspectJ' is not available"
Next time I run "maven clean plugin:test" everything is correct.
I think I had the same problem before with xdoc plugin but wasn't able to
reproduce.

This is the output:

C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
>maven clean plugin:test
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1-SNAPSHOT

plugin maven-aspectj-plugin-3.2-SNAPSHOT is cached (goal) but no longer
present
Cache invalidated due to out of date plugins
Plugin 'maven-deploy-plugin' in project 'Maven AspectJ Plugin' is not
available
build:start:

clean:clean:
    [delete] Deleting directory
C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
\target
warning couldn't find aspectjrt.jar on classpath, checked:

C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
\src\plugin-test\src\aspect\org\apache\maven\aspectj\Sample.aj:25 warning no
match for this type name: org$apache$maven$aspectj$Aspect
execution(public * org.apache.maven.aspectj.AspectTest.someMethod());
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Plugin 'maven-test-plugin' in project 'Test project for Maven AspectJ' is
not available
warning couldn't find aspectjrt.jar on classpath, checked:


clean:

plugin:test:
build:start:

clean:clean:

clean:

test-aspectj-compile:
aspectj:init:

aspectj:compile:

aspectj:test-compile:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to
C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
\src\plugin-test/target/classes

java:jar-resources:

test:prepare-filesystem:
    [mkdir] Created dir:
C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
\src\plugin-test\target\test-classes
    [mkdir] Created dir:
C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
\src\plugin-test\target\test-reports

test:test-resources:

test:compile:
    [javac] Compiling 1 source file to
C:\programacion\maven-plugins\aspectj\target\checkouts\maven-plugins\aspectj
\src\plugin-test\target\test-classes

test:test:
    [junit] Running org.apache.maven.aspectj.AspectTest
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 1,061 sec
    [junit] [ERROR] TEST org.apache.maven.aspectj.AspectTest FAILED

BUILD FAILED
File...... C:\Documents and
Settings\carlos\.maven\cache\maven-plugin-plugin-1.5.2-SNAPSHOT\plugin.jelly
Element... maven:maven
Line...... 313
Column.... 34
Unable to obtain goal [test-aspectj-compile] -- C:\Documents and
Settings\carlos\.maven\cache\maven-test-plugin-1.7-SNAPSHOT\plugin.jelly:181
:54: <fail> There were test failures.
Total time: 47 seconds
Finished at: Wed Oct 06 13:41:14 CEST 2004

Regards

Carlos Sanchez
A Coru�a, Spain
http://www.jroller.com/page/carlossg/Weblog

Oness Project
http://oness.sourceforge.net



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to