Update vulnerable dependencies
[sdc/sdc-workflow-designer.git] / pom.xml
1 <!--
2   ~ Copyright © 2016-2018 European Support Limited
3   ~
4   ~ Licensed under the Apache License, Version 2.0 (the "License");
5   ~ you may not use this file except in compliance with the License.
6   ~ You may obtain a copy of the License at
7   ~
8   ~      http://www.apache.org/licenses/LICENSE-2.0
9   ~
10   ~ Unless required by applicable law or agreed to in writing, software
11   ~ distributed under the License is distributed on an "AS IS" BASIS,
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   ~ See the License for the specific language governing permissions and
14   ~ limitations under the License.
15   -->
16
17 <project
18     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19     xmlns="http://maven.apache.org/POM/4.0.0"
20     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21
22     <modelVersion>4.0.0</modelVersion>
23
24     <!--
25         The groupId violates Maven naming conventions
26         (https://maven.apache.org/guides/mini/guide-naming-conventions.html)
27         because of a limitation of ONAP CI/CD infrastructure.
28     -->
29     <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
30     <artifactId>sdc-workflow-designer-parent</artifactId>
31     <name>sdc-sdc-workflow-designer</name>
32     <version>1.11.1-SNAPSHOT</version>
33     <packaging>pom</packaging>
34
35     <properties>
36         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
39         <sdc.project.version>${project.version}</sdc.project.version>
40         <sdc.build.timestamp>${maven.build.timestamp}</sdc.build.timestamp>
41         <onap.version>1.5.0</onap.version>
42         <docker.optimize>true</docker.optimize>
43         <docker.username>docker</docker.username>
44         <docker.password>docker</docker.password>
45         <nexus.registry>nexus3.onap.org:10001</nexus.registry>
46         <nexus.proxy>https://nexus.onap.org</nexus.proxy>
47         <sitePath>/content/sites/site/org/onap/sdc/workflow/${project.version}</sitePath>
48         <!-- Sonar properties -->
49         <sonar.coverage.jacoco.xmlReportPaths>
50             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
51         </sonar.coverage.jacoco.xmlReportPaths>
52         <docker.api.version>1.41</docker.api.version>
53         <checkstyle.skip>true</checkstyle.skip>
54     </properties>
55
56     <parent>
57         <groupId>org.onap.oparent</groupId>
58         <artifactId>oparent</artifactId>
59         <version>3.2.0</version>
60         <relativePath/>
61     </parent>
62
63     <modules>
64         <module>sdc-workflow-designer-init</module>
65         <module>sdc-workflow-designer-be</module>
66         <module>sdc-workflow-designer-ui</module>
67     </modules>
68
69     <build>
70         <pluginManagement>
71             <plugins>
72                 <plugin>
73                     <groupId>org.apache.maven.plugins</groupId>
74                     <artifactId>maven-compiler-plugin</artifactId>
75                     <version>3.10.1</version>
76                 </plugin>
77                 <plugin>
78                     <groupId>org.apache.maven.plugins</groupId>
79                     <artifactId>maven-surefire-plugin</artifactId>
80                     <version>2.22.2</version>
81                 </plugin>
82                 <plugin>
83                     <groupId>org.jacoco</groupId>
84                     <artifactId>jacoco-maven-plugin</artifactId>
85                     <version>0.8.8</version>
86                 </plugin>
87                 <plugin>
88                     <groupId>io.fabric8</groupId>
89                     <artifactId>docker-maven-plugin</artifactId>
90                     <version>0.38.0</version>
91                     <configuration>
92                         <verbose>false</verbose>
93                         <registry>${nexus.registry}</registry>
94                         <authConfig>
95                             <pull>
96                                 <username>${docker.username}</username>
97                                 <password>${docker.password}</password>
98                             </pull>
99                         </authConfig>
100                     </configuration>
101                     <executions>
102                         <execution>
103                             <id>docker-build</id>
104                             <phase>install</phase>
105                             <goals>
106                                 <goal>build</goal>
107                             </goals>
108                         </execution>
109                         <execution>
110                             <id>push-images</id>
111                             <phase>deploy</phase>
112                             <goals>
113                                 <goal>push</goal>
114                             </goals>
115                         </execution>
116                     </executions>
117                 </plugin>
118                 <plugin>
119                     <groupId>org.apache.maven.plugins</groupId>
120                     <artifactId>maven-checkstyle-plugin</artifactId>
121                     <version>3.1.2</version>
122                 </plugin>
123             </plugins>
124         </pluginManagement>
125         <plugins>
126             <plugin>
127                 <groupId>org.apache.maven.plugins</groupId>
128                 <artifactId>maven-compiler-plugin</artifactId>
129                 <configuration>
130                     <source>11</source>
131                     <target>11</target>
132                     <forceJavacCompilerUse>true</forceJavacCompilerUse>
133                 </configuration>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-checkstyle-plugin</artifactId>
138                 <configuration>
139                     <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
140                     <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
141                     <skip>${checkstyle.skip}</skip>
142                 </configuration>
143             </plugin>
144             <plugin>
145                 <groupId>org.jacoco</groupId>
146                 <artifactId>jacoco-maven-plugin</artifactId>
147                 <executions>
148                     <execution>
149                         <id>default-prepare-agent</id>
150                         <goals>
151                             <goal>prepare-agent</goal>
152                         </goals>
153                     </execution>
154                     <execution>
155                         <id>report</id>
156                         <phase>prepare-package</phase>
157                         <goals>
158                             <goal>report</goal>
159                         </goals>
160                     </execution>
161                     <execution>
162                         <id>post-unit-test</id>
163                         <phase>test</phase>
164                         <goals>
165                             <goal>report</goal>
166                         </goals>
167                         <configuration>
168                             <destFile>${sonar.jacoco.reportPath}</destFile>
169                         </configuration>
170                     </execution>
171                 </executions>
172             </plugin>
173             <plugin>
174                 <groupId>org.codehaus.groovy.maven</groupId>
175                 <artifactId>gmaven-plugin</artifactId>
176                 <version>1.0</version>
177                 <inherited>true</inherited>
178                 <executions>
179                     <execution>
180                         <id>docker-tags</id>
181                         <phase>validate</phase>
182                         <goals>
183                             <goal>execute</goal>
184                         </goals>
185                         <configuration>
186                             <source>
187                                 println 'Docker Tagging Script:' + project.properties['sdc.project.version'] + '/' + project.properties['sdc.build.timestamp'];
188                                 def versionArray;
189                                 if (project.properties['sdc.project.version'] != null) {
190                                     versionArray = project.properties['sdc.project.version'].split('\\.');
191                                 }
192
193                                 if (project.properties['sdc.project.version'].endsWith("-SNAPSHOT")) {
194                                     project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest");
195                                     project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-" + project.properties['sdc.build.timestamp']);
196                                 } else {
197                                     project.properties.setProperty('project.docker.latesttag.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-latest");
198                                     project.properties.setProperty('project.docker.latesttagtimestamp.version', versionArray[0] + '.' + versionArray[1] + "-STAGING-" + project.properties['sdc.build.timestamp']);
199                                 }
200
201                                 println 'New Tags for docker:' + project.properties['project.docker.latesttag.version'] + '/' + project.properties['project.docker.latesttagtimestamp.version'];
202                             </source>
203                         </configuration>
204                     </execution>
205                 </executions>
206             </plugin>
207         </plugins>
208     </build>
209
210     <repositories>
211         <repository>
212             <id>ecomp-releases</id>
213             <name>Release Repository</name>
214             <url>${nexus.proxy}/content/repositories/releases/</url>
215         </repository>
216         <repository>
217             <id>ecomp-snapshots</id>
218             <name>Snapshots Repository</name>
219             <url>${nexus.proxy}/content/repositories/snapshots/</url>
220         </repository>
221         <repository>
222             <id>ecomp-public</id>
223             <name>Public Repository</name>
224             <url>${nexus.proxy}/content/repositories/public/</url>
225         </repository>
226     </repositories>
227     <distributionManagement>
228         <repository>
229             <id>ecomp-releases</id>
230             <name>Release Repository</name>
231             <url>${nexus.proxy}/content/repositories/releases/</url>
232         </repository>
233         <snapshotRepository>
234             <id>ecomp-snapshots</id>
235             <name>Snapshot Repository</name>
236             <url>${nexus.proxy}/content/repositories/snapshots/</url>
237         </snapshotRepository>
238         <site>
239             <id>ecomp-site</id>
240             <url>dav:${nexus.proxy}${sitePath}</url>
241         </site>
242     </distributionManagement>
243
244 </project>