开发者

Filter inclusion of classes maven-war-plugin

I wonder if it is possible to filter out files from WEB-INF/classes with maven-war-plugin?

I have the following java package structure:

src/main/java/
package1.client.*
package2.client.*
package2.server.*

When building the project I do not want any .client.* classes in my WEB-INF/classes folder. (It's a GWT project).

Is this possible开发者_JS百科?

Thanks in advance!

Niclas


When building the project I do not want any .client.* classes in my WEB-INF/classes folder. Is this possible?

The following should work:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-war-plugin</artifactId>
  <version>2.0.2</version>
  <configuration>
    <excludes>
      <exclude>**/client/*.class</exclude>
    </excludes>
  </configuration>
</plugin>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜