Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Maven-aspectj-plugin weaving while doing other than compile tasks causes errors

Hi.. could you please run mvn with the -X option and pipe the log to a
file, and attach this to a mail ?

On 26/04/07, Bartłomiej Zdanowski DRP AC2 <b.zdanowski@xxxxxxxxxxxx> wrote:


 Hello,
 I posted this mail to Maven group but no response. Maybe you can help.

 I use maven to do code production tasks. While calling
 mvn compile
 it does aspectj compiling which is what I need. But while calling
 mvn package
 it does aspect weaving again and I get lot of errors because AspectJ tries
to weave same inter-type methods and fields again into already compiled
code.

 Does anybody know how to _disable_ weaving while in tasks other than
"compile"? My Maven conf. for AspectJ plugin is

              <plugin>
                 <groupId>org.codehaus.mojo</groupId>

<artifactId>aspectj-maven-plugin</artifactId>
                 <configuration>
                     <showWeaveInfo>true</showWeaveInfo>
                     <Xlint>warning</Xlint>
                 </configuration>
                 <executions>
                     <execution>
                          <id>compile</id>
                         <configuration>
                             <complianceLevel>1.5</complianceLevel>
                             <verbose>true</verbose>

<ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
                         </configuration>
                         <goals>
                             <goal>compile</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>test-compile</id>
                         <configuration>
                             <complianceLevel>1.5</complianceLevel>
                             <verbose>true</verbose>

<ajdtBuildDefFile>test.ajproperties</ajdtBuildDefFile>
                         </configuration>
                         <goals>
                             <goal>test-compile</goal>
                         </goals>
                     </execution>
                </executions>
            </plugin>



 Thank you kindly.
 Best regards,

--
 Bartlomiej Zdanowski
 Programmer
 Product Research & Development Department
 AutoGuard & Insurance Ltd.

 Omulewska 27 street
 04-128 Warsaw
 Poland
 phone +48 22 611 69 23
 www.autoguard.pl

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top