Merge "Fix Blocker/Critical sonar issues"
[ccsdk/sli/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.onap.ccsdk.sli.core</groupId>
7         <version>0.1.2-SNAPSHOT</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.onap.ccsdk.sli.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.onap.ccsdk.sli.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.onap.ccsdk.sli.core</groupId>
38             <artifactId>dblib-provider</artifactId>
39             <version>${project.version}</version>
40         </dependency>
41
42
43         <dependency>
44             <groupId>org.apache.tomcat</groupId>
45             <artifactId>tomcat-jdbc</artifactId>
46             <version>${tomcat-jdbc.version}</version>
47         </dependency>
48     </dependencies>
49
50     <build>
51         <plugins>
52             <plugin>
53                 <artifactId>maven-assembly-plugin</artifactId>
54                 <executions>
55                     <execution>
56                         <id>maven-repo-zip</id>
57                         <goals>
58                             <goal>single</goal>
59                         </goals>
60                         <phase>package</phase>
61                         <configuration>
62                             <attach>false</attach>
63                             <finalName>stage/${application.name}-${project.version}</finalName>
64                             <descriptors>
65                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
66                             </descriptors>
67                             <appendAssemblyId>false</appendAssemblyId>
68                         </configuration>
69                     </execution>
70                     <execution>
71                         <id>installer-zip</id>
72                         <goals>
73                             <goal>single</goal>
74                         </goals>
75                         <phase>package</phase>
76                         <configuration>
77                             <attach>true</attach>
78                             <finalName>${application.name}-${project.version}-installer</finalName>
79                             <descriptors>
80                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
81                             </descriptors>
82                             <appendAssemblyId>false</appendAssemblyId>
83                         </configuration>
84                     </execution>
85                 </executions>
86             </plugin>
87             <plugin>
88                 <groupId>org.apache.maven.plugins</groupId>
89                 <artifactId>maven-dependency-plugin</artifactId>
90                 <executions>
91                     <execution>
92                         <id>copy-dependencies</id>
93                         <goals>
94                             <goal>copy-dependencies</goal>
95                         </goals>
96                         <phase>prepare-package</phase>
97                         <configuration>
98                             <transitive>false</transitive>
99                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
100                             <overWriteReleases>false</overWriteReleases>
101                             <overWriteSnapshots>true</overWriteSnapshots>
102                             <overWriteIfNewer>true</overWriteIfNewer>
103                             <useRepositoryLayout>true</useRepositoryLayout>
104                             <addParentPoms>false</addParentPoms>
105                             <copyPom>false</copyPom>
106                             <includeGroupIds>org.onap.ccsdk.sli,org.apache.tomcat</includeGroupIds>
107                             <excludeArtifactIds>sli-common,sli-provider</excludeArtifactIds>
108                             <scope>provided</scope>
109                         </configuration>
110                     </execution>
111                 </executions>
112             </plugin>
113             <plugin>
114                 <artifactId>maven-resources-plugin</artifactId>
115                 <version>2.6</version>
116                 <executions>
117                     <execution>
118                         <id>copy-version</id>
119                         <goals>
120                             <goal>copy-resources</goal>
121                         </goals><!-- here the phase you need -->
122                         <phase>validate</phase>
123                         <configuration>
124                             <outputDirectory>${basedir}/target/stage</outputDirectory>
125                             <resources>
126                                 <resource>
127                                     <directory>src/main/resources/scripts</directory>
128                                     <includes>
129                                         <include>install-feature.sh</include>
130                                     </includes>
131                                     <filtering>true</filtering>
132                                 </resource>
133                             </resources>
134                         </configuration>
135                     </execution>
136
137                 </executions>
138             </plugin>
139
140         </plugins>
141     </build>
142
143 </project>