[ 
http://jira.codehaus.org/browse/MOJO-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114934
 ] 

Simone Gianni commented on MOJO-950:
------------------------------------

I just changed the version to 1.5.3. It emits the warning :

[WARNING] bad version number found in 
/home/sym/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar expected 
1.5.2a found 1.5.3

And seems like tests never work. With 1.5.2a they work always. With 1.5.0 they 
work, i would say, 50% of times.

When they fail, it's always because it runs tests on non weaved classes, so i 
find a lot of NoSuchField and NoSuchMethod exceptions.



> Running tests is unpredictable if aspectjrt version is not 1.5.2a
> -----------------------------------------------------------------
>
>                 Key: MOJO-950
>                 URL: http://jira.codehaus.org/browse/MOJO-950
>             Project: Mojo
>          Issue Type: Bug
>          Components: aspectj
>         Environment: Maven 2.0.6, Gentoo Linux
>            Reporter: Simone Gianni
>            Priority: Minor
>
> The aspectj plugin is not injecting a dependency to the right version of 
> aspectjrt, instead this has to be provided in the POM. 
> The plugin expects version 1.5.2a at the time of this writing. 
> It simply complains with a warning if another version (1.5.0) is found.
> The real problem is that everything seems to work correctly also with the 
> 1.5.0 version, except that running tests sometimes works, sometimes doesn't 
> (test are launched, but seems like if they are launched on non weaved 
> classes), in a completely random way.
> Repeating mvn clean install several times occasionally manages to execute the 
> test correctly.
> Since it took me ages to figure this out, I'm writing it here so that other 
> people can benefit, but it could also be a good idea to somehow state, during 
> plugin execution, that 1.5.2a is the REQUIRED version to properly run tests, 
> and eventually even skip or fail the aspectj:test-compile phase if the 
> version is not the correct one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to