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