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