[ http://jira.codehaus.org/browse/MOJO-157?page=comments#action_57542 ] 

Thor Åge Eldby commented on MOJO-157:
-------------------------------------

Hi I've just finished a patch that implements the module weaving. I'll attach 
it do this issue. The example below shows the plugin configuration I use to 
aspectj-weave some modules I need for unit tests:

                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>aspectj-maven-plugin</artifactId>
                                <version>2.0-SNAPSHOT</version>
                                <configuration>
                                        <weaveModules>
                                                <module>
                                                        
<groupId>no.vegvesen.fk</groupId>
                                                        
<artifactId>common</artifactId>
                                                </module>
                                                <module>
                                                        
<groupId>no.vegvesen.fk</groupId>
                                                        
<artifactId>gen</artifactId>
                                                </module>
                                                <module>
                                                        
<groupId>no.vegvesen.fk</groupId>
                                                        
<artifactId>model</artifactId>
                                                </module>
                                        </weaveModules>
                                        
<ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
                                </configuration>
                                <executions>
                                        <execution>
                                                <goals>
                                                        
<goal>test-compile</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>


> Selective weaving of jars
> -------------------------
>
>          Key: MOJO-157
>          URL: http://jira.codehaus.org/browse/MOJO-157
>      Project: Mojo
>         Type: New Feature

>   Components: aspectj
>     Reporter: Thor Åge Eldby
>     Assignee: Kaare Nilsen

>
>
> Hi, I've been using this new mojo for a couple of hours now and its working 
> well so far for me. 
> The weaving of jars is still a bit crude. You will have to refer to the jar 
> with full path. This is a bit problematic with jars residing in repositories 
> in various places. 
> Maven1 seem to have a nifty approach to this where a property is set on the 
> dependency. See 
> http://maven.apache.org/maven-1.x/reference/plugins/aspectj/downloads.html 
> and MPASPECTJ-8.

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

Reply via email to