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

Elliotte Rusty Harold commented on MSHADE-149:
----------------------------------------------

I don;t know anything about AOP. Does this make sense?

> XmlAppendingTransformer not adequate for aop-ajc.xml files
> ----------------------------------------------------------
>
>                 Key: MSHADE-149
>                 URL: https://issues.apache.org/jira/browse/MSHADE-149
>             Project: Maven Shade Plugin
>          Issue Type: Improvement
>            Reporter: Pascal Pochet
>            Priority: Trivial
>         Attachments: AopAjcXmlResourceTransformer.java
>
>
> When merging aop-ajc.xml files (== merging several AspectJ jars...), 
> XmlAppendingTransformer generates:
> <aspectj>
>    <aspects>
>      ...aspects of jar 1
>    </aspects>
>    <aspects>
>       ...aspects of jar 2
>    </aspects>
>    ...
>    <aspects>
>       ...aspects of jar N
>    </aspects>
> <aspectj>
> instead of
> <aspectj>
>    <aspects>
>      ...aspects of jar 1
>      ...aspects of jar 2
>      ...aspects of jar N
>    </aspects>
> <aspectj>
> Solution:
> add the attached transformer to the list of existing ones.
> and in pom.xml:
> <transformer 
> implementation="org.apache.maven.plugins.shade.resource.AopAjcXmlResourceTransformer">
>     <resource>META-INF/aop-ajc.xml</resource>
> </transformer>
> NB
> A more general solution would be to add a parameter to 
> XmlAppendingTransformer to specify the XML level to merge... (maybe as a 
> XPath expression ?)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to