9ab8d95865ecf305056e18a6d0ef8f0441f06d3c
[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.12.0-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
53         <build-helper-maven-plugin.version>3.3.0</build-helper-maven-plugin.version>
54         <docker.api.version>1.41</docker.api.version>
55         <checkstyle.skip>true</checkstyle.skip>
56         <jetty.version>9.4.49.v20220914</jetty.version>
57     </properties>
58
59     <parent>
60         <groupId>org.onap.oparent</groupId>
61         <artifactId>oparent</artifactId>
62         <version>3.2.0</version>
63         <relativePath/>
64     </parent>
65
66     <modules>
67         <module>sdc-workflow-designer-init</module>
68         <module>sdc-workflow-designer-be</module>
69         <module>sdc-workflow-designer-ui</module>
70     </modules>
71
72     <build>
73         <pluginManagement>
74             <plugins>
75                 <plugin>
76                     <groupId>org.apache.maven.plugins</groupId>
77                     <artifactId>maven-compiler-plugin</artifactId>
78                     <version>3.10.1</version>
79                 </plugin>
80                 <plugin>
81                     <groupId>org.apache.maven.plugins</groupId>
82                     <artifactId>maven-surefire-plugin</artifactId>
83                     <version>2.22.2</version>
84                 </plugin>
85                 <plugin>
86                     <groupId>org.jacoco</groupId>
87                     <artifactId>jacoco-maven-plugin</artifactId>
88                     <version>0.8.8</version>
89                 </plugin>
90                 <plugin>
91                     <groupId>io.fabric8</groupId>
92                     <artifactId>docker-maven-plugin</artifactId>
93                     <version>0.38.0</version>
94                     <configuration>
95                         <verbose>false</verbose>
96                         <registry>${nexus.registry}</registry>
97                         <authConfig>
98                             <pull>
99                                 <username>${docker.username}</username>
100                                 <password>${docker.password}</password>
101                             </pull>
102                         </authConfig>
103                     </configuration>
104                     <executions>
105                         <execution>
106                             <id>docker-build</id>
107                             <phase>install</phase>
108                             <goals>
109                                 <goal>build</goal>
110                             </goals>
111                         </execution>
112                         <execution>
113                             <id>push-images</id>
114                             <phase>deploy</phase>
115                             <goals>
116                                 <goal>push</goal>
117                             </goals>
118                         </execution>
119                     </executions>
120                 </plugin>
121                 <plugin>
122                     <groupId>org.apache.maven.plugins</groupId>
123                     <artifactId>maven-checkstyle-plugin</artifactId>
124                     <version>3.1.2</version>
125                 </plugin>
126             </plugins>
127         </pluginManagement>
128         <plugins>
129             <plugin>
130                 <groupId>org.apache.maven.plugins</groupId>
131                 <artifactId>maven-compiler-plugin</artifactId>
132                 <configuration>
133                     <source>11</source>
134                     <target>11</target>
135                     <forceJavacCompilerUse>true</forceJavacCompilerUse>
136                 </configuration>
137             </plugin>
138             <plugin>
139                 <groupId>org.apache.maven.plugins</groupId>
140                 <artifactId>maven-checkstyle-plugin</artifactId>
141                 <configuration>
142                     <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
143                     <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
144                     <skip>${checkstyle.skip}</skip>
145                 </configuration>
146             </plugin>
147             <plugin>
148                 <groupId>org.jacoco</groupId>
149                 <artifactId>jacoco-maven-plugin</artifactId>
150                 <executions>
151                     <execution>
152                         <id>default-prepare-agent</id>
153                         <goals>
154                             <goal>prepare-agent</goal>
155                         </goals>
156                     </execution>
157                     <execution>
158                         <id>report</id>
159                         <phase>prepare-package</phase>
160                         <goals>
161                             <goal>report</goal>
162                         </goals>
163                     </execution>
164                     <execution>
165                         <id>post-unit-test</id>
166                         <phase>test</phase>
167                         <goals>
168                             <goal>report</goal>
169                         </goals>
170                         <configuration>
171                             <destFile>${sonar.jacoco.reportPath}</destFile>
172                         </configuration>
173                     </execution>
174                 </executions>
175             </plugin>
176             <plugin>
177                 <groupId>org.codehaus.mojo</groupId>
178                 <artifactId>build-helper-maven-plugin</artifactId>
179                 <version>${build-helper-maven-plugin.version}</version>
180                 <executions>
181                     <execution>
182                         <phase>initialize</phase>
183                         <id>parse-version</id>
184                         <goals>
185                             <goal>parse-version</goal>
186                         </goals>
187                     </execution>
188                 </executions>
189             </plugin>
190         </plugins>
191     </build>
192
193     <repositories>
194         <repository>
195             <id>ecomp-releases</id>
196             <name>Release Repository</name>
197             <url>${nexus.proxy}/content/repositories/releases/</url>
198         </repository>
199         <repository>
200             <id>ecomp-snapshots</id>
201             <name>Snapshots Repository</name>
202             <url>${nexus.proxy}/content/repositories/snapshots/</url>
203         </repository>
204         <repository>
205             <id>ecomp-public</id>
206             <name>Public Repository</name>
207             <url>${nexus.proxy}/content/repositories/public/</url>
208         </repository>
209     </repositories>
210     <distributionManagement>
211         <repository>
212             <id>ecomp-releases</id>
213             <name>Release Repository</name>
214             <url>${nexus.proxy}/content/repositories/releases/</url>
215         </repository>
216         <snapshotRepository>
217             <id>ecomp-snapshots</id>
218             <name>Snapshot Repository</name>
219             <url>${nexus.proxy}/content/repositories/snapshots/</url>
220         </snapshotRepository>
221         <site>
222             <id>ecomp-site</id>
223             <url>dav:${nexus.proxy}${sitePath}</url>
224         </site>
225     </distributionManagement>
226
227     <profiles>
228         <profile>
229             <id>fast-build</id>
230             <activation>
231                 <activeByDefault>false</activeByDefault>
232             </activation>
233             <properties>
234                 <maven.test.skip>true</maven.test.skip>
235                 <skipYamlJsonValidator>true</skipYamlJsonValidator>
236                 <checkstyle.skip>true</checkstyle.skip>
237                 <jacoco.skip>true</jacoco.skip>
238                 <maven.antrun.skip>true</maven.antrun.skip>
239                 <swagger.skip>true</swagger.skip>
240             </properties>
241         </profile>
242
243     </profiles>
244
245 </project>