1dd2728c109210d906331fc44714515beeb1f15d
[ccsdk/sli/plugins.git] / grToolkit / 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <groupId>org.onap.ccsdk.parent</groupId>
6         <artifactId>odlparent-lite</artifactId>
7         <version>1.5.1</version>
8         <relativePath/>
9     </parent>
10
11     <name>ccsdk-sli-plugins :: gr-toolkit :: ${project.artifactId}</name>
12     <groupId>org.onap.ccsdk.sli.plugins</groupId>
13     <artifactId>gr-toolkit-installer</artifactId>
14     <version>0.7.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16     <properties>
17         <application.name>ccsdk-gr-toolkit</application.name>
18         <features.boot>${application.name}</features.boot>
19         <features.repositories>mvn:org.onap.ccsdk.sli.plugins/${features.boot}/${project.version}/xml/features</features.repositories>
20         <include.transitive.dependencies>false</include.transitive.dependencies>
21     </properties>
22     <dependencies>
23         <dependency>
24             <groupId>org.onap.ccsdk.sli.plugins</groupId>
25             <artifactId>gr-toolkit-provider</artifactId>
26             <version>${project.version}</version>
27         </dependency>
28         <dependency>
29             <groupId>org.onap.ccsdk.sli.plugins</groupId>
30             <artifactId>gr-toolkit-model</artifactId>
31             <version>${project.version}</version>
32         </dependency>
33     </dependencies>
34     <build>
35         <plugins>
36             <plugin>
37                 <artifactId>maven-assembly-plugin</artifactId>
38                 <version>2.6</version>
39                 <executions>
40                     <execution>
41                         <id>maven-repo-zip</id>
42                         <goals>
43                             <goal>single</goal>
44                         </goals>
45                         <phase>package</phase>
46                         <configuration>
47                             <attach>true</attach>
48                             <finalName>stage/${application.name}-${project.version}</finalName>
49                             <descriptors>
50                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
51                             </descriptors>
52                             <appendAssemblyId>true</appendAssemblyId>
53                         </configuration>
54                     </execution>
55                     <execution>
56                         <id>installer-zip</id>
57                         <goals>
58                             <goal>single</goal>
59                         </goals>
60                         <phase>package</phase>
61                         <configuration>
62                             <attach>true</attach>
63                             <finalName>${application.name}-${project.version}-installer</finalName>
64                             <descriptors>
65                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
66                             </descriptors>
67                             <appendAssemblyId>false</appendAssemblyId>
68                         </configuration>
69                     </execution>
70                 </executions>
71             </plugin>
72             <plugin>
73                 <groupId>org.apache.maven.plugins</groupId>
74                 <artifactId>maven-dependency-plugin</artifactId>
75                 <executions>
76                     <execution>
77                         <id>copy-dependencies</id>
78                         <goals>
79                             <goal>copy-dependencies</goal>
80                         </goals>
81                         <phase>prepare-package</phase>
82                         <configuration>
83                             <transitive>false</transitive>
84                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
85                             <overWriteReleases>false</overWriteReleases>
86                             <overWriteSnapshots>true</overWriteSnapshots>
87                             <overWriteIfNewer>true</overWriteIfNewer>
88                             <useRepositoryLayout>true</useRepositoryLayout>
89                             <addParentPoms>false</addParentPoms>
90                             <copyPom>false</copyPom>
91                             <includeGroupIds>org.onap.ccsdk.sli.plugins</includeGroupIds>
92                             <scope>provided</scope>
93                         </configuration>
94                     </execution>
95                 </executions>
96             </plugin>
97             <plugin>
98                 <artifactId>maven-resources-plugin</artifactId>
99                 <version>2.6</version>
100                 <executions>
101                     <execution>
102                         <id>copy-version</id>
103                         <goals>
104                             <goal>copy-resources</goal>
105                         </goals>
106                         <phase>validate</phase>
107                         <configuration>
108                             <outputDirectory>${basedir}/target/stage</outputDirectory>
109                             <resources>
110                                 <resource>
111                                     <directory>src/main/resources/scripts</directory>
112                                     <includes>
113                                         <include>install-feature.sh</include>
114                                     </includes>
115                                     <filtering>true</filtering>
116                                 </resource>
117                             </resources>
118                         </configuration>
119                     </execution>
120                 </executions>
121             </plugin>
122         </plugins>
123     </build>
124 </project>