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