summaryrefslogtreecommitdiffstats
path: root/odlparent/setup/pom.xml
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2018-12-18 16:05:41 -0500
committerTimoney, Dan (dt5972) <dtimoney@att.com>2018-12-18 16:05:41 -0500
commit3beea0e535215ac127e68af16ff78d9cffeafd11 (patch)
treea4832ec7e602bbf9e47d5f8c48e767d13f53e89a /odlparent/setup/pom.xml
parentd5125039dd3176bc27dbf6f19dc12c793f66448a (diff)
Generate odlparent poms from template
Updated ccsdk/parent to use a common pom template to generate all the odlparent poms, which should be identical except for their parents. Change-Id: I1cfcff7191ca95434e390d5cf35651c0ad40705d Issue-ID: CCSDK-857 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Diffstat (limited to 'odlparent/setup/pom.xml')
-rwxr-xr-xodlparent/setup/pom.xml280
1 files changed, 280 insertions, 0 deletions
diff --git a/odlparent/setup/pom.xml b/odlparent/setup/pom.xml
new file mode 100755
index 00000000..0a25a9a9
--- /dev/null
+++ b/odlparent/setup/pom.xml
@@ -0,0 +1,280 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+
+
+ <modelVersion>4.0.0</modelVersion>
+ <packaging>pom</packaging>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>setup</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ <relativePath />
+ </parent>
+
+
+ <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
+ <url>http://wiki.onap.org</url>
+ <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>create-binding-parent-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../binding-parent</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/binding-parent.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-bundle-parent-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../bundle-parent</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/bundle-parent.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-feature-repo-parent-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../feature-repo-parent</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/feature-repo-parent.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-mdsal-it-parent-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../mdsal-it-parent</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/mdsal-it-parent.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-odlparent-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../odlparent</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/odlparent.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-odlparent-lite-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../odlparent-lite</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/odlparent-lite.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-single-feature-parent-pom</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>../single-feature-parent</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>pom-template.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <escapeString>\</escapeString>
+ <filters>
+ <filter>${basedir}/src/main/properties/single-feature-parent.properties</filter>
+ </filters>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.coderplus.maven.plugins</groupId>
+ <artifactId>copy-rename-maven-plugin</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <id>rename-binding-parent-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../binding-parent/pom-template.xml</sourceFile>
+ <destinationFile>../binding-parent/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rename-bundle-parent-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../bundle-parent/pom-template.xml</sourceFile>
+ <destinationFile>../bundle-parent/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rename-feature-repo-parent-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../feature-repo-parent/pom-template.xml</sourceFile>
+ <destinationFile>../feature-repo-parent/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rename-mdsal-it-parent-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../mdsal-it-parent/pom-template.xml</sourceFile>
+ <destinationFile>../mdsal-it-parent/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rename-odlparent-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../odlparent/pom-template.xml</sourceFile>
+ <destinationFile>../odlparent/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rename-odlparent-lite-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../odlparent-lite/pom-template.xml</sourceFile>
+ <destinationFile>../odlparent-lite/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rename-single-feature-parent-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>../single-feature-parent/pom-template.xml</sourceFile>
+ <destinationFile>../single-feature-parent/pom.xml</destinationFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>