I think you'll need to change the packaging from jar in order to remove the
default execution of the maven-compiler-plugin...

of course you'll have to add back in all the other plugins that you need
(i.e. resources, surefire, jar, etc)

2008/11/20 matthew hindle <[EMAIL PROTECTED]>

>
> Apologies Nabble 2 seemed to mess the code up.
>
> Hi, I'm trying to override the default maven compiler with
> aspectj-maven-plugin. But it insists on compiling.
>
> My compiler settings are:
>
> <plugin>
>        <groupId>org.codehaus.mojo</groupId>
>        <artifactId>aspectj-maven-plugin</artifactId>
>        <version>1.1-alpha</version>
>        <configuration>
>                <complianceLevel>1.6</complianceLevel>
>                <source>1.6</source>
>                <target>1.6</target>
>                <showWeaveInfo>true</showWeaveInfo>
>                <Xlint>warning</Xlint>
>                        <aspectDirectory>src/main/aspect</aspectDirectory>
>                <verbose>true</verbose>
>        </configuration>
>        <dependencies>
>                <dependency>
>                        <groupId>org.aspectj</groupId>
>                        <artifactId>aspectjrt</artifactId>
>                        <version>1.6.1</version>
>                </dependency>
>        <dependency>
>                <groupId>org.aspectj</groupId>
>                <artifactId>aspectjtools</artifactId>
>                <version>1.6.1</version>
>        </dependency>
>        <dependencies>
>        <executions>
>                 <execution>
>                       <id>compile</id>
>                        <phase>compile</phase>
>                        <goals>
>                                        <goal>compile</goal>
>                        </goals>
>                  </execution>
>                  <execution>
>                         <id>test-compile</id>
>                          <phase>test-compile</phase>
>                           <goals>
>                        <goal>test-compile</goal>
>                           </goals>
>                  </execution>
>           </executions>
> </plugin>
>
> I have even tried to exclude compiled classes with:
>
> <plugin>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>                <excludes>
>                        <exclude>**/*.*</exclude>
>                </excludes>
>        </configuration>
> </plugin>
>
> This still tries to compile the test cases.
>
> Many Thanks,
> Matt.
> --
> View this message in context:
> http://www.nabble.com/override-maven-compiler-plugin--tp20604615p20604672.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to