Changes for Fluorine
[ccsdk/sli/plugins.git] / template-node / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5         <modelVersion>4.0.0</modelVersion>
6
7         <parent>
8                 <groupId>org.onap.ccsdk.parent</groupId>
9                 <artifactId>odlparent-lite</artifactId>
10                 <version>1.2.1-SNAPSHOT</version>
11         </parent>
12
13         <groupId>org.onap.ccsdk.sli.plugins</groupId>
14         <artifactId>template-node-installer</artifactId>
15         <version>0.4.1-SNAPSHOT</version>
16         <packaging>pom</packaging>
17
18         <name>ccsdk-sli-plugins :: template-node :: ${project.artifactId}</name>
19
20         <properties>
21                 <application.name>ccsdk-template-node</application.name>
22                 <features.boot>${application.name}</features.boot>
23                 <features.repositories>mvn:org.onap.ccsdk.sli.plugins/${features.boot}/${project.version}/xml/features</features.repositories>
24                 <include.transitive.dependencies>false</include.transitive.dependencies>
25         </properties>
26
27         <dependencies>
28                 <dependency>
29                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
30                         <artifactId>${application.name}</artifactId>
31                         <version>${project.version}</version>
32                         <type>xml</type>
33                         <classifier>features</classifier>
34                         <exclusions>
35                                 <exclusion>
36                                         <groupId>*</groupId>
37                                         <artifactId>*</artifactId>
38                                 </exclusion>
39                         </exclusions>
40                 </dependency>
41                 <dependency>
42                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
43                         <artifactId>template-node-provider</artifactId>
44                         <version>${project.version}</version>
45                 </dependency>
46         </dependencies>
47
48         <build>
49                 <plugins>
50                         <plugin>
51                                 <artifactId>maven-assembly-plugin</artifactId>
52                                 <version>2.6</version>
53                                 <executions>
54                                         <execution>
55                                                 <id>maven-repo-zip</id>
56                                                 <goals>
57                                                         <goal>single</goal>
58                                                 </goals>
59                                                 <phase>package</phase>
60                                                 <configuration>
61                                                         <attach>true</attach>
62                                                         <finalName>stage/${application.name}-${project.version}</finalName>
63                                                         <descriptors>
64                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
65                                                         </descriptors>
66                                                         <appendAssemblyId>true</appendAssemblyId>
67                                                 </configuration>
68                                         </execution>
69                                         <execution>
70                                                 <id>installer-zip</id>
71                                                 <goals>
72                                                         <goal>single</goal>
73                                                 </goals>
74                                                 <phase>package</phase>
75                                                 <configuration>
76                                                         <attach>true</attach>
77                                                         <finalName>${application.name}-${project.version}-installer</finalName>
78                                                         <descriptors>
79                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
80                                                         </descriptors>
81                                                         <appendAssemblyId>false</appendAssemblyId>
82                                                 </configuration>
83                                         </execution>
84                                 </executions>
85                         </plugin>
86                         <plugin>
87                                 <groupId>org.apache.maven.plugins</groupId>
88                                 <artifactId>maven-dependency-plugin</artifactId>
89                                 <executions>
90                                         <execution>
91                                                 <id>copy-dependencies</id>
92                                                 <goals>
93                                                         <goal>copy-dependencies</goal>
94                                                 </goals>
95                                                 <phase>prepare-package</phase>
96                                                 <configuration>
97                                                         <transitive>false</transitive>
98                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
99                                                         <overWriteReleases>false</overWriteReleases>
100                                                         <overWriteSnapshots>true</overWriteSnapshots>
101                                                         <overWriteIfNewer>true</overWriteIfNewer>
102                                                         <useRepositoryLayout>true</useRepositoryLayout>
103                                                         <addParentPoms>false</addParentPoms>
104                                                         <copyPom>false</copyPom>
105                                                         <includeGroupIds>org.onap.ccsdk.sli.plugins,org.apache.velocity</includeGroupIds>
106                                                         <scope>provided</scope>
107                                                 </configuration>
108                                         </execution>
109                                 </executions>
110                         </plugin>
111                         <plugin>
112                                 <artifactId>maven-resources-plugin</artifactId>
113                                 <version>2.6</version>
114                                 <executions>
115                                         <execution>
116                                                 <id>copy-version</id>
117                                                 <goals>
118                                                         <goal>copy-resources</goal>
119                                                 </goals><!-- here the phase you need -->
120                                                 <phase>validate</phase>
121                                                 <configuration>
122                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
123                                                         <resources>
124                                                                 <resource>
125                                                                         <directory>src/main/resources/scripts</directory>
126                                                                         <includes>
127                                                                                 <include>install-feature.sh</include>
128                                                                         </includes>
129                                                                         <filtering>true</filtering>
130                                                                 </resource>
131                                                         </resources>
132                                                 </configuration>
133                                         </execution>
134
135                                 </executions>
136                         </plugin>
137
138                 </plugins>
139         </build>
140 </project>