Conform ccsdk/sli/plugins to ONAP Style
[ccsdk/sli/plugins.git] / properties-node / installer / pom.xml
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"
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>
5     <parent>
6         <artifactId>properties-node</artifactId>
7         <groupId>org.onap.ccsdk.sli.plugins</groupId>
8         <version>0.1.0-SNAPSHOT</version>
9     </parent>
10     <artifactId>properties-node-installer</artifactId>
11     <name>Properties node - Karaf  Installer</name>
12     <packaging>pom</packaging>
13
14     <properties>
15         <application.name>sdnc-properties-node</application.name>
16         <features.boot>sdnc-properties-node</features.boot>
17         <features.repositories>mvn:org.onap.ccsdk.sli.plugins/properties-node-features/${project.version}/xml/features</features.repositories>
18         <include.transitive.dependencies>false</include.transitive.dependencies>
19     </properties>
20
21     <dependencies>
22
23         <dependency>
24             <groupId>org.onap.ccsdk.sli.plugins</groupId>
25             <artifactId>properties-node-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>
36
37         <dependency>
38             <groupId>org.onap.ccsdk.sli.plugins</groupId>
39             <artifactId>properties-node-provider</artifactId>
40             <version>${project.version}</version>
41         </dependency>
42
43     </dependencies>
44
45     <build>
46         <plugins>
47             <plugin>
48                 <artifactId>maven-assembly-plugin</artifactId>
49                 <version>2.6</version>
50                 <executions>
51                     <execution>
52                         <id>maven-repo-zip</id>
53                         <goals>
54                             <goal>single</goal>
55                         </goals>
56                         <phase>package</phase>
57                         <configuration>
58                             <attach>false</attach>
59                             <finalName>stage/${application.name}-${project.version}</finalName>
60                             <descriptors>
61                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
62                             </descriptors>
63                             <appendAssemblyId>false</appendAssemblyId>
64                         </configuration>
65                     </execution>
66                     <execution>
67                         <id>installer-zip</id>
68                         <goals>
69                             <goal>single</goal>
70                         </goals>
71                         <phase>package</phase>
72                         <configuration>
73                             <attach>true</attach>
74                             <finalName>${application.name}-${project.version}-installer</finalName>
75                             <descriptors>
76                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
77                             </descriptors>
78                             <appendAssemblyId>false</appendAssemblyId>
79                         </configuration>
80                     </execution>
81                 </executions>
82             </plugin>
83             <plugin>
84                 <groupId>org.apache.maven.plugins</groupId>
85                 <artifactId>maven-dependency-plugin</artifactId>
86                 <executions>
87                     <execution>
88                         <id>copy-dependencies</id>
89                         <goals>
90                             <goal>copy-dependencies</goal>
91                         </goals>
92                         <phase>prepare-package</phase>
93                         <configuration>
94                             <transitive>false</transitive>
95                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
96                             <overWriteReleases>false</overWriteReleases>
97                             <overWriteSnapshots>true</overWriteSnapshots>
98                             <overWriteIfNewer>true</overWriteIfNewer>
99                             <useRepositoryLayout>true</useRepositoryLayout>
100                             <addParentPoms>false</addParentPoms>
101                             <copyPom>false</copyPom>
102                             <includeGroupIds>org.onap.ccsdk.sli</includeGroupIds>
103                             <excludeArtifactIds>sli-common,sli-provider,dblib-provider</excludeArtifactIds>
104                             <scope>provided</scope>
105                         </configuration>
106                     </execution>
107                 </executions>
108             </plugin>
109             <plugin>
110                 <artifactId>maven-resources-plugin</artifactId>
111                 <version>2.6</version>
112                 <executions>
113                     <execution>
114                         <id>copy-version</id>
115                         <goals>
116                             <goal>copy-resources</goal>
117                         </goals><!-- here the phase you need -->
118                         <phase>validate</phase>
119                         <configuration>
120                             <outputDirectory>${basedir}/target/stage</outputDirectory>
121                             <resources>
122                                 <resource>
123                                     <directory>src/main/resources/scripts</directory>
124                                     <includes>
125                                         <include>install-feature.sh</include>
126                                     </includes>
127                                     <filtering>true</filtering>
128                                 </resource>
129                             </resources>
130                         </configuration>
131                     </execution>
132
133                 </executions>
134             </plugin>
135
136         </plugins>
137     </build>
138
139 </project>