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