Release version 2.4.2 parent poms
[ccsdk/parent.git] / springboot / spring-boot-setup / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.ccsdk.parent</groupId>
7         <artifactId>springboot-aggregator</artifactId>
8         <version>2.4.3-SNAPSHOT</version>
9     </parent>
10
11     <groupId>org.onap.ccsdk.parent</groupId>
12     <artifactId>spring-boot-setup</artifactId>
13     <version>2.4.3-SNAPSHOT</version>
14     <packaging>pom</packaging>
15
16     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
17     <description>Root POM to be used in place of spring-boot parent for CCSDK based projects</description>
18     <url>http://wiki.onap.org</url>
19
20     <build>
21         <plugins>
22             <plugin>
23                 <artifactId>maven-resources-plugin</artifactId>
24                 <version>2.6</version>
25                 <executions>
26                     <execution>
27                         <id>create-springboot1-parent-pom</id>
28                         <goals>
29                             <goal>copy-resources</goal>
30                         </goals><!-- here the phase you need -->
31                         <phase>validate</phase>
32                         <configuration>
33                             <outputDirectory>../springboot1</outputDirectory>
34                             <resources>
35                                 <resource>
36                                     <directory>src/main/resources</directory>
37                                     <includes>
38                                         <include>pom-template-jdk8.xml</include>
39                                     </includes>
40                                     <filtering>true</filtering>
41                                 </resource>
42                             </resources>
43                             <escapeString>\</escapeString>
44                             <filters>
45                                 <filter>${basedir}/src/main/properties/springboot1.properties</filter>
46                             </filters>
47                             <encoding>UTF-8</encoding>
48                         </configuration>
49                     </execution>
50                     <execution>
51                         <id>create-springboot23-parent-pom</id>
52                         <goals>
53                             <goal>copy-resources</goal>
54                         </goals><!-- here the phase you need -->
55                         <phase>validate</phase>
56                         <configuration>
57                             <outputDirectory>../springboot23</outputDirectory>
58                             <resources>
59                                 <resource>
60                                     <directory>src/main/resources</directory>
61                                     <includes>
62                                         <include>pom-template-jdk8.xml</include>
63                                     </includes>
64                                     <filtering>true</filtering>
65                                 </resource>
66                             </resources>
67                             <escapeString>\</escapeString>
68                             <filters>
69                                 <filter>${basedir}/src/main/properties/springboot23.properties</filter>
70                             </filters>
71                             <encoding>UTF-8</encoding>
72                         </configuration>
73                     </execution>
74                     <execution>
75                         <id>create-springboot25-parent-pom</id>
76                         <goals>
77                             <goal>copy-resources</goal>
78                         </goals><!-- here the phase you need -->
79                         <phase>validate</phase>
80                         <configuration>
81                             <outputDirectory>../springboot25</outputDirectory>
82                             <resources>
83                                 <resource>
84                                     <directory>src/main/resources</directory>
85                                     <includes>
86                                         <include>pom-template-jdk11.xml</include>
87                                     </includes>
88                                     <filtering>true</filtering>
89                                 </resource>
90                             </resources>
91                             <escapeString>\</escapeString>
92                             <filters>
93                                 <filter>${basedir}/src/main/properties/springboot25.properties</filter>
94                             </filters>
95                             <encoding>UTF-8</encoding>
96                         </configuration>
97                     </execution>
98                     <execution>
99                         <id>create-springboot26-parent-pom</id>
100                         <goals>
101                             <goal>copy-resources</goal>
102                         </goals><!-- here the phase you need -->
103                         <phase>validate</phase>
104                         <configuration>
105                             <outputDirectory>../springboot26</outputDirectory>
106                             <resources>
107                                 <resource>
108                                     <directory>src/main/resources</directory>
109                                     <includes>
110                                         <include>pom-template-jdk11.xml</include>
111                                     </includes>
112                                     <filtering>true</filtering>
113                                 </resource>
114                             </resources>
115                             <escapeString>\</escapeString>
116                             <filters>
117                                 <filter>${basedir}/src/main/properties/springboot26.properties</filter>
118                             </filters>
119                             <encoding>UTF-8</encoding>
120                         </configuration>
121                     </execution>
122                 </executions>
123             </plugin>
124             <plugin>
125                 <groupId>com.coderplus.maven.plugins</groupId>
126                 <artifactId>copy-rename-maven-plugin</artifactId>
127                 <version>1.0.1</version>
128                 <executions>
129                     <execution>
130                         <id>rename-springboot1-parent-pom</id>
131                         <phase>validate</phase>
132                         <goals>
133                             <goal>rename</goal>
134                         </goals>
135                         <configuration>
136                             <sourceFile>../springboot1/pom-template-jdk8.xml</sourceFile>
137                             <destinationFile>../springboot1/pom.xml</destinationFile>
138                         </configuration>
139                     </execution>
140                     <execution>
141                         <id>rename-springboot23-parent-pom</id>
142                         <phase>validate</phase>
143                         <goals>
144                             <goal>rename</goal>
145                         </goals>
146                         <configuration>
147                             <sourceFile>../springboot23/pom-template-jdk8.xml</sourceFile>
148                             <destinationFile>../springboot23/pom.xml</destinationFile>
149                         </configuration>
150                     </execution>
151                     <execution>
152                         <id>rename-springboot25-parent-pom</id>
153                         <phase>validate</phase>
154                         <goals>
155                             <goal>rename</goal>
156                         </goals>
157                         <configuration>
158                             <sourceFile>../springboot25/pom-template-jdk11.xml</sourceFile>
159                             <destinationFile>../springboot25/pom.xml</destinationFile>
160                         </configuration>
161                     </execution>
162                     <execution>
163                         <id>rename-springboot26-parent-pom</id>
164                         <phase>validate</phase>
165                         <goals>
166                             <goal>rename</goal>
167                         </goals>
168                         <configuration>
169                             <sourceFile>../springboot26/pom-template-jdk11.xml</sourceFile>
170                             <destinationFile>../springboot26/pom.xml</destinationFile>
171                         </configuration>
172                     </execution>
173                 </executions>
174             </plugin>
175         </plugins>
176     </build>
177 </project>