You will need to have a plugin configuration. Now you are only having a pluginManagement config. The easiest solution is to remove the pluginManagement tag, but that of course depends on your other build needs, and how you use the pluginManagement feature.

On Jan 19, 2009, at 9:37 AM, zorro2b wrote:


Try running maven with the -X option, and post your config, and
aspectJ output from maven, and I am sure we will figure out what's wrong

-X didn't help me.

Here is my config:
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
<modelVersion>4.0.0</modelVersion>
<groupId>itree.test</groupId>
<artifactId>testaj</artifactId>
<packaging>jar</packaging>
<name>TestAJ</name>
<version>1.1-SNAPSHOT</version>

<build>
  <pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <source>1.5</source>
        <target>1.5</target>
      </configuration>
    </plugin>

          <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <testFailureIgnore>true</testFailureIgnore>
        </configuration>
      </plugin>

              <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>aspectj-maven-plugin</artifactId>
                      <version>1.1</version>
                      <executions>
                              <execution>
                                      <goals>
                                              <goal>compile</goal>
<goal>test-compile</ goal>
                                      </goals>
                              </execution>
                 </executions>
         </plugin>

  </plugins>
  </pluginManagement>
</build>

<dependencies>

  <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.4.0</version>
    <scope>test</scope>
  </dependency>
      <dependency>
              <groupId>org.aspectj</groupId>
              <artifactId>aspectjrt</artifactId>
              <version>1.6.2</version>
      </dependency>
</dependencies>

</project>



--
View this message in context: 
http://www.nabble.com/aspectj-plugin-won%27t-run-tp21537519p21538752.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to