fd7de1c9fe1eaf51120631ac654db92c03ca70d9
[multicloud/framework.git] / multivimbroker / pom.xml
1 <?xml version="1.0"?>
2 <!--
3  Copyright (c) 2017 Wind River Systems, Inc.
4  Copyright (c) 2017-2018 VMware, Inc.
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        http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 -->
15 <project 
16     xmlns="http://maven.apache.org/POM/4.0.0" 
17     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">
18     <parent>
19         <groupId>org.onap.multicloud.framework</groupId>
20         <artifactId>multicloud-framework</artifactId>
21         <version>1.4.0-SNAPSHOT</version>
22     </parent>
23     <modelVersion>4.0.0</modelVersion>
24     <groupId>org.onap.multicloud.framework</groupId>
25     <artifactId>multicloud-framework-broker</artifactId>
26     <version>1.4.0-SNAPSHOT</version>
27     <packaging>pom</packaging>
28     <name>multicloud-framework-broker</name>
29     <description>multivim broker</description>
30     <properties>
31         <encoding>UTF-8</encoding>
32         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
34         <nexusproxy>https://nexus.onap.org</nexusproxy>
35         <sonar.sources>.</sonar.sources>
36         <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
37         <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
38         <sonar.language>py</sonar.language>
39         <sonar.pluginName>Python</sonar.pluginName>
40         <sonar.inclusions>**/*.py</sonar.inclusions>
41         <sonar.exclusions>**/venv-tox/**,**/.tox/**, **/tests/**,setup.py</sonar.exclusions>
42     </properties>
43     <build>
44       <pluginManagement>
45         <plugins>
46             <plugin>
47               <groupId>org.codehaus.mojo</groupId>
48               <artifactId>exec-maven-plugin</artifactId>
49               <version>1.1.1</version>
50               <configuration>
51                 <executable>${project.basedir}/sonar.sh</executable>
52                 <environmentVariables>
53                   <!-- make mvn properties as env for our script -->
54                   <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
55                   <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
56                   <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
57                 </environmentVariables>
58               </configuration>
59             </plugin>
60         </plugins>
61       </pluginManagement>
62       <plugins>
63         <plugin>
64             <groupId>org.codehaus.mojo</groupId>
65             <artifactId>exec-maven-plugin</artifactId>
66             <version>1.1.1</version>
67             <executions>
68               <execution>
69                 <id>clean phase script</id>
70                 <phase>clean</phase>
71                 <goals>
72                   <goal>exec</goal>
73                 </goals>
74                 <configuration>
75                   <arguments>
76                     <argument>__</argument>
77                     <argument>clean</argument>
78                   </arguments>
79                 </configuration>
80               </execution>
81               <execution>
82                 <id>test script</id>
83                 <phase>test</phase>
84                 <goals>
85                   <goal>exec</goal>
86                 </goals>
87                 <configuration>
88                   <arguments>
89                     <argument>__</argument>
90                     <argument>test</argument>
91                   </arguments>
92                 </configuration>
93               </execution>
94             </executions>
95         </plugin>
96         <plugin>
97             <artifactId>maven-assembly-plugin</artifactId>
98             <configuration>
99                 <appendAssemblyId>false</appendAssemblyId>
100                 <descriptors>
101                     <descriptor>assembly.xml</descriptor>
102                 </descriptors>
103             </configuration>
104             <executions>
105                <execution>
106                    <id>make-assembly</id>
107                    <phase>package</phase>
108                    <goals>
109                        <goal>single</goal>
110                    </goals>
111                </execution>
112             </executions>
113         </plugin>
114       </plugins>
115     </build>
116     <profiles>
117         <profile>
118             <id>docker</id>
119             <build>
120                 <plugins>
121                     <plugin>
122                         <groupId>org.apache.maven.plugins</groupId>
123                         <artifactId>maven-resources-plugin</artifactId>
124                         <version>3.1.0</version>
125                         <executions>
126                             <execution>
127                                 <id>copy-resources</id>
128                                 <phase>validate</phase>
129                                 <goals>
130                                     <goal>copy-resources</goal>
131                                 </goals>
132                                 <configuration>
133                                     <outputDirectory>${project.basedir}/docker_target</outputDirectory>
134                                     <resources>
135                                         <resource>
136                                             <directory>${project.basedir}/docker</directory>
137                                             <filtering>true</filtering>
138                                         </resource>
139                                     </resources>
140                                 </configuration>
141                             </execution>
142                         </executions>
143                     </plugin>
144                     <plugin>
145                         <groupId>org.apache.maven.plugins</groupId>
146                         <artifactId>maven-antrun-plugin</artifactId>
147                         <version>1.6</version>
148                         <executions>
149                             <execution>
150                                 <phase>install</phase>
151                                 <inherited>false</inherited>
152                                 <configuration>
153                                     <target>
154                                         <exec executable="docker">
155                                            <arg value="build"/>
156                                            <arg value="-t"/>
157                                            <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/>
158                                            <arg value="docker_target"/>
159                                         </exec>
160                                         <exec executable="docker">
161                                             <arg value="tag"/>
162                                             <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/>
163                                             <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:latest"/>
164                                         </exec>
165                                         <exec executable="docker">
166                                             <arg value="push"/>
167                                             <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/>
168                                         </exec>
169                                         <exec executable="docker">
170                                             <arg value="push"/>
171                                             <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:latest"/>
172                                         </exec>
173                                     </target>
174                                 </configuration>
175                                 <goals>
176                                     <goal>run</goal>
177                                 </goals>
178                             </execution>
179                         </executions>
180                     </plugin>
181                 </plugins>
182             </build>
183             <activation>
184                 <activeByDefault>false</activeByDefault>
185             </activation>
186         </profile>
187     </profiles>
188 </project>

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use