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> |
Betzer, Rony (rb844h) | faa922c | 2018-10-17 13:55:49 +0300 | [diff] [blame] | 30 | <sonar.sources>app/toscalib/</sonar.sources> |
Betzer, Rony (rb844h) | 2236f9d | 2018-10-04 16:47:13 +0300 | [diff] [blame] | 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> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 36 | </properties> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 37 | |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 38 | <build> |
Betzer, Rony (rb844h) | 2236f9d | 2018-10-04 16:47:13 +0300 | [diff] [blame] | 39 | <pluginManagement> |
| 40 | <plugins> |
| 41 | <plugin> |
| 42 | <groupId>org.codehaus.mojo</groupId> |
| 43 | <artifactId>exec-maven-plugin</artifactId> |
| 44 | <version>1.2.1</version> |
| 45 | <configuration> |
| 46 | <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable> |
| 47 | </configuration> |
| 48 | </plugin> |
| 49 | </plugins> |
| 50 | </pluginManagement> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 51 | <plugins> |
| 52 | <plugin> |
| 53 | <groupId>org.codehaus.mojo</groupId> |
| 54 | <artifactId>build-helper-maven-plugin</artifactId> |
| 55 | <version>1.8</version> |
| 56 | <executions> |
| 57 | <execution> |
| 58 | <id>parse-version</id> |
| 59 | <goals> |
| 60 | <goal>parse-version</goal> |
| 61 | </goals> |
| 62 | </execution> |
| 63 | </executions> |
| 64 | </plugin> |
| 65 | <plugin> |
Areli, Fuss (af732p) | f2339c6 | 2018-09-13 13:56:15 +0300 | [diff] [blame] | 66 | <groupId>org.sonatype.plugins</groupId> |
| 67 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 68 | <version>1.6.7</version> |
| 69 | <extensions>true</extensions> |
| 70 | <configuration> |
| 71 | <nexusUrl>${nexus.proxy}</nexusUrl> |
| 72 | <stagingProfileId>${staging.profile.id}</stagingProfileId> |
| 73 | <serverId>ecomp-staging</serverId> |
| 74 | </configuration> |
| 75 | </plugin> |
| 76 | <plugin> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 77 | <artifactId>maven-resources-plugin</artifactId> |
| 78 | <version>3.0.2</version> |
| 79 | <executions> |
| 80 | <execution> |
| 81 | <id>copy-docker-file</id> |
| 82 | <phase>validate</phase> |
| 83 | <goals> |
| 84 | <goal>copy-resources</goal> |
| 85 | </goals> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 86 | <configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 87 | <outputDirectory>${project.basedir}</outputDirectory> |
| 88 | <resources> |
| 89 | <resource> |
| 90 | <directory>${project.basedir}/docker</directory> |
| 91 | <includes> |
| 92 | <include>Dockerfile</include> |
| 93 | </includes> |
| 94 | </resource> |
| 95 | </resources> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 96 | </configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 97 | </execution> |
| 98 | </executions> |
| 99 | </plugin> |
| 100 | <plugin> |
| 101 | <groupId>io.fabric8</groupId> |
| 102 | <artifactId>docker-maven-plugin</artifactId> |
| 103 | <version>${fabric8.version}</version> |
| 104 | <configuration> |
| 105 | <verbose>true</verbose> |
| 106 | <apiVersion>1.23</apiVersion> |
| 107 | |
| 108 | <registry>${docker.registry}</registry> |
| 109 | <authConfig> |
| 110 | <pull> |
| 111 | <username>${docker.username}</username> |
| 112 | <password>${docker.password}</password> |
| 113 | </pull> |
| 114 | </authConfig> |
| 115 | |
| 116 | <images> |
| 117 | |
| 118 | <image> |
| 119 | <name>${docker.namespace}/dcae-tosca-app</name> |
| 120 | <alias>dcae-tosca-app</alias> |
| 121 | <build> |
| 122 | <cleanup>true</cleanup> |
| 123 | <tags> |
| 124 | <tag>${docker.tag}</tag> |
| 125 | <tag>${docker.latest.tag}</tag> |
| 126 | <tag>${docker.staging.tag}</tag> |
| 127 | </tags> |
| 128 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 129 | </build> |
| 130 | </image> |
| 131 | </images> |
| 132 | </configuration> |
| 133 | |
| 134 | <executions> |
| 135 | <execution> |
| 136 | <id>clean-images</id> |
| 137 | <phase>pre-clean</phase> |
| 138 | <goals> |
| 139 | <goal>remove</goal> |
| 140 | </goals> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 141 | <configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 142 | <removeAll>true</removeAll> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 143 | </configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 144 | </execution> |
| 145 | <execution> |
| 146 | <id>generate-images</id> |
| 147 | <phase>install</phase> |
| 148 | <goals> |
| 149 | <goal>build</goal> |
| 150 | </goals> |
| 151 | </execution> |
| 152 | <execution> |
| 153 | <id>push-images</id> |
| 154 | <phase>deploy</phase> |
| 155 | <goals> |
| 156 | <goal>push</goal> |
| 157 | </goals> |
| 158 | </execution> |
| 159 | </executions> |
| 160 | </plugin> |
Betzer, Rony (rb844h) | 2236f9d | 2018-10-04 16:47:13 +0300 | [diff] [blame] | 161 | <plugin> |
| 162 | <groupId>org.codehaus.mojo</groupId> |
| 163 | <artifactId>exec-maven-plugin</artifactId> |
| 164 | <version>1.2.1</version> |
| 165 | <executions> |
| 166 | <execution> |
| 167 | <id>test script</id> |
| 168 | <phase>test</phase> |
| 169 | <goals> |
| 170 | <goal>exec</goal> |
| 171 | </goals> |
| 172 | <configuration> |
| 173 | <arguments> |
| 174 | <argument>__</argument> |
| 175 | <argument>test</argument> |
| 176 | </arguments> |
| 177 | </configuration> |
| 178 | </execution> |
| 179 | </executions> |
| 180 | </plugin> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 181 | </plugins> |
| 182 | </build> |
Areli, Fuss (af732p) | 3d1b2d2 | 2018-09-13 11:56:36 +0300 | [diff] [blame] | 183 | <distributionManagement> |
| 184 | <repository> |
| 185 | <id>ecomp-releases</id> |
| 186 | <name>Release Repository</name> |
| 187 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 188 | </repository> |
| 189 | <snapshotRepository> |
| 190 | <id>ecomp-snapshots</id> |
| 191 | <name>Snapshot Repository</name> |
| 192 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 193 | </snapshotRepository> |
| 194 | <site> |
| 195 | <id>ecomp-site</id> |
| 196 | <url>dav:${nexus.proxy}${sitePath}</url> |
| 197 | </site> |
| 198 | </distributionManagement> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 199 | </project> |
Areli, Fuss (af732p) | 898f705 | 2018-09-12 16:28:11 +0300 | [diff] [blame] | 200 | |