1

是否可以从 AspectJ weaveDependencies 中创建一个例外(即要排除的东西)?类似于下面带有大写字母的行?

<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>

4

1 回答 1

1
<excludes>
             <exclude>**/gaffer/*.java</exclude>
              <exclude>**/gaffer/**.java</exclude>
       </excludes>  
于 2014-02-12T09:04:37.867 回答