File tree 2 files changed +30
-18
lines changed
2 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 789
789
<artifactId >maven-dependency-plugin</artifactId >
790
790
<executions >
791
791
<execution >
792
- <id >unpack</id >
792
+ <id >unpack-tomcat </id >
793
793
<phase >process-test-classes</phase >
794
794
<goals >
795
795
<goal >unpack</goal >
807
807
</artifactItems >
808
808
</configuration >
809
809
</execution >
810
- </executions >
811
- </plugin >
812
- <plugin >
813
- <groupId >org.apache.maven.plugins</groupId >
814
- <artifactId >maven-antrun-plugin</artifactId >
815
- <version >1.1</version >
816
- <executions >
817
810
<execution >
811
+ <id >unpack-tomcat-users</id >
818
812
<phase >process-test-classes</phase >
819
813
<goals >
820
- <goal >run </goal >
814
+ <goal >unpack </goal >
821
815
</goals >
822
816
<configuration >
823
- <tasks >
824
- <echo >Copying server.xml</echo >
825
- <copy failonerror =" false"
826
- file =" ../../test-utils/src/main/resources/tomcat-users.xml"
827
- tofile =" ${project.build.directory}/apache-tomcat-${tomcat.version}/conf/tomcat-users.xml" />
828
- </tasks >
817
+ <artifactItems >
818
+ <artifactItem >
819
+ <groupId >org.javaee8</groupId >
820
+ <artifactId >test-utils</artifactId >
821
+ <version >${project.version} </version >
822
+ <type >jar</type >
823
+ <overWrite >true</overWrite >
824
+ <outputDirectory >${project.build.directory} /apache-tomcat-${tomcat.version} /conf</outputDirectory >
825
+ <includes >tomcat-users.xml</includes >
826
+ </artifactItem >
827
+ </artifactItems >
829
828
</configuration >
830
829
</execution >
831
830
</executions >
Original file line number Diff line number Diff line change 8
8
<groupId >org.javaee8</groupId >
9
9
<version >1.0-SNAPSHOT</version >
10
10
</parent >
11
-
11
+
12
12
<artifactId >test-utils</artifactId >
13
13
<name >Java EE 8 Samples: test-utils</name >
14
14
27
27
<artifactId >shrinkwrap-resolver-api-maven</artifactId >
28
28
</dependency >
29
29
</dependencies >
30
-
31
- </project >
30
+
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >org.apache.maven.plugins</groupId >
35
+ <artifactId >maven-dependency-plugin</artifactId >
36
+ <configuration >
37
+ <!-- no need to unpack tomcat here! -->
38
+ <skip >true</skip >
39
+ </configuration >
40
+ </plugin >
41
+ </plugins >
42
+ </build >
43
+
44
+ </project >
You can’t perform that action at this time.
0 commit comments