Hi Folks,

I am using Groovy to run some integration tests.  So far, everything was
working well, but, I went into troubles when I try to add AspectJ on it.

I attached my pom.

I'm using gmaven and aspectJ only on tests phases.  There are no sources on
src/main/*

When I only have gmaven, everything work:

> <plugin>
>   <groupId>org.codehaus.groovy.maven</groupId>
>   <artifactId>gmaven-plugin</artifactId>
>   <version>1.0-rc-3</version>
>   <executions>
>     <execution>
>       <goals>
>         <goal>generateTestStubs</goal>
>         <goal>testCompile</goal>
>       </goals>
>     </execution>
>   </executions>
> </plugin>
>

My tests run and I get results.

But, when I enable AspectJ:

> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>aspectj-maven-plugin</artifactId>
>   <version>1.1</version>
>   <executions>
>     <execution>
>       <phase>process-test-classes</phase>
>       <goals>
>         <goal>test-compile</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <complianceLevel>1.5</complianceLevel>
>   </configuration>
> </plugin>
>

I got the following warning:

> [WARNING] build config error: skipping missing, empty or corrupt aspectpath
> entry: D:\sonatype\workspace\groovy-test\target\classes
>

What worries me most is when this happens tests doesn't run anymore.

Does anyone have any idea what is going on and how can I fix that?


VELO
<?xml version="1.0" encoding="UTF-8"?>
<project>

  <modelVersion>4.0.0</modelVersion>

  <groupId>com.acme</groupId>
  <artifactId>groovy-test</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <dependencies>
    <dependency>
      <groupId>org.codehaus.groovy.maven</groupId>
      <artifactId>gmaven-mojo</artifactId>
      <version>1.0-rc-3</version>
    </dependency>

    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>5.8</version>
      <classifier>jdk15</classifier>
    </dependency>

    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>1.6.2</version>
    </dependency>
  </dependencies>

  <build>
    <testSourceDirectory>src/test/groovy</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <!-- http://maven.apache.org/plugins/maven-compiler-plugin/ -->
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.groovy.maven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <version>1.0-rc-3</version>
        <executions>
          <execution>
            <goals>
              <goal>generateTestStubs</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>aspectj-maven-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <phase>process-test-classes</phase>
            <goals>
              <goal>test-compile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <complianceLevel>1.5</complianceLevel>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to