Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
d04eee38
Commit
d04eee38
authored
Aug 25, 2019
by
ms group dev
Browse files
优化war打包,打包时classes下面的static与templets需要排除
parent
596639bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
d04eee38
...
@@ -81,8 +81,10 @@
...
@@ -81,8 +81,10 @@
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.0.0
</version>
<configuration>
<configuration>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
<!-- 要排除文件夹,必须/符合结束 -->
<packagingExcludes>
WEB-INF/classes/static/,WEB-INF/classes/templets/
</packagingExcludes>
<!-- 打包时候需需要启用,注意避免快照依赖的冗余jar包 -->
<!-- 打包时候需需要启用,注意避免快照依赖的冗余jar包 -->
<!-- outputFileNameMapping>@{artifactId}@- @{baseVersion}@. @{extension}@</outputFileNameMapping -->
<!-- outputFileNameMapping>@{artifactId}@- @{baseVersion}@. @{extension}@</outputFileNameMapping -->
</configuration>
</configuration>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment