3 ===========LICENSE_START========================================================
4 ================================================================================
5 Copyright (c) 2017,2023 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 <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">
23 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.oparent</groupId>
26 <artifactId>oparent</artifactId>
27 <version>1.2.0</version>
29 <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
30 <groupId>org.onap</groupId>
31 <artifactId>dcaegen2</artifactId>
34 <version>1.2.1-SNAPSHOT</version>
35 <url>http://maven.apache.org</url>
36 <packaging>pom</packaging>
37 <!-- TODO: Revisit. Port platform docs to sphinx/rst first.
39 <module>platformdoc</module>
44 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
45 <!-- properties for Nexus raw repo -->
46 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
47 <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download>
48 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
49 <!-- properties for Nexus Docker registry -->
50 <onap.nexus.dockerregistry.snapshot>nexus3.onap.org:10003</onap.nexus.dockerregistry.snapshot>
51 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
52 <onap.nexus.dockerregistry.snapshot.serverid>nexus3.onap.org:10003</onap.nexus.dockerregistry.snapshot.serverid>
53 <onap.nexus.dockerregistry.release.serverid>nexus3.onap.org:10002</onap.nexus.dockerregistry.release.serverid>
54 <!-- properties for Pypi server -->
55 <onap.nexus.pypiserver.baseurl>https://nexus3.onap.org/repository/PyPi</onap.nexus.pypiserver.baseurl>
56 <onap.nexus.pypiserver.serverid>onap-pypi</onap.nexus.pypiserver.serverid>
58 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59 <sonar.skip>false</sonar.skip>
60 <sonar.sources>.</sonar.sources>
61 <!-- customize the SONARQUBE URL -->
62 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
63 <!-- below are language dependent -->
65 <sonar.language>py</sonar.language>
66 <sonar.pluginName>Python</sonar.pluginName>
67 <sonar.inclusions>**/*.py</sonar.inclusions>
68 <!-- for JavaScaript -->
70 <sonar.language>js</sonar.language>
71 <sonar.pluginName>JS</sonar.pluginName>
72 <sonar.inclusions>**/*.js</sonar.inclusions>
77 -changelog-or-release-file-missing
78 -copyright-year-not-found-in-file
79 -text-before-copyright
80 -copyright-not-found-in-file
81 -capitalized-extension
85 <finalName>${project.artifactId}-${project.version}</finalName>
88 <!-- the following plugins are invoked from oparent, we do not need them -->
90 <groupId>org.sonatype.plugins</groupId>
91 <artifactId>nexus-staging-maven-plugin</artifactId>
92 <version>1.6.7</version>
94 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-deploy-plugin</artifactId>
100 <version>2.8</version>
105 <!-- first disable the default Java plugins at various stages -->
106 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
107 the resources dir. we do not need it -->
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-resources-plugin</artifactId>
111 <version>2.6</version>
116 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-compiler-plugin</artifactId>
120 <version>3.1</version>
125 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-jar-plugin</artifactId>
129 <version>2.4</version>
137 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
138 target dir to ~/.m2. we do not need it -->
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-install-plugin</artifactId>
142 <version>2.4</version>
147 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
148 we do not need it -->
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-surefire-plugin</artifactId>
152 <version>2.12.4</version>
154 <skipTests>true</skipTests>
159 <groupId>org.codehaus.mojo</groupId>
160 <artifactId>exec-maven-plugin</artifactId>
161 <version>1.2.1</version>
163 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
164 <environmentVariables>
165 <!-- make mvn properties as env for our script -->
166 <!-- make mvn properties as env for our script -->
167 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
168 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
169 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
170 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
171 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
172 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
173 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
174 <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</MVN_DOCKERREGISTRY_SNAPSHOT>
175 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
176 <MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>${onap.nexus.dockerregistry.snapshot.serverid}</MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>
177 <MVN_DOCKERREGISTRY_RELEASE_SERVERID>${onap.nexus.dockerregistry.release.serverid}</MVN_DOCKERREGISTRY_RELEASE_SERVERID>
178 <MVN_PYPISERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</MVN_PYPISERVER_BASEURL>
179 <MVN_PYPISERVER_SERVERID>${onap.nexus.pypiserver.serverid}</MVN_PYPISERVER_SERVERID>
180 </environmentVariables>