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>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>springboot-aggregator</artifactId>
8 <version>1.5.8-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.parent</groupId>
12 <artifactId>spring-boot-setup</artifactId>
13 <version>1.5.8-SNAPSHOT</version>
14 <packaging>pom</packaging>
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>
23 <artifactId>maven-resources-plugin</artifactId>
24 <version>2.6</version>
27 <id>create-springboot1-parent-pom</id>
29 <goal>copy-resources</goal>
30 </goals><!-- here the phase you need -->
31 <phase>validate</phase>
33 <outputDirectory>../springboot1</outputDirectory>
36 <directory>src/main/resources</directory>
38 <include>pom-template.xml</include>
40 <filtering>true</filtering>
43 <escapeString>\</escapeString>
45 <filter>${basedir}/src/main/properties/springboot1.properties</filter>
50 <id>create-springboot2-parent-pom</id>
52 <goal>copy-resources</goal>
53 </goals><!-- here the phase you need -->
54 <phase>validate</phase>
56 <outputDirectory>../springboot2</outputDirectory>
59 <directory>src/main/resources</directory>
61 <include>pom-template.xml</include>
63 <filtering>true</filtering>
66 <escapeString>\</escapeString>
68 <filter>${basedir}/src/main/properties/springboot2.properties</filter>
75 <groupId>com.coderplus.maven.plugins</groupId>
76 <artifactId>copy-rename-maven-plugin</artifactId>
77 <version>1.0.1</version>
80 <id>rename-springboot1-parent-pom</id>
81 <phase>validate</phase>
86 <sourceFile>../springboot1/pom-template.xml</sourceFile>
87 <destinationFile>../springboot1/pom.xml</destinationFile>
91 <id>rename-springboot2-parent-pom</id>
92 <phase>validate</phase>
97 <sourceFile>../springboot2/pom-template.xml</sourceFile>
98 <destinationFile>../springboot2/pom.xml</destinationFile>