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) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 5 | <groupId>org.onap.dcae.dcae-tosca-app</groupId> |
| 6 | <artifactId>dcae-tosca-app</artifactId> |
| 7 | <packaging>pom</packaging> |
| 8 | <version>1.3.0-SNAPSHOT</version> |
| 9 | <name>dcae-d 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> |
Stone, Avi (as206k) | 8055d8c | 2018-05-24 14:26:22 +0300 | [diff] [blame] | 28 | <sonar.branch>${project.version}</sonar.branch> |
| 29 | <sonar.skip>true</sonar.skip> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 30 | </properties> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 31 | |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 32 | <build> |
| 33 | <plugins> |
| 34 | <plugin> |
| 35 | <groupId>org.codehaus.mojo</groupId> |
| 36 | <artifactId>build-helper-maven-plugin</artifactId> |
| 37 | <version>1.8</version> |
| 38 | <executions> |
| 39 | <execution> |
| 40 | <id>parse-version</id> |
| 41 | <goals> |
| 42 | <goal>parse-version</goal> |
| 43 | </goals> |
| 44 | </execution> |
| 45 | </executions> |
| 46 | </plugin> |
| 47 | <plugin> |
Areli, Fuss (af732p) | f2339c6 | 2018-09-13 13:56:15 +0300 | [diff] [blame^] | 48 | <groupId>org.sonatype.plugins</groupId> |
| 49 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 50 | <version>1.6.7</version> |
| 51 | <extensions>true</extensions> |
| 52 | <configuration> |
| 53 | <nexusUrl>${nexus.proxy}</nexusUrl> |
| 54 | <stagingProfileId>${staging.profile.id}</stagingProfileId> |
| 55 | <serverId>ecomp-staging</serverId> |
| 56 | </configuration> |
| 57 | </plugin> |
| 58 | <plugin> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 59 | <artifactId>maven-resources-plugin</artifactId> |
| 60 | <version>3.0.2</version> |
| 61 | <executions> |
| 62 | <execution> |
| 63 | <id>copy-docker-file</id> |
| 64 | <phase>validate</phase> |
| 65 | <goals> |
| 66 | <goal>copy-resources</goal> |
| 67 | </goals> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 68 | <configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 69 | <outputDirectory>${project.basedir}</outputDirectory> |
| 70 | <resources> |
| 71 | <resource> |
| 72 | <directory>${project.basedir}/docker</directory> |
| 73 | <includes> |
| 74 | <include>Dockerfile</include> |
| 75 | </includes> |
| 76 | </resource> |
| 77 | </resources> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 78 | </configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 79 | </execution> |
| 80 | </executions> |
| 81 | </plugin> |
| 82 | <plugin> |
| 83 | <groupId>io.fabric8</groupId> |
| 84 | <artifactId>docker-maven-plugin</artifactId> |
| 85 | <version>${fabric8.version}</version> |
| 86 | <configuration> |
| 87 | <verbose>true</verbose> |
| 88 | <apiVersion>1.23</apiVersion> |
| 89 | |
| 90 | <registry>${docker.registry}</registry> |
| 91 | <authConfig> |
| 92 | <pull> |
| 93 | <username>${docker.username}</username> |
| 94 | <password>${docker.password}</password> |
| 95 | </pull> |
| 96 | </authConfig> |
| 97 | |
| 98 | <images> |
| 99 | |
| 100 | <image> |
| 101 | <name>${docker.namespace}/dcae-tosca-app</name> |
| 102 | <alias>dcae-tosca-app</alias> |
| 103 | <build> |
| 104 | <cleanup>true</cleanup> |
| 105 | <tags> |
| 106 | <tag>${docker.tag}</tag> |
| 107 | <tag>${docker.latest.tag}</tag> |
| 108 | <tag>${docker.staging.tag}</tag> |
| 109 | </tags> |
| 110 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 111 | </build> |
| 112 | </image> |
| 113 | </images> |
| 114 | </configuration> |
| 115 | |
| 116 | <executions> |
| 117 | <execution> |
| 118 | <id>clean-images</id> |
| 119 | <phase>pre-clean</phase> |
| 120 | <goals> |
| 121 | <goal>remove</goal> |
| 122 | </goals> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 123 | <configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 124 | <removeAll>true</removeAll> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 125 | </configuration> |
Areli, Fuss (af732p) | ecb4741 | 2018-09-12 17:58:29 +0300 | [diff] [blame] | 126 | </execution> |
| 127 | <execution> |
| 128 | <id>generate-images</id> |
| 129 | <phase>install</phase> |
| 130 | <goals> |
| 131 | <goal>build</goal> |
| 132 | </goals> |
| 133 | </execution> |
| 134 | <execution> |
| 135 | <id>push-images</id> |
| 136 | <phase>deploy</phase> |
| 137 | <goals> |
| 138 | <goal>push</goal> |
| 139 | </goals> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | </plugin> |
| 143 | </plugins> |
| 144 | </build> |
Areli, Fuss (af732p) | 3d1b2d2 | 2018-09-13 11:56:36 +0300 | [diff] [blame] | 145 | <distributionManagement> |
| 146 | <repository> |
| 147 | <id>ecomp-releases</id> |
| 148 | <name>Release Repository</name> |
| 149 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 150 | </repository> |
| 151 | <snapshotRepository> |
| 152 | <id>ecomp-snapshots</id> |
| 153 | <name>Snapshot Repository</name> |
| 154 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 155 | </snapshotRepository> |
| 156 | <site> |
| 157 | <id>ecomp-site</id> |
| 158 | <url>dav:${nexus.proxy}${sitePath}</url> |
| 159 | </site> |
| 160 | </distributionManagement> |
Stone, Avi (as206k) | 879e94b | 2018-04-12 16:41:45 +0300 | [diff] [blame] | 161 | </project> |
Areli, Fuss (af732p) | 898f705 | 2018-09-12 16:28:11 +0300 | [diff] [blame] | 162 | |