Skip to content

Commit c41fb74

Browse files
committed
added copy task
1 parent f241a41 commit c41fb74

File tree

4 files changed

+100
-0
lines changed

4 files changed

+100
-0
lines changed

samples/java-dropwizard/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,31 @@
7878
</execution>
7979
</executions>
8080
</plugin>
81+
<plugin>
82+
<artifactId>maven-resources-plugin</artifactId>
83+
<version>2.6</version>
84+
<executions>
85+
<execution>
86+
<id>copy-resources</id>
87+
<phase>validate</phase>
88+
<goals>
89+
<goal>copy-resources</goal>
90+
</goals>
91+
<configuration>
92+
<outputDirectory>target/${project.artifactId}-${project.version}</outputDirectory>
93+
<resources>
94+
<resource>
95+
<directory>${project.build.directory}/swagger-ui-${swagger-ui-version}/dist</directory>
96+
<filtering>true</filtering>
97+
<excludes>
98+
<exclude>index.html</exclude>
99+
</excludes>
100+
</resource>
101+
</resources>
102+
</configuration>
103+
</execution>
104+
</executions>
105+
</plugin>
81106
</plugins>
82107
</build>
83108
<dependencies>

samples/java-jaxrs-cxf/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,31 @@
105105
</execution>
106106
</executions>
107107
</plugin>
108+
<plugin>
109+
<artifactId>maven-resources-plugin</artifactId>
110+
<version>2.6</version>
111+
<executions>
112+
<execution>
113+
<id>copy-resources</id>
114+
<phase>validate</phase>
115+
<goals>
116+
<goal>copy-resources</goal>
117+
</goals>
118+
<configuration>
119+
<outputDirectory>target/${project.artifactId}-${project.version}</outputDirectory>
120+
<resources>
121+
<resource>
122+
<directory>${project.build.directory}/swagger-ui-${swagger-ui-version}/dist</directory>
123+
<filtering>true</filtering>
124+
<excludes>
125+
<exclude>index.html</exclude>
126+
</excludes>
127+
</resource>
128+
</resources>
129+
</configuration>
130+
</execution>
131+
</executions>
132+
</plugin>
108133
</plugins>
109134
</build>
110135

samples/java-jaxrs-no-webxml/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,31 @@
9090
</execution>
9191
</executions>
9292
</plugin>
93+
<plugin>
94+
<artifactId>maven-resources-plugin</artifactId>
95+
<version>2.6</version>
96+
<executions>
97+
<execution>
98+
<id>copy-resources</id>
99+
<phase>validate</phase>
100+
<goals>
101+
<goal>copy-resources</goal>
102+
</goals>
103+
<configuration>
104+
<outputDirectory>target/${project.artifactId}-${project.version}</outputDirectory>
105+
<resources>
106+
<resource>
107+
<directory>${project.build.directory}/swagger-ui-${swagger-ui-version}/dist</directory>
108+
<filtering>true</filtering>
109+
<excludes>
110+
<exclude>index.html</exclude>
111+
</excludes>
112+
</resource>
113+
</resources>
114+
</configuration>
115+
</execution>
116+
</executions>
117+
</plugin>
93118
</plugins>
94119
</build>
95120
<dependencies>

samples/java-jersey-jaxrs/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,31 @@
9090
</execution>
9191
</executions>
9292
</plugin>
93+
<plugin>
94+
<artifactId>maven-resources-plugin</artifactId>
95+
<version>2.6</version>
96+
<executions>
97+
<execution>
98+
<id>copy-resources</id>
99+
<phase>validate</phase>
100+
<goals>
101+
<goal>copy-resources</goal>
102+
</goals>
103+
<configuration>
104+
<outputDirectory>target/${project.artifactId}-${project.version}</outputDirectory>
105+
<resources>
106+
<resource>
107+
<directory>${project.build.directory}/swagger-ui-${swagger-ui-version}/dist</directory>
108+
<filtering>true</filtering>
109+
<excludes>
110+
<exclude>index.html</exclude>
111+
</excludes>
112+
</resource>
113+
</resources>
114+
</configuration>
115+
</execution>
116+
</executions>
117+
</plugin>
93118
</plugins>
94119
</build>
95120
<dependencies>

0 commit comments

Comments
 (0)