Remove explicit requirements to make build *any*
[dcaegen2/platform/plugins.git] / pom.xml
1 <?xml version="1.0"?>
2
3 <!--
4 ================================================================================
5 Copyright (c) 2017-2018 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
10
11     http://www.apache.org/licenses/LICENSE-2.0
12
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=========================================================
19
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 -->
22
23 <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">
24   <modelVersion>4.0.0</modelVersion>
25   <parent>
26     <groupId>org.onap.oparent</groupId>
27     <artifactId>oparent</artifactId>
28     <version>1.1.0</version>
29   </parent>
30   <groupId>org.onap.dcaegen2.platform</groupId>
31   <artifactId>plugins</artifactId>
32   <name>dcaegen2-platform-plugins</name>
33   <version>1.1.0-SNAPSHOT</version>
34   <url>http://maven.apache.org</url>
35   <packaging>pom</packaging>
36   <modules>
37      <module>cdap</module>
38      <module>docker</module>
39      <module>relationships</module>
40      <module>dcae-policy</module>
41      <module>k8s</module>
42   </modules>
43   <properties>
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:10003</onap.nexus.dockerregistry.release>
52     <onap.nexus.dockerregistry.public>nexus3.onap.org:10001</onap.nexus.dockerregistry.public>
53     <onap.nexus.dockerregistry.snapshot.serverid>nexus3.onap.org:10003</onap.nexus.dockerregistry.snapshot.serverid>
54     <onap.nexus.dockerregistry.release.serverid>nexus3.onap.org:10003</onap.nexus.dockerregistry.release.serverid>
55     <onap.nexus.dockerregistry.public.serverid>nexus3.onap.org:10001</onap.nexus.dockerregistry.public.serverid>
56     <!-- properties for Pypi server -->
57     <onap.nexus.pypiserver.baseurl>https://nexus3.onap.org/repository/PyPi</onap.nexus.pypiserver.baseurl>
58     <onap.nexus.pypiserver.serverid>onap-pypi</onap.nexus.pypiserver.serverid>
59     <!-- customize the SONARQUBE URL -->
60     <sonar.host.url>http://localhost:9000</sonar.host.url>
61     <!-- taken care of in the children -->
62     <sonar.exclusions>**/*.py</sonar.exclusions>
63   </properties>
64   <build>
65     <pluginManagement>
66       <plugins>
67         <plugin>
68           <groupId>org.sonatype.plugins</groupId>
69           <artifactId>nexus-staging-maven-plugin</artifactId>
70           <version>1.6.7</version>
71           <configuration>
72             <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
73           </configuration>
74         </plugin>
75         <plugin>
76           <groupId>org.apache.maven.plugins</groupId>
77           <artifactId>maven-deploy-plugin</artifactId>
78           <!-- This version supports the "deployAtEnd" parameter -->
79           <version>2.8</version>
80           <configuration>
81             <skip>true</skip>
82           </configuration>
83         </plugin>
84         <!-- first disable the default Java plugins at various stages -->
85         <!-- maven-resources-plugin is called during "*resource" phases by default behavior.  it prepares 
86          the resources dir.  we do not need it -->
87         <plugin>
88           <groupId>org.apache.maven.plugins</groupId>
89           <artifactId>maven-resources-plugin</artifactId>
90           <version>2.6</version>
91           <configuration>
92             <skip>true</skip>
93           </configuration>
94         </plugin>
95         <!-- maven-compiler-plugin is called during "compile" phases by default behavior.  we do not need it -->
96         <plugin>
97           <groupId>org.apache.maven.plugins</groupId>
98           <artifactId>maven-compiler-plugin</artifactId>
99           <version>3.1</version>
100           <configuration>
101             <skip>true</skip>
102           </configuration>
103         </plugin>
104         <!-- maven-jar-plugin is called during "compile" phase by default behavior.  we do not need it -->
105         <plugin>
106           <groupId>org.apache.maven.plugins</groupId>
107           <artifactId>maven-jar-plugin</artifactId>
108           <version>2.4</version>
109           <executions>
110             <execution>
111               <id>default-jar</id>
112               <phase/>
113             </execution>
114           </executions>
115         </plugin>
116         <!-- maven-install-plugin is called during "install" phase by default behavior.  it tries to copy stuff under 
117          target dir to ~/.m2.  we do not need it -->
118         <plugin>
119           <groupId>org.apache.maven.plugins</groupId>
120           <artifactId>maven-install-plugin</artifactId>
121           <version>2.4</version>
122           <configuration>
123             <skip>true</skip>
124           </configuration>
125         </plugin>
126         <!-- maven-surefire-plugin is called during "test" phase by default behavior.  it triggers junit test.
127          we do not need it -->
128         <plugin>
129           <groupId>org.apache.maven.plugins</groupId>
130           <artifactId>maven-surefire-plugin</artifactId>
131           <version>2.12.4</version>
132           <configuration>
133             <skipTests>true</skipTests>
134           </configuration>
135         </plugin>
136
137         <plugin>
138           <groupId>org.codehaus.mojo</groupId>
139           <artifactId>exec-maven-plugin</artifactId>
140           <version>1.2.1</version>
141           <configuration>
142             <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
143             <environmentVariables>
144               <!-- make mvn properties as env for our script -->
145               <!-- make mvn properties as env for our script -->
146               <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
147               <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
148               <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
149               <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
150               <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
151               <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
152               <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
153               <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</MVN_DOCKERREGISTRY_SNAPSHOT>
154               <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
155               <MVN_DOCKERREGISTRY_PUBLIC>${onap.nexus.dockerregistry.public}</MVN_DOCKERREGISTRY_PUBLIC>
156               <MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>${onap.nexus.dockerregistry.snapshot.serverid}</MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>
157               <MVN_DOCKERREGISTRY_RELEASE_SERVERID>${onap.nexus.dockerregistry.release.serverid}</MVN_DOCKERREGISTRY_RELEASE_SERVERID>
158               <MVN_DOCKERREGISTRY_PUBLIC_SERVERID>${onap.nexus.dockerregistry.public.serverid}</MVN_DOCKERREGISTRY_PUBLIC_SERVERID>
159               <MVN_PYPISERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</MVN_PYPISERVER_BASEURL>
160               <MVN_PYPISERVER_SERVERID>${onap.nexus.pypiserver.serverid}</MVN_PYPISERVER_SERVERID>
161             </environmentVariables>
162           </configuration>
163         </plugin>
164       </plugins>
165     </pluginManagement>
166   </build>
167 </project>