blob: 081b8c3647dc8d2e594b2c556f7faebac8a593af [file] [log] [blame]
Dan Timoney2a93b9d2017-07-18 19:40:01 -04001<?xml version="1.0" encoding="UTF-8"?>
Dan Timoneybd2f46f2020-06-17 08:08:23 -04002<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
Dan Timoney131cb462018-02-01 16:57:00 -05005
Dan Timoneybd2f46f2020-06-17 08:08:23 -04006 <parent>
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>odlparent-lite</artifactId>
9 <version>2.0.0-SNAPSHOT</version>
10 <relativePath/>
11 </parent>
Dan Timoney131cb462018-02-01 16:57:00 -050012
Dan Timoneybd2f46f2020-06-17 08:08:23 -040013 <groupId>org.onap.ccsdk.sli.core</groupId>
14 <artifactId>sliapi-installer</artifactId>
15 <version>1.0.0-SNAPSHOT</version>
16 <packaging>pom</packaging>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040017
Dan Timoneybd2f46f2020-06-17 08:08:23 -040018 <name>ccsdk-sli-core :: sliapi :: ${project.artifactId}</name>
Dan Timoney131cb462018-02-01 16:57:00 -050019
Dan Timoneybd2f46f2020-06-17 08:08:23 -040020 <properties>
21 <application.name>ccsdk-sliapi</application.name>
22 <features.boot>${application.name}</features.boot>
23 <features.repositories>mvn:org.onap.ccsdk.sli.core/${features.boot}/${project.version}/xml/features
24 </features.repositories>
25 <include.transitive.dependencies>false</include.transitive.dependencies>
26 </properties>
Dan Timoney99889c12020-03-05 11:48:38 -050027
Dan Timoneybd2f46f2020-06-17 08:08:23 -040028 <dependencyManagement>
29 <dependencies>
30 <dependency>
31 <groupId>org.onap.ccsdk.sli.core</groupId>
32 <artifactId>sli-common</artifactId>
33 <version>${project.version}</version>
34 </dependency>
35 <dependency>
36 <groupId>org.onap.ccsdk.sli.core</groupId>
37 <artifactId>sli-provider</artifactId>
38 <version>${project.version}</version>
39 </dependency>
40 <dependency>
41 <groupId>org.onap.ccsdk.sli.core</groupId>
42 <artifactId>dblib-provider</artifactId>
43 <version>${project.version}</version>
44 </dependency>
45 </dependencies>
46 </dependencyManagement>
47 <dependencies>
48 <dependency>
49 <groupId>${project.groupId}</groupId>
50 <artifactId>${application.name}</artifactId>
51 <version>${project.version}</version>
52 <type>xml</type>
53 <classifier>features</classifier>
54 <exclusions>
55 <exclusion>
56 <groupId>*</groupId>
57 <artifactId>*</artifactId>
58 </exclusion>
59 </exclusions>
60 </dependency>
61 <dependency>
62 <groupId>${project.groupId}</groupId>
63 <artifactId>sliapi-provider</artifactId>
64 <version>${project.version}</version>
65 </dependency>
66 <dependency>
67 <groupId>${project.groupId}</groupId>
68 <artifactId>sliapi-model-yang</artifactId>
69 <version>${project.version}</version>
70 </dependency>
71 </dependencies>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040072
Dan Timoneybd2f46f2020-06-17 08:08:23 -040073 <build>
74 <plugins>
75 <plugin>
76 <artifactId>maven-assembly-plugin</artifactId>
77 <executions>
78 <execution>
79 <id>maven-repo-zip</id>
80 <goals>
81 <goal>single</goal>
82 </goals>
83 <phase>package</phase>
84 <configuration>
85 <attach>true</attach>
86 <finalName>stage/${application.name}-${project.version}</finalName>
87 <descriptors>
88 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
89 </descriptors>
90 <appendAssemblyId>true</appendAssemblyId>
91 </configuration>
92 </execution>
93 <execution>
94 <id>installer-zip</id>
95 <goals>
96 <goal>single</goal>
97 </goals>
98 <phase>package</phase>
99 <configuration>
100 <attach>true</attach>
101 <finalName>${application.name}-${project.version}-installer</finalName>
102 <descriptors>
103 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
104 </descriptors>
105 <appendAssemblyId>false</appendAssemblyId>
106 </configuration>
107 </execution>
108 </executions>
109 </plugin>
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-dependency-plugin</artifactId>
113 <executions>
114 <execution>
115 <id>copy-dependencies</id>
116 <goals>
117 <goal>copy-dependencies</goal>
118 </goals>
119 <phase>prepare-package</phase>
120 <configuration>
121 <transitive>false</transitive>
122 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
123 <overWriteReleases>false</overWriteReleases>
124 <overWriteSnapshots>true</overWriteSnapshots>
125 <overWriteIfNewer>true</overWriteIfNewer>
126 <useRepositoryLayout>true</useRepositoryLayout>
127 <addParentPoms>false</addParentPoms>
128 <copyPom>false</copyPom>
129 <includeArtifactIds>sliapi-model,sliapi-provider,sliapi-model-yang,ccsdk-sliapi,features-sliapi
130 </includeArtifactIds>
131 <scope>provided</scope>
132 </configuration>
133 </execution>
134 </executions>
135 </plugin>
136 <plugin>
137 <artifactId>maven-resources-plugin</artifactId>
138 <version>2.6</version>
139 <executions>
140 <execution>
141 <id>copy-version</id>
142 <goals>
143 <goal>copy-resources</goal>
144 </goals><!-- here the phase you need -->
145 <phase>validate</phase>
146 <configuration>
147 <outputDirectory>${basedir}/target/stage</outputDirectory>
148 <resources>
149 <resource>
150 <directory>src/main/resources/scripts</directory>
151 <includes>
152 <include>install-feature.sh</include>
153 </includes>
154 <filtering>true</filtering>
155 </resource>
156 </resources>
157 </configuration>
158 </execution>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400159
Dan Timoneybd2f46f2020-06-17 08:08:23 -0400160 </executions>
161 </plugin>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400162
Dan Timoneybd2f46f2020-06-17 08:08:23 -0400163 </plugins>
164 </build>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400165</project>