[ 
http://jira.codehaus.org/browse/MASPECTJ-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234058#action_234058
 ] 

Ichthyostega commented on MASPECTJ-16:
--------------------------------------

Hi all,

seems that we've been hit by the same issue, which we basically found out "the 
hard way", step by step. see MASPECTJ-87. We had had suffered from seemingly 
random build failures, which we tracked down to be caused by the pluging 
picking an project attachment instead of the main artefact as aspect library, 
which leads to some aspects missing and other aspects (from the attachment) 
being applied.

> <aspectLibrary> must support <type> (and <classifier>)
> ------------------------------------------------------
>
>                 Key: MASPECTJ-16
>                 URL: http://jira.codehaus.org/browse/MASPECTJ-16
>             Project: Mojo AspectJ Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: René Zanner
>            Priority: Blocker
>         Attachments: MASPECTJ-16.diff
>
>
> When defining <aspectLibraries> in my plugin configuration, I can only use 
> <groupId> and <artifactId> to specify dependencies from my POM. When I have 
> two dependencies with the same coordinates but a different type, the plugin 
> ignores the JAR type dependency because of failing with the other typed 
> dependency.
> Example:
> <project>
>   <dependency>
>     <groupId>group</groupId>
>     <artifactId>artifact</artifactId>
>   </dependency>
>   <dependency>
>     <groupId>group</groupId>
>     <artifactId>artifact</artifactId>
>     <!-- specify a different artifact - not to be weaved - by <type> and 
> <classifier> -->
>     <classifier>mda</classifier>
>     <type>xmi</type>
>   </dependency>
>   ...
>   <plugins>
>     <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>       <artifactId>aspectj-maven-plugin</artifactId>
>       <configuration>
>         <aspectLibraries>
>           <aspectLibrary>
>             <groupId>group</groupId>
>             <artifactId>artifact</artifactId>
>             <!-- cannot specify <type> "jar" (or <classifier>) here  -->
>           </aspectLibrary>
>         </aspectLibraries>
>       </configuration>
>     </plugin>
>     ...
>   </plugins>
>   ...
> </project>
> This is not weaving with the JAR type dependency because of the following 
> warning:
> [WARNING] build config error: skipping missing, empty or corrupt aspectpath 
> entry: ...\.m2\repository\group\artifact\1.83.0\artifact-1.83.0-mda.xmi
> Beforehand, the debug message 
> [DEBUG] Adding -aspectpath: 
> ...\.m2\repository\group\artifact\1.83.0\artifact-1.83.0-mda.xmi
> lets assume that the JAR type dependency was not even added to the 
> aspectpath, so nothing is weaved at all.

-- 
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