Skip to content

Commit 438b1ce

Browse files
tobespcrobbinspg
authored andcommitted
remove lib files from war (#23)
1 parent f3f73d6 commit 438b1ce

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

dashboard/pom.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
4747
</repository>
4848
</distributionManagement>
49+
4950
<dependencies>
5051
<dependency>
5152
<groupId>javax.json</groupId>
@@ -65,8 +66,17 @@
6566
<scope>compile</scope>
6667
</dependency>
6768
</dependencies>
69+
6870
<build>
6971
<plugins>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-war-plugin</artifactId>
75+
<version>3.1.0</version>
76+
<configuration>
77+
<packagingExcludes>%regex[WEB-INF/lib/*.*]</packagingExcludes>
78+
</configuration>
79+
</plugin>
7080
<plugin>
7181
<groupId>org.apache.maven.plugins</groupId>
7282
<artifactId>maven-source-plugin</artifactId>
@@ -118,15 +128,7 @@
118128
<autoReleaseAfterClose>true</autoReleaseAfterClose>
119129
</configuration>
120130
</plugin>
121-
<plugin>
122-
<groupId>org.apache.maven.plugins</groupId>
123-
<artifactId>maven-war-plugin</artifactId>
124-
<version>3.1.0</version>
125-
<configuration>
126-
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
127-
<packagingExcludes>WEB-INF/lib*</packagingExcludes>
128-
</configuration>
129-
</plugin>
131+
130132
<plugin>
131133
<artifactId>maven-compiler-plugin</artifactId>
132134
<version>3.6.1</version>

0 commit comments

Comments
 (0)