fix for staging push
[dcaegen2/platform/cli.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3 ================================================================================
4 Copyright (c) 2017 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 ECOMP is a trademark and service mark of AT&T Intellectual Property.
20 -->
21 <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">
22   <modelVersion>4.0.0</modelVersion>
23   <parent>
24     <groupId>org.onap</groupId>
25     <artifactId>dcaegen2</artifactId>
26     <version>1.2.0-SNAPSHOT</version>
27   </parent>
28   <!-- parent>
29     <groupId>org.onap.dcae.platform</groupId>
30     <artifactId>plugins</artifactId>
31     <version>1.0.0</version>
32   </parent -->
33   <groupId>org.onap.dcaegen2.platform.cli</groupId>
34   <artifactId>cli</artifactId>
35   <name>dcaegen2-platform-cli</name>
36   <version>1.1.0-SNAPSHOT</version>
37   <url>http://maven.apache.org</url>
38   <packaging>pom</packaging>
39   <modules>
40      <module>dcae-cli</module>
41      <module>component-json-schemas</module> 
42      <module>blueprint-generator</module> 
43   </modules>
44
45   <properties>
46     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47     <sonar.exclusions>**/*.py</sonar.exclusions>
48   </properties>
49   <build>
50     <finalName>${project.artifactId}-${project.version}</finalName>
51     <pluginManagement>
52       <plugins>
53         <!-- the following plugins are invoked from oparent, we do not need them -->
54         <plugin>
55           <groupId>org.sonatype.plugins</groupId>
56           <artifactId>nexus-staging-maven-plugin</artifactId>
57           <version>1.6.7</version>
58         </plugin>
59        <!-- <plugin>
60           <groupId>org.apache.maven.plugins</groupId>
61           <artifactId>maven-deploy-plugin</artifactId>
62           This version supports the "deployAtEnd" parameter 
63           <version>2.8</version>
64           <configuration>
65             <skip>true</skip>
66           </configuration>
67         </plugin> -->
68         <!-- first disable the default Java plugins at various stages -->
69         <!-- maven-resources-plugin is called during "*resource" phases by default behavior.  it prepares 
70          the resources dir.  we do not need it 
71         <plugin>
72           <groupId>org.apache.maven.plugins</groupId>
73           <artifactId>maven-resources-plugin</artifactId>
74           <version>2.6</version>
75           <configuration>
76             <skip>true</skip>
77           </configuration>
78         </plugin> -->
79         <!-- maven-compiler-plugin is called during "compile" phases by default behavior.  we do not need it 
80         <plugin>
81           <groupId>org.apache.maven.plugins</groupId>
82           <artifactId>maven-compiler-plugin</artifactId>
83           <version>3.1</version>
84           <configuration>
85             <skip>true</skip>
86           </configuration>
87         </plugin> -->
88
89         <!-- maven-jar-plugin is called during "compile" phase by default behavior.  we do not need it -->
90        <!-- <plugin>
91           <groupId>org.apache.maven.plugins</groupId>
92           <artifactId>maven-jar-plugin</artifactId>
93           <version>2.4</version>
94           <executions>
95             <execution>
96               <id>default-jar</id>
97               <phase/>
98             </execution>
99           </executions>
100         </plugin> -->
101         <!-- maven-install-plugin is called during "install" phase by default behavior.  it tries to copy stuff under 
102          target dir to ~/.m2.  we do not need it 
103         <plugin>
104           <groupId>org.apache.maven.plugins</groupId>
105           <artifactId>maven-install-plugin</artifactId>
106           <version>2.4</version>
107           <configuration>
108             <skip>true</skip>
109           </configuration>
110         </plugin> -->
111         <!-- maven-surefire-plugin is called during "test" phase by default behavior.  it triggers junit test.
112          we do not need it -->
113         <plugin>
114           <groupId>org.apache.maven.plugins</groupId>
115           <artifactId>maven-surefire-plugin</artifactId>
116           <version>2.12.4</version>
117           <configuration>
118             <skipTests>true</skipTests>
119           </configuration>
120         </plugin>
121        <plugin>
122           <groupId>org.codehaus.mojo</groupId>
123           <artifactId>exec-maven-plugin</artifactId>
124           <version>1.2.1</version>
125           <configuration>
126             <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
127             <environmentVariables> 
128               <!-- make mvn properties as env for our script -->
129               <!-- make mvn properties as env for our script -->
130              <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
131               <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
132               <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
133               <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
134               <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
135               <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
136               <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
137               <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</MVN_DOCKERREGISTRY_SNAPSHOT>
138               <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
139               <MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>${onap.nexus.dockerregistry.snapshot.serverid}</MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>
140               <MVN_DOCKERREGISTRY_RELEASE_SERVERID>${onap.nexus.dockerregistry.release.serverid}</MVN_DOCKERREGISTRY_RELEASE_SERVERID>
141               <MVN_PYPISERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</MVN_PYPISERVER_BASEURL>
142               <MVN_PYPISERVER_SERVERID>${onap.nexus.pypiserver.serverid}</MVN_PYPISERVER_SERVERID>
143             </environmentVariables>
144           </configuration>
145         </plugin> 
146       </plugins>
147     </pluginManagement>
148   </build>
149 </project>