Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 4 | |
Areli, Fuss (af732p) | 6af1680 | 2018-09-13 15:00:09 +0300 | [diff] [blame] | 5 | <groupId>org.onap.sdc.dcae-d.tosca-lab</groupId> |
| 6 | <artifactId>dcae-tosca-lab</artifactId> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 7 | <packaging>pom</packaging> |
| 8 | <version>1.3.0-SNAPSHOT</version> |
Areli, Fuss (af732p) | 6af1680 | 2018-09-13 15:00:09 +0300 | [diff] [blame] | 9 | <name>dcae-tosca-lab</name> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 10 | |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 11 | <properties> |
| 12 | <!--nexus--> |
Areli, Fuss (af732p) | 3d1b2d2 | 2018-09-13 11:56:36 +0300 | [diff] [blame] | 13 | <nexus.proxy>https://nexus.onap.org</nexus.proxy> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 14 | <sitePath>/content/sites/site/org/onap/dcae/${project.artifactId}/${project.version}</sitePath> |
Areli, Fuss (af732p) | f2339c6 | 2018-09-13 13:56:15 +0300 | [diff] [blame] | 15 | <staging.profile.id>176c31dfe190a</staging.profile.id> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 16 | <!--maven--> |
| 17 | <timestamp>${maven.build.timestamp}</timestamp> |
| 18 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 19 | <!--docker--> |
| 20 | <fabric8.version>0.23.0</fabric8.version> |
| 21 | <docker.registry>nexus3.onap.org:10001</docker.registry> |
| 22 | <docker.username>docker</docker.username> |
| 23 | <docker.password>docker</docker.password> |
| 24 | <docker.namespace>onap</docker.namespace> |
| 25 | <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag> |
| 26 | <docker.latest.tag>${project.version}-latest</docker.latest.tag> |
| 27 | <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag> |
Betzer, Rony (rb844h) | 2236f9d | 2018-10-04 16:47:13 +0300 | [diff] [blame] | 28 | <!--sonar--> |
| 29 | <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding> |
| 30 | <sonar.sources>.</sonar.sources> |
| 31 | <sonar.python.coverage.reportPath>app/coverage.xml</sonar.python.coverage.reportPath> |
| 32 | <sonar.language>py</sonar.language> |
| 33 | <sonar.pluginName>python</sonar.pluginName> |
| 34 | <sonar.exclusions>app/tests/*.py</sonar.exclusions> |
Stone, Avi (as206k) | 8055d8c | 2018-05-24 14:26:22 +0300 | [diff] [blame] | 35 | <sonar.branch>${project.version}</sonar.branch> |
Betzer, Rony (rb844h) | e30acb2 | 2018-10-16 15:58:30 +0300 | [diff] [blame^] | 36 | <!--sonar.skip>true</sonar.skip--> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 37 | </properties> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 38 | |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 39 | <build> |
Betzer, Rony (rb844h) | 2236f9d | 2018-10-04 16:47:13 +0300 | [diff] [blame] | 40 | <pluginManagement> |
| 41 | <plugins> |
| 42 | <plugin> |
| 43 | <groupId>org.codehaus.mojo</groupId> |
| 44 | <artifactId>exec-maven-plugin</artifactId> |
| 45 | <version>1.2.1</version> |
| 46 | <configuration> |
| 47 | <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable> |
| 48 | </configuration> |
| 49 | </plugin> |
| 50 | </plugins> |
| 51 | </pluginManagement> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 52 | <plugins> |
| 53 | <plugin> |
| 54 | <groupId>org.codehaus.mojo</groupId> |
| 55 | <artifactId>build-helper-maven-plugin</artifactId> |
| 56 | <version>1.8</version> |
| 57 | <executions> |
| 58 | <execution> |
| 59 | <id>parse-version</id> |
| 60 | <goals> |
| 61 | <goal>parse-version</goal> |
| 62 | </goals> |
| 63 | </execution> |
| 64 | </executions> |
| 65 | </plugin> |
| 66 | <plugin> |
Areli, Fuss (af732p) | f2339c6 | 2018-09-13 13:56:15 +0300 | [diff] [blame] | 67 | <groupId>org.sonatype.plugins</groupId> |
| 68 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 69 | <version>1.6.7</version> |
| 70 | <extensions>true</extensions> |
| 71 | <configuration> |
| 72 | <nexusUrl>${nexus.proxy}</nexusUrl> |
| 73 | <stagingProfileId>${staging.profile.id}</stagingProfileId> |
| 74 | <serverId>ecomp-staging</serverId> |
| 75 | </configuration> |
| 76 | </plugin> |
| 77 | <plugin> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 78 | <artifactId>maven-resources-plugin</artifactId> |
| 79 | <version>3.0.2</version> |
| 80 | <executions> |
| 81 | <execution> |
| 82 | <id>copy-docker-file</id> |
| 83 | <phase>validate</phase> |
| 84 | <goals> |
| 85 | <goal>copy-resources</goal> |
| 86 | </goals> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 87 | <configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 88 | <outputDirectory>${project.basedir}</outputDirectory> |
| 89 | <resources> |
| 90 | <resource> |
| 91 | <directory>${project.basedir}/docker</directory> |
| 92 | <includes> |
| 93 | <include>Dockerfile</include> |
| 94 | </includes> |
| 95 | </resource> |
| 96 | </resources> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 97 | </configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 98 | </execution> |
| 99 | </executions> |
| 100 | </plugin> |
| 101 | <plugin> |
| 102 | <groupId>io.fabric8</groupId> |
| 103 | <artifactId>docker-maven-plugin</artifactId> |
| 104 | <version>${fabric8.version}</version> |
| 105 | <configuration> |
| 106 | <verbose>true</verbose> |
| 107 | <apiVersion>1.23</apiVersion> |
| 108 | |
| 109 | <registry>${docker.registry}</registry> |
| 110 | <authConfig> |
| 111 | <pull> |
| 112 | <username>${docker.username}</username> |
| 113 | <password>${docker.password}</password> |
| 114 | </pull> |
| 115 | </authConfig> |
| 116 | |
| 117 | <images> |
| 118 | |
| 119 | <image> |
| 120 | <name>${docker.namespace}/dcae-tosca-app</name> |
| 121 | <alias>dcae-tosca-app</alias> |
| 122 | <build> |
| 123 | <cleanup>true</cleanup> |
| 124 | <tags> |
| 125 | <tag>${docker.tag}</tag> |
| 126 | <tag>${docker.latest.tag}</tag> |
| 127 | <tag>${docker.staging.tag}</tag> |
| 128 | </tags> |
| 129 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 130 | </build> |
| 131 | </image> |
| 132 | </images> |
| 133 | </configuration> |
| 134 | |
| 135 | <executions> |
| 136 | <execution> |
| 137 | <id>clean-images</id> |
| 138 | <phase>pre-clean</phase> |
| 139 | <goals> |
| 140 | <goal>remove</goal> |
| 141 | </goals> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 142 | <configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 143 | <removeAll>true</removeAll> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 144 | </configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 145 | </execution> |
| 146 | <execution> |
| 147 | <id>generate-images</id> |
| 148 | <phase>install</phase> |
| 149 | <goals> |
| 150 | <goal>build</goal> |
| 151 | </goals> |
| 152 | </execution> |
| 153 | <execution> |
| 154 | <id>push-images</id> |
| 155 | <phase>deploy</phase> |
| 156 | <goals> |
| 157 | <goal>push</goal> |
| 158 | </goals> |
| 159 | </execution> |
| 160 | </executions> |
| 161 | </plugin> |
Betzer, Rony (rb844h) | 2236f9d | 2018-10-04 16:47:13 +0300 | [diff] [blame] | 162 | <plugin> |
| 163 | <groupId>org.codehaus.mojo</groupId> |
| 164 | <artifactId>exec-maven-plugin</artifactId> |
| 165 | <version>1.2.1</version> |
| 166 | <executions> |
| 167 | <execution> |
| 168 | <id>test script</id> |
| 169 | <phase>test</phase> |
| 170 | <goals> |
| 171 | <goal>exec</goal> |
| 172 | </goals> |
| 173 | <configuration> |
| 174 | <arguments> |
| 175 | <argument>__</argument> |
| 176 | <argument>test</argument> |
| 177 | </arguments> |
| 178 | </configuration> |
| 179 | </execution> |
| 180 | </executions> |
| 181 | </plugin> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 182 | </plugins> |
| 183 | </build> |
Areli, Fuss (af732p) | 3d1b2d2 | 2018-09-13 11:56:36 +0300 | [diff] [blame] | 184 | <distributionManagement> |
| 185 | <repository> |
| 186 | <id>ecomp-releases</id> |
| 187 | <name>Release Repository</name> |
| 188 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 189 | </repository> |
| 190 | <snapshotRepository> |
| 191 | <id>ecomp-snapshots</id> |
| 192 | <name>Snapshot Repository</name> |
| 193 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 194 | </snapshotRepository> |
| 195 | <site> |
| 196 | <id>ecomp-site</id> |
| 197 | <url>dav:${nexus.proxy}${sitePath}</url> |
| 198 | </site> |
| 199 | </distributionManagement> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 200 | </project> |
Areli, Fuss (af732p) | 898f705 | 2018-09-12 16:28:11 +0300 | [diff] [blame] | 201 | |