Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | Copyright (c) 2017 Wind River Systems, Inc. |
Ethan Lynn | 2906f88 | 2018-01-15 10:32:43 +0800 | [diff] [blame] | 4 | Copyright (c) 2017-2018 VMware, Inc. |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 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 | --> |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 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"> |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 18 | <parent> |
Bin Yang | a45725d | 2019-07-11 04:44:30 +0000 | [diff] [blame] | 19 | <groupId>org.onap.multicloud.framework</groupId> |
| 20 | <artifactId>multicloud-framework</artifactId> |
Bin Yang | 28b4c48 | 2022-07-27 14:23:29 +0800 | [diff] [blame^] | 21 | <version>1.8.1-SNAPSHOT</version> |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 22 | </parent> |
| 23 | <modelVersion>4.0.0</modelVersion> |
liboNet | de2f1e4 | 2019-04-03 15:50:50 +0800 | [diff] [blame] | 24 | <groupId>org.onap.multicloud.framework</groupId> |
Ethan Lynn | 6ea8e1b | 2017-10-13 12:55:11 +0800 | [diff] [blame] | 25 | <artifactId>multicloud-framework-broker</artifactId> |
Bin Yang | 28b4c48 | 2022-07-27 14:23:29 +0800 | [diff] [blame^] | 26 | <version>1.8.1-SNAPSHOT</version> |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 27 | <packaging>pom</packaging> |
Ethan Lynn | 6ea8e1b | 2017-10-13 12:55:11 +0800 | [diff] [blame] | 28 | <name>multicloud-framework-broker</name> |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 29 | <description>multivim broker</description> |
Ethan Lynn | c9effec | 2018-03-06 22:11:52 +0000 | [diff] [blame] | 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> |
liboNet | 20cc990 | 2019-03-21 07:13:32 +0800 | [diff] [blame] | 35 | <sonar.sources>.</sonar.sources> |
| 36 | <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath> |
Bin Yang | 605a4a9 | 2020-02-10 15:05:04 +0000 | [diff] [blame] | 37 | <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths> |
liboNet | 20cc990 | 2019-03-21 07:13:32 +0800 | [diff] [blame] | 38 | <sonar.language>py</sonar.language> |
| 39 | <sonar.pluginName>Python</sonar.pluginName> |
| 40 | <sonar.inclusions>**/*.py</sonar.inclusions> |
Bin Yang | 2ce0d6f | 2019-12-11 02:07:26 +0000 | [diff] [blame] | 41 | <sonar.exclusions>**/venv-tox/**,**/.tox/**, **/api_v2/**, **/tests/**,setup.py</sonar.exclusions> |
Ethan Lynn | c9effec | 2018-03-06 22:11:52 +0000 | [diff] [blame] | 42 | </properties> |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 43 | <build> |
liboNet | efb2229 | 2019-03-20 03:10:03 +0800 | [diff] [blame] | 44 | <pluginManagement> |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 45 | <plugins> |
| 46 | <plugin> |
liboNet | efb2229 | 2019-03-20 03:10:03 +0800 | [diff] [blame] | 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> |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 59 | </plugin> |
| 60 | </plugins> |
liboNet | efb2229 | 2019-03-20 03:10:03 +0800 | [diff] [blame] | 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> |
Bin Yang | b1b0386 | 2017-02-22 11:15:28 +0800 | [diff] [blame] | 115 | </build> |
Bin Yang | 6445752 | 2019-07-15 10:48:31 +0000 | [diff] [blame] | 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> |
Bin Yang | fa610df | 2019-08-16 10:28:34 +0000 | [diff] [blame] | 128 | <phase>install</phase> |
Bin Yang | 6445752 | 2019-07-15 10:48:31 +0000 | [diff] [blame] | 129 | <goals> |
| 130 | <goal>copy-resources</goal> |
| 131 | </goals> |
| 132 | <configuration> |
Bin Yang | 93f02f1 | 2019-08-19 03:16:01 +0000 | [diff] [blame] | 133 | <overwrite>true</overwrite> |
| 134 | <nonFilteredFileExtensions> |
| 135 | <nonFilteredFileExtension>zip</nonFilteredFileExtension> |
| 136 | </nonFilteredFileExtensions> |
Bin Yang | 6445752 | 2019-07-15 10:48:31 +0000 | [diff] [blame] | 137 | <outputDirectory>${project.basedir}/docker_target</outputDirectory> |
| 138 | <resources> |
| 139 | <resource> |
| 140 | <directory>${project.basedir}/docker</directory> |
| 141 | <filtering>true</filtering> |
| 142 | </resource> |
Bin Yang | f4801b2 | 2019-08-16 08:08:35 +0000 | [diff] [blame] | 143 | <resource> |
| 144 | <directory>${project.basedir}/target</directory> |
| 145 | <filtering>true</filtering> |
| 146 | <includes> |
| 147 | <include>*.zip</include> |
| 148 | </includes> |
| 149 | </resource> |
Bin Yang | 6445752 | 2019-07-15 10:48:31 +0000 | [diff] [blame] | 150 | </resources> |
| 151 | </configuration> |
| 152 | </execution> |
| 153 | </executions> |
| 154 | </plugin> |
| 155 | <plugin> |
| 156 | <groupId>org.apache.maven.plugins</groupId> |
| 157 | <artifactId>maven-antrun-plugin</artifactId> |
| 158 | <version>1.6</version> |
| 159 | <executions> |
| 160 | <execution> |
| 161 | <phase>install</phase> |
| 162 | <inherited>false</inherited> |
| 163 | <configuration> |
| 164 | <target> |
| 165 | <exec executable="docker"> |
| 166 | <arg value="build"/> |
| 167 | <arg value="-t"/> |
| 168 | <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/> |
| 169 | <arg value="docker_target"/> |
| 170 | </exec> |
| 171 | <exec executable="docker"> |
| 172 | <arg value="tag"/> |
| 173 | <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/> |
| 174 | <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:latest"/> |
| 175 | </exec> |
| 176 | <exec executable="docker"> |
| 177 | <arg value="push"/> |
| 178 | <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/> |
| 179 | </exec> |
| 180 | <exec executable="docker"> |
| 181 | <arg value="push"/> |
| 182 | <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:latest"/> |
| 183 | </exec> |
| 184 | </target> |
| 185 | </configuration> |
| 186 | <goals> |
| 187 | <goal>run</goal> |
| 188 | </goals> |
| 189 | </execution> |
| 190 | </executions> |
| 191 | </plugin> |
| 192 | </plugins> |
| 193 | </build> |
| 194 | <activation> |
| 195 | <activeByDefault>false</activeByDefault> |
| 196 | </activation> |
| 197 | </profile> |
| 198 | </profiles> |
liangke | 72d43b4 | 2018-05-02 13:56:29 +0800 | [diff] [blame] | 199 | </project> |