How do I prevent the WEB-INF directory from being included in the .war package?
This does not work.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1</version>
<configuration>
<warSourceExcludes>WEB-INF/**</warSourceExcludes>
</configuration>
</plugin>
This does not work, either.
<warSourceExcludes>WEB-INF</warSourceExcludes>
Since it's a static HTML site with only .js, .css, and .html, I switched to the rar package format that only generates a META-INF. Then I added this:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments