blob: acf7dccd47f0865cf28740a5241739fe23687d99 [file] [log] [blame]
Dan Timoney1b476832017-02-15 15:09:44 -05001<?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>vnftools</artifactId>
7 <groupId>org.openecomp.sdnc.northbound</groupId>
8 <version>1.0.0</version>
9 </parent>
10 <artifactId>vnftools-installer</artifactId>
11 <name>VNF Tools Plugin - Karaf Installer</name>
12 <packaging>pom</packaging>
13
14 <properties>
15 <application.name>sdnc-vnftools</application.name>
16 <features.boot>sdnc-vnftools</features.boot>
17 <features.repositories>mvn:org.openecomp.sdnc.northbound/vnftools-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.openecomp.sdnc.northbound</groupId>
25 <artifactId>vnftools-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.openecomp.sdnc.northbound</groupId>
39 <artifactId>vnftools-provider</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42
43
44 </dependencies>
45
46 <build>
47 <plugins>
48 <plugin>
49 <artifactId>maven-assembly-plugin</artifactId>
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 </configuration>
64 </execution>
65 <execution>
66 <id>installer-zip</id>
67 <goals>
68 <goal>single</goal>
69 </goals>
70 <phase>package</phase>
71 <configuration>
72 <attach>true</attach>
73 <finalName>${application.name}-${project.version}-installer</finalName>
74 <descriptors>
75 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
76 </descriptors>
77 </configuration>
78 </execution>
79 </executions>
80 </plugin>
81 <plugin>
82 <groupId>org.apache.maven.plugins</groupId>
83 <artifactId>maven-dependency-plugin</artifactId>
84 <executions>
85 <execution>
86 <id>copy-dependencies</id>
87 <goals>
88 <goal>copy-dependencies</goal>
89 </goals>
90 <phase>prepare-package</phase>
91 <configuration>
92 <transitive>false</transitive>
93 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
94 <overWriteReleases>false</overWriteReleases>
95 <overWriteSnapshots>true</overWriteSnapshots>
96 <overWriteIfNewer>true</overWriteIfNewer>
97 <useRepositoryLayout>true</useRepositoryLayout>
98 <addParentPoms>false</addParentPoms>
99 <copyPom>false</copyPom>
100 <includeGroupIds>org.openecomp.sdnc</includeGroupIds>
101 <excludeArtifactIds>sli-common,sli-provider,dblib-common,dblib-provider,sliPluginUtils-provider</excludeArtifactIds>
102 <scope>provided</scope>
103 </configuration>
104 </execution>
105 </executions>
106 </plugin>
107 <plugin>
108 <artifactId>maven-resources-plugin</artifactId>
109 <version>2.6</version>
110 <executions>
111 <execution>
112 <id>copy-version</id>
113 <goals>
114 <goal>copy-resources</goal>
115 </goals><!-- here the phase you need -->
116 <phase>validate</phase>
117 <configuration>
118 <outputDirectory>${basedir}/target/stage</outputDirectory>
119 <resources>
120 <resource>
121 <directory>src/main/resources/scripts</directory>
122 <includes>
123 <include>install-feature.sh</include>
124 </includes>
125 <filtering>true</filtering>
126 </resource>
127 </resources>
128 </configuration>
129 </execution>
130
131 </executions>
132 </plugin>
133
134 </plugins>
135 </build>
136
137</project>