Skip to content

Commit a45b72e

Browse files
committed
updated to include swagger-ui in war file
1 parent 608f045 commit a45b72e

File tree

1 file changed

+18
-30
lines changed

1 file changed

+18
-30
lines changed

modules/swagger-generator/pom.xml

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
<resource>
1717
<directory>src/main/resources</directory>
1818
<filtering>true</filtering>
19-
<excludes>
20-
<exclude>logback.xml</exclude>
21-
</excludes>
2219
<includes>
2320
<include>**/version.prop</include>
21+
<include>logback.xml</include>
2422
</includes>
2523
</resource>
2624
</resources>
@@ -43,6 +41,17 @@
4341
<groupId>org.apache.maven.plugins</groupId>
4442
<artifactId>maven-war-plugin</artifactId>
4543
<version>2.1.1</version>
44+
<configuration>
45+
<webResources>
46+
<resource>
47+
<!-- this is relative to the pom.xml directory -->
48+
<directory>${project.build.directory}/swagger-ui-master/dist</directory>
49+
<excludes>
50+
<exclude>index.html</exclude>
51+
</excludes>
52+
</resource>
53+
</webResources>
54+
</configuration>
4655
</plugin>
4756
<plugin>
4857
<artifactId>maven-failsafe-plugin</artifactId>
@@ -68,7 +77,7 @@
6877
<stopPort>8079</stopPort>
6978
<stopKey>stopit</stopKey>
7079
<httpConnector>
71-
<port>8001</port>
80+
<port>8080</port>
7281
<idleTimeout>60000</idleTimeout>
7382
</httpConnector>
7483
</configuration>
@@ -111,31 +120,6 @@
111120
</execution>
112121
</executions>
113122
</plugin>
114-
<plugin>
115-
<artifactId>maven-resources-plugin</artifactId>
116-
<version>2.6</version>
117-
<executions>
118-
<execution>
119-
<id>copy-resources</id>
120-
<phase>validate</phase>
121-
<goals>
122-
<goal>copy-resources</goal>
123-
</goals>
124-
<configuration>
125-
<outputDirectory>target/${project.artifactId}-${project.version}</outputDirectory>
126-
<resources>
127-
<resource>
128-
<directory>${project.build.directory}/swagger-ui-master/dist</directory>
129-
<filtering>true</filtering>
130-
<excludes>
131-
<exclude>index.html</exclude>
132-
</excludes>
133-
</resource>
134-
</resources>
135-
</configuration>
136-
</execution>
137-
</executions>
138-
</plugin>
139123
</plugins>
140124
</build>
141125
<dependencies>
@@ -212,7 +196,11 @@
212196
<artifactId>jetty-deploy</artifactId>
213197
<version>${jetty-version}</version>
214198
</dependency>
215-
199+
<dependency>
200+
<groupId>org.eclipse.jetty</groupId>
201+
<artifactId>jetty-runner</artifactId>
202+
<version>${jetty-version}</version>
203+
</dependency>
216204
<dependency>
217205
<groupId>org.testng</groupId>
218206
<artifactId>testng</artifactId>

0 commit comments

Comments
 (0)