blob: e875e47297ce2e2a0e140d58db54d0d60c5e186e [file] [log] [blame]
Dan Timoney5363b272017-07-18 20:23:07 -04001<?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">
Marcus G K Williams806052b2017-08-02 15:09:24 -07003 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <artifactId>resource-assignment</artifactId>
6 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
Dan Timoney890ad9d2017-11-21 14:31:45 -05007 <version>0.2.0-SNAPSHOT</version>
Marcus G K Williams806052b2017-08-02 15:09:24 -07008 </parent>
9 <artifactId>resource-assignment-installer</artifactId>
10 <name>Resource allocator- Karaf Installer</name>
11 <packaging>pom</packaging>
Dan Timoney5363b272017-07-18 20:23:07 -040012
Marcus G K Williams806052b2017-08-02 15:09:24 -070013 <properties>
14 <application.name>sdnc-resource-assignment</application.name>
15 <features.boot>sdnc-resource-assignment</features.boot>
16 <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/resource-assignment-features/${project.version}/xml/features</features.repositories>
17 <include.transitive.dependencies>false</include.transitive.dependencies>
Dan Timoneya54af3e2017-09-06 19:14:51 -040018 <commons.lang.version>2.6</commons.lang.version>
Marcus G K Williams806052b2017-08-02 15:09:24 -070019 </properties>
Dan Timoney5363b272017-07-18 20:23:07 -040020
Marcus G K Williams806052b2017-08-02 15:09:24 -070021 <dependencies>
Dan Timoney5363b272017-07-18 20:23:07 -040022
Marcus G K Williams806052b2017-08-02 15:09:24 -070023 <dependency>
24 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
25 <artifactId>resource-assignment-features</artifactId>
26 <version>${project.version}</version>
27 <classifier>features</classifier>
28 <type>xml</type>
29 <exclusions>
30 <exclusion>
31 <groupId>*</groupId>
32 <artifactId>*</artifactId>
33 </exclusion>
34 </exclusions>
35 </dependency>
Dan Timoney5363b272017-07-18 20:23:07 -040036
Marcus G K Williams806052b2017-08-02 15:09:24 -070037 <dependency>
38 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
39 <artifactId>resource-assignment-provider</artifactId>
40 <version>${project.version}</version>
41 </dependency>
Dan Timoney5363b272017-07-18 20:23:07 -040042
Dan Timoneya54af3e2017-09-06 19:14:51 -040043
Marcus G K Williams806052b2017-08-02 15:09:24 -070044 </dependencies>
Dan Timoney5363b272017-07-18 20:23:07 -040045
Marcus G K Williams806052b2017-08-02 15:09:24 -070046 <build>
47 <plugins>
48 <plugin>
49 <artifactId>maven-assembly-plugin</artifactId>
50 <version>2.6</version>
51 <executions>
52 <execution>
53 <id>maven-repo-zip</id>
54 <goals>
55 <goal>single</goal>
56 </goals>
57 <phase>package</phase>
58 <configuration>
59 <attach>false</attach>
60 <finalName>stage/${application.name}-${project.version}</finalName>
61 <descriptors>
62 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
63 </descriptors>
64 <appendAssemblyId>false</appendAssemblyId>
65 </configuration>
66 </execution>
67 <execution>
68 <id>installer-zip</id>
69 <goals>
70 <goal>single</goal>
71 </goals>
72 <phase>package</phase>
73 <configuration>
74 <attach>true</attach>
75 <finalName>${application.name}-${project.version}-installer</finalName>
76 <descriptors>
77 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
78 </descriptors>
79 <appendAssemblyId>false</appendAssemblyId>
80 </configuration>
81 </execution>
82 </executions>
83 </plugin>
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-dependency-plugin</artifactId>
87 <executions>
88 <execution>
89 <id>copy-dependencies</id>
90 <goals>
91 <goal>copy-dependencies</goal>
92 </goals>
93 <phase>prepare-package</phase>
94 <configuration>
95 <transitive>false</transitive>
96 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
97 <overWriteReleases>false</overWriteReleases>
98 <overWriteSnapshots>true</overWriteSnapshots>
99 <overWriteIfNewer>true</overWriteIfNewer>
100 <useRepositoryLayout>true</useRepositoryLayout>
101 <addParentPoms>false</addParentPoms>
102 <copyPom>false</copyPom>
103 <includeGroupIds>org.onap.ccsdk</includeGroupIds>
104 <excludeArtifactIds>sli-common,sli-provider,dblib-provider</excludeArtifactIds>
105 <scope>provided</scope>
106 </configuration>
107 </execution>
108 </executions>
109 </plugin>
110 <plugin>
111 <artifactId>maven-resources-plugin</artifactId>
112 <version>2.6</version>
113 <executions>
114 <execution>
115 <id>copy-version</id>
116 <goals>
117 <goal>copy-resources</goal>
118 </goals><!-- here the phase you need -->
119 <phase>validate</phase>
120 <configuration>
121 <outputDirectory>${basedir}/target/stage</outputDirectory>
122 <resources>
123 <resource>
124 <directory>src/main/resources/scripts</directory>
125 <includes>
126 <include>install-feature.sh</include>
127 </includes>
128 <filtering>true</filtering>
129 </resource>
130 </resources>
131 </configuration>
132 </execution>
Dan Timoney5363b272017-07-18 20:23:07 -0400133
Marcus G K Williams806052b2017-08-02 15:09:24 -0700134 </executions>
135 </plugin>
Dan Timoney5363b272017-07-18 20:23:07 -0400136
Marcus G K Williams806052b2017-08-02 15:09:24 -0700137 </plugins>
138 </build>
Dan Timoney5363b272017-07-18 20:23:07 -0400139
140</project>