Skip to content

Instantly share code, notes, and snippets.

@HereChen
Created February 27, 2017 02:38
Show Gist options
  • Save HereChen/7c79485b603ad776a10ab6829b7bd22c to your computer and use it in GitHub Desktop.
Save HereChen/7c79485b603ad776a10ab6829b7bd22c to your computer and use it in GitHub Desktop.
maven war name custom plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>src/main/webapp</directory>
</resource>
</webResources>
<warName>abc2</warName>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment