Domanda

Is it possible to make an exception (i.e. something to be excluded ) from AspectJ weaveDependencies? Something like the line with capital letters below?

<build>
<plugins>
  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>aspectj-maven-plugin</artifactId>
    <version>1.5</version>
    <configuration>
      <weaveDependencies>
        <weaveDependency>
          <groupId>org.agroup</groupId>
          <artifactId>to-weave</artifactId>

          ***<EXCLUDE>WE.DONT.NEED.THIS.SUB.PACKAGE </EXCLUDE>***

        </weaveDependency>

      </weaveDependencies>
    </configuration>
    <executions>
      <execution>
        <goals>
          <goal>compile</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
  ...
</plugins>

È stato utile?

Soluzione

<excludes>
             <exclude>**/gaffer/*.java</exclude>
              <exclude>**/gaffer/**.java</exclude>
       </excludes>  
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top