Changing to Amsterdam release version
[appc.git] / appc-adapters / appc-netconf-adapter / appc-netconf-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         <artifactId>appc-netconf-adapter</artifactId>
6         <groupId>org.openecomp.appc</groupId>
7         <version>1.2.0-SNAPSHOT</version>
8     </parent>
9     <artifactId>appc-netconf-adapter-installer</artifactId>
10     <name>NETCONF Adapter - Karaf Installer</name>
11     <packaging>pom</packaging>
12
13     <properties>
14         <application.name>appc-netconf-adapter</application.name>
15         <features.boot>appc-netconf-adapter</features.boot>
16         <features.repositories>mvn:org.openecomp.appc/appc-netconf-adapter-features/${project.version}/xml/features</features.repositories>
17         <include.transitive.dependencies>false</include.transitive.dependencies>
18     </properties>
19
20     <dependencies>
21         <dependency>
22             <groupId>org.openecomp.appc</groupId>
23             <artifactId>appc-netconf-adapter-features</artifactId>
24             <classifier>features</classifier>
25             <type>xml</type>
26             <exclusions>
27                 <exclusion>
28                     <groupId>*</groupId>
29                     <artifactId>*</artifactId>
30                 </exclusion>
31             </exclusions>
32         </dependency>
33
34         <dependency>
35             <groupId>org.openecomp.appc</groupId>
36             <artifactId>appc-netconf-adapter-bundle</artifactId>
37             <version>${project.version}</version>
38         </dependency>
39     </dependencies>
40
41     <build>
42         <plugins>
43             <plugin>
44                 <artifactId>maven-assembly-plugin</artifactId>
45                 <executions>
46                     <execution>
47                         <id>maven-repo-zip</id>
48                         <goals>
49                             <goal>single</goal>
50                         </goals>
51                         <phase>package</phase>
52                         <configuration>
53                             <appendAssemblyId>false</appendAssemblyId>
54                             <attach>false</attach>
55                             <finalName>stage/${application.name}-${project.version}</finalName>
56                             <descriptors>
57                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
58                             </descriptors>
59                         </configuration>
60                     </execution>
61                     <execution>
62                         <id>installer-zip</id>
63                         <goals>
64                             <goal>single</goal>
65                         </goals>
66                         <phase>package</phase>
67                         <configuration>
68                             <appendAssemblyId>false</appendAssemblyId>
69                             <attach>true</attach>
70                             <finalName>${application.name}-${project.version}</finalName>
71                             <descriptors>
72                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
73                             </descriptors>
74                         </configuration>
75                     </execution>
76                 </executions>
77             </plugin>
78             <plugin>
79                 <groupId>org.apache.maven.plugins</groupId>
80                 <artifactId>maven-dependency-plugin</artifactId>
81                 <executions>
82                     <execution>
83                         <id>copy-dependencies</id>
84                         <goals>
85                             <goal>copy-dependencies</goal>
86                         </goals>
87                         <phase>prepare-package</phase>
88                         <configuration>
89                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
90                             <overWriteReleases>false</overWriteReleases>
91                             <overWriteSnapshots>true</overWriteSnapshots>
92                             <overWriteIfNewer>true</overWriteIfNewer>
93                             <useRepositoryLayout>true</useRepositoryLayout>
94                             <addParentPoms>false</addParentPoms>
95                             <copyPom>false</copyPom>
96                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
97                         </configuration>
98                     </execution>
99                 </executions>
100             </plugin>
101             <plugin>
102                 <artifactId>maven-resources-plugin</artifactId>
103                 <executions>
104                     <execution>
105                         <id>copy-version</id>
106                         <goals>
107                             <goal>copy-resources</goal>
108                         </goals>
109                         <!-- here the phase you need -->
110                         <phase>validate</phase>
111                         <configuration>
112                             <outputDirectory>${basedir}/target/stage</outputDirectory>
113                             <resources>
114                                 <resource>
115                                     <directory>src/main/resources/scripts</directory>
116                                     <includes>
117                                         <include>install-feature.sh</include>
118                                     </includes>
119                                     <filtering>true</filtering>
120                                 </resource>
121                             </resources>
122                         </configuration>
123                     </execution>
124                 </executions>
125             </plugin>
126
127         </plugins>
128     </build>
129
130 </project>