alpine build, implement to follow VNF anisble Req
[ccsdk/distribution.git] / dgbuilder / 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.distribution</groupId>
7             <artifactId>distribution-root</artifactId>
8             <version>0.4.1-SNAPSHOT</version>
9         </parent>
10
11         <groupId>org.onap.ccsdk.distribution</groupId>
12         <artifactId>distribution-dgbuilder</artifactId>
13         <version>0.4.1-SNAPSHOT</version>
14         <packaging>pom</packaging>
15
16         <name>ccsdk-distribution :: dgbuilder</name>
17         <description>Directed Graph Builder</description>
18         <organization>
19                 <name>ONAP</name>
20         </organization>
21
22         <properties>
23                 <application.name>dgbuilder</application.name>
24                 <skip.SWM>true</skip.SWM>
25                 <adm.base>/opt/app/dgbuilder</adm.base>
26                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
27                 <build.number>${maven.build.timestamp}</build.number>
28                 <SWM_VERSION>${project.version}-${build.number}</SWM_VERSION>
29         </properties>
30
31         <dependencies>
32                 <dependency>
33                         <groupId>org.onap.ccsdk.sli.core</groupId>
34                         <artifactId>sli-common</artifactId>
35                         <version>${sdnctl.sli.version}</version>
36                 </dependency>
37                 <dependency>
38   <groupId>org.mariadb.jdbc</groupId>
39   <artifactId>mariadb-java-client</artifactId>
40   <version>${mariadb.connector.version}</version>
41                 </dependency>
42                 <dependency>
43                         <groupId>org.antlr</groupId>
44                         <artifactId>antlr4</artifactId>
45                         <version>${antlr.version}</version>
46                         <type>jar</type>
47                         <scope>compile</scope>
48                 </dependency>
49                 <dependency>
50                         <groupId>org.slf4j</groupId>
51                         <artifactId>slf4j-api</artifactId>
52                         <version>${slf4j.version}</version>
53                 </dependency>
54                 <dependency>
55                         <groupId>org.slf4j</groupId>
56                         <artifactId>slf4j-simple</artifactId>
57                         <version>1.7.5</version>
58                         <scope>compile</scope>
59                 </dependency>
60                 <dependency>
61                         <groupId>org.apache.commons</groupId>
62                         <artifactId>commons-lang3</artifactId>
63                         <version>${commons.lang3.version}</version>
64                 </dependency>
65         </dependencies>
66
67         <build>
68                 <plugins>
69                         <plugin>
70                                 <artifactId>maven-assembly-plugin</artifactId>
71                                 <version>2.6</version>
72                                 <executions>
73                                         <execution>
74                                                 <id>create-zip</id>
75                                                 <goals>
76                                                         <goal>single</goal>
77                                                 </goals>
78                                                 <phase>package</phase>
79                                                 <configuration>
80                                                         <finalName>${application.name}.${project.version}</finalName>
81                                                         <attach>true</attach>
82                                                         <descriptors>
83                                                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
84                                                         </descriptors>
85                                                         <appendAssemblyId>false</appendAssemblyId>
86                                                 </configuration>
87                                         </execution>
88                                 </executions>
89                         </plugin>
90                         <plugin>
91                                 <groupId>org.apache.maven.plugins</groupId>
92                                 <artifactId>maven-dependency-plugin</artifactId>
93                                 <executions>
94                                         <execution>
95                                                 <id>copy-dependencies</id>
96                                                 <goals>
97                                                         <goal>copy-dependencies</goal>
98                                                 </goals>
99                                                 <phase>prepare-package</phase>
100                                                 <configuration>
101                                                         <transitive>false</transitive>
102                                                         <outputDirectory>${project.build.directory}/svclogic/lib</outputDirectory>
103                                                         <overWriteReleases>false</overWriteReleases>
104                                                         <overWriteSnapshots>true</overWriteSnapshots>
105                                                         <overWriteIfNewer>true</overWriteIfNewer>
106                                                         <useRepositoryLayout>false</useRepositoryLayout>
107                                                         <addParentPoms>false</addParentPoms>
108                                                         <copyPom>false</copyPom>
109                                                         <scope>provided</scope>
110                                                 </configuration>
111                                         </execution>
112                                 </executions>
113                         </plugin>
114                         <plugin>
115                                 <groupId>org.apache.maven.plugins</groupId>
116                                 <artifactId>maven-antrun-plugin</artifactId>
117                                 <executions>
118                                         <execution>
119                                         <phase>generate-sources</phase>
120                                         <configuration>
121                                         <tasks>
122                                                 <exec executable="${project.basedir}/build_pom_for_yang_compile">
123                                                         <!--<arg value="${odlparent-carbon-sr1-version}"/>-->
124                                                 </exec>
125                                         </tasks>
126                                         </configuration>
127                                         <goals>
128                                                 <goal>run</goal>
129                                 </goals>
130                                 </execution>
131                         </executions>
132                         </plugin>
133                 </plugins>
134         </build>
135 </project>