Singal, Kapil (ks220y) | 46751a7 | 2020-02-19 17:45:00 -0500 | [diff] [blame^] | 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>1.5.2-SNAPSHOT</version> |
| 9 | </parent> |
| 10 | |
| 11 | <groupId>org.onap.ccsdk.parent</groupId> |
| 12 | <artifactId>spring-boot-setup</artifactId> |
| 13 | <version>1.5.2-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.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 | </configuration> |
| 48 | </execution> |
| 49 | <execution> |
| 50 | <id>create-springboot2-parent-pom</id> |
| 51 | <goals> |
| 52 | <goal>copy-resources</goal> |
| 53 | </goals><!-- here the phase you need --> |
| 54 | <phase>validate</phase> |
| 55 | <configuration> |
| 56 | <outputDirectory>../springboot2</outputDirectory> |
| 57 | <resources> |
| 58 | <resource> |
| 59 | <directory>src/main/resources</directory> |
| 60 | <includes> |
| 61 | <include>pom-template.xml</include> |
| 62 | </includes> |
| 63 | <filtering>true</filtering> |
| 64 | </resource> |
| 65 | </resources> |
| 66 | <escapeString>\</escapeString> |
| 67 | <filters> |
| 68 | <filter>${basedir}/src/main/properties/springboot2.properties</filter> |
| 69 | </filters> |
| 70 | </configuration> |
| 71 | </execution> |
| 72 | </executions> |
| 73 | </plugin> |
| 74 | <plugin> |
| 75 | <groupId>com.coderplus.maven.plugins</groupId> |
| 76 | <artifactId>copy-rename-maven-plugin</artifactId> |
| 77 | <version>1.0.1</version> |
| 78 | <executions> |
| 79 | <execution> |
| 80 | <id>rename-springboot1-parent-pom</id> |
| 81 | <phase>validate</phase> |
| 82 | <goals> |
| 83 | <goal>rename</goal> |
| 84 | </goals> |
| 85 | <configuration> |
| 86 | <sourceFile>../springboot1/pom-template.xml</sourceFile> |
| 87 | <destinationFile>../springboot1/pom.xml</destinationFile> |
| 88 | </configuration> |
| 89 | </execution> |
| 90 | <execution> |
| 91 | <id>rename-springboot2-parent-pom</id> |
| 92 | <phase>validate</phase> |
| 93 | <goals> |
| 94 | <goal>rename</goal> |
| 95 | </goals> |
| 96 | <configuration> |
| 97 | <sourceFile>../springboot2/pom-template.xml</sourceFile> |
| 98 | <destinationFile>../springboot2/pom.xml</destinationFile> |
| 99 | </configuration> |
| 100 | </execution> |
| 101 | </executions> |
| 102 | </plugin> |
| 103 | </plugins> |
| 104 | </build> |
| 105 | </project> |