Howdy -

I'm new to the Maven world, and I'm working on getting an existing project layout/build process ported to the Maven world. It's 99% of the way there, but I'm having a hangup with trying to get AspectJ weaving included in our build. I included the aspectj-maven-plugin into our POM exactly as specified on the web site:

<build>
  <pluginManagement>
      <plugins>
        <!-- surefire config here -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>aspectj-maven-plugin</artifactId>
          <version>1.1</version>
          <executions>
            <execution>
              <id>compile</id>
              <goals>
                <goal>compile</goal>
                <goal>test-compile</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

However, even though the build (using 'mvn install') goes fine, the ensuing application does not appear to be weaved. The advice does not fire when it should, even though everything seems to be normal when running the same code from within Eclipse - this is clear both from failing JUnit tests and actually using the app. We're using Spring Aspects; this shouldn't make any sort of difference since annotation- driven aspects are recognized by the AspectJ weaver. Is there something I'm missing?

Thanks,
-peter

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

   http://xircles.codehaus.org/manage_email


Reply via email to