0aed60ac9be62109ed90799c3c8d08d66f5e6d13
[dcaegen2/platform.git] / mod / genprocessor / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START=======================================================
4 Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10      http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
18 -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21   <modelVersion>4.0.0</modelVersion>
22   <parent>
23     <groupId>org.onap.oparent</groupId>
24     <artifactId>oparent</artifactId>
25     <version>2.0.0</version>
26   </parent>
27   <groupId>org.onap.dcaegen2.platform.mod</groupId>
28   <artifactId>genprocessor</artifactId>
29   <version>1.0.0</version>
30   <name>dcaegen2-platform-mod-genprocessor</name>
31   <properties>
32     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33     <maven.deploy.skip>true</maven.deploy.skip>
34     <java.version>1.8</java.version>
35     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
36     <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
37     <docker.push.registry>${env.NEXUS3_PUSH_REGISTRY}</docker.push.registry>
38     <start-class>org.onap.dcae.genprocessor.App</start-class>
39     <!--NOTE: Nifi jars used here are version 1.9.2 but dcae mod is on 1.9.3 because 1.9.3 is not in Maven Central -->
40     <nifi.version>1.9.2</nifi.version>
41     <docker.fabric.version>0.32.0</docker.fabric.version>
42   </properties>
43   <dependencies>
44     <dependency>
45       <groupId>org.apache.nifi</groupId>
46       <artifactId>nifi-api</artifactId>
47       <version>${nifi.version}</version>
48     </dependency>
49     <dependency>
50       <groupId>org.apache.nifi</groupId>
51       <artifactId>nifi-record-serialization-service-api</artifactId>
52       <version>${nifi.version}</version>
53     </dependency>
54     <dependency>
55       <groupId>org.apache.nifi</groupId>
56       <artifactId>nifi-record</artifactId>
57       <version>${nifi.version}</version>
58     </dependency>
59     <dependency>
60       <groupId>org.apache.nifi</groupId>
61       <artifactId>nifi-processor-utils</artifactId>
62       <version>${nifi.version}</version>
63     </dependency>
64     <dependency>
65       <groupId>org.apache.nifi</groupId>
66       <artifactId>nifi-utils</artifactId>
67       <version>${nifi.version}</version>
68     </dependency>
69     <dependency>
70       <groupId>org.javassist</groupId>
71       <artifactId>javassist</artifactId>
72       <version>3.25.0-GA</version>
73     </dependency>
74     <dependency>
75       <groupId>ch.qos.logback</groupId>
76       <artifactId>logback-classic</artifactId>
77       <version>1.2.3</version>
78     </dependency>
79     <dependency>
80       <groupId>com.fasterxml.jackson.core</groupId>
81       <artifactId>jackson-core</artifactId>
82       <version>2.10.0.pr1</version>
83     </dependency>
84     <dependency>
85       <groupId>com.fasterxml.jackson.core</groupId>
86       <artifactId>jackson-databind</artifactId>
87       <version>2.10.0.pr1</version>
88     </dependency>
89     <dependency>
90       <groupId>org.apache.commons</groupId>
91       <artifactId>commons-text</artifactId>
92       <version>1.7</version>
93     </dependency>
94     <dependency>
95       <groupId>junit</groupId>
96       <artifactId>junit</artifactId>
97       <version>4.11</version>
98       <scope>test</scope>
99     </dependency>
100     <dependency>
101       <groupId>com.github.stefanbirkner</groupId>
102       <artifactId>system-rules</artifactId>
103       <version>1.19.0</version>
104       <scope>test</scope>
105     </dependency>
106   </dependencies>
107   <build>
108     <plugins>
109       <plugin>
110         <groupId>io.fabric8</groupId>
111         <artifactId>docker-maven-plugin</artifactId>
112         <version>${docker.fabric.version}</version>
113         <configuration>
114           <verbose>true</verbose>
115           <pullRegistry>${docker.pull.registry}</pullRegistry>
116           <pushRegistry>${docker.push.registry}</pushRegistry>
117           <images>
118             <image>
119               <name>onap/${project.groupId}.${project.artifactId}-http</name>
120               <registry>${onap.nexus.dockerregistry.daily}</registry>
121               <build>
122                 <from>nginx:latest</from>
123                 <tags>
124                   <tag>latest</tag>
125                   <tag>${project.version}</tag>
126                   <tag>${project.version}-${maven.build.timestamp}Z</tag>
127                 </tags>
128                 <assembly>
129                   <targetDir>/</targetDir>
130                   <inline>
131                     <files>
132                       <file>
133                         <source>./nginx.conf</source>
134                         <outputDirectory>/etc/nginx/conf.d</outputDirectory>
135                         <destName>default.conf</destName>
136                       </file>
137                     </files>
138                   </inline>
139                 </assembly>
140                 <entryPoint>
141                   <exec>
142                     <arg>nginx</arg>
143                     <arg>-g</arg>
144                     <arg>daemon off;</arg>
145                   </exec>
146                 </entryPoint>
147               </build>
148             </image>
149             <image>
150               <name>onap/${project.groupId}.${project.artifactId}-job</name>
151               <registry>${onap.nexus.dockerregistry.daily}</registry>
152               <build>
153                 <from>openjdk:8-jre-alpine</from>
154                 <tags>
155                   <tag>latest</tag>
156                   <tag>${project.version}</tag>
157                   <tag>${project.version}-${maven.build.timestamp}Z</tag>
158                 </tags>
159                 <assembly>
160                   <descriptorRef>artifact-with-dependencies</descriptorRef>
161                 </assembly>
162                 <workdir>/maven</workdir>
163                 <env>
164                   <GENPROC_WORKING_DIR>/work</GENPROC_WORKING_DIR>
165                   <GENPROC_ONBOARDING_API_HOST>http://onboarding-api/onboarding</GENPROC_ONBOARDING_API_HOST>
166                   <GENPROC_SLEEP_SEC>10</GENPROC_SLEEP_SEC>
167                 </env>
168                 <entryPoint>
169                   <exec>
170                     <arg>java</arg>
171                     <arg>-cp</arg>
172                     <arg>/maven/*</arg>
173                     <arg>${start-class}</arg>
174                   </exec>
175                 </entryPoint>
176               </build>
177             </image>
178           </images>
179         </configuration>
180         <executions>
181           <execution>
182             <goals>
183               <goal>build</goal>
184               <goal>push</goal>
185             </goals>
186           </execution>
187         </executions>
188       </plugin>
189     </plugins>
190   </build>
191 </project>