blob: aaf046160790d4ed0efed57cb9dee00750d67e3f [file] [log] [blame]
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +03001<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)879e94b2018-04-12 16:41:45 +03004
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +03005 <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)879e94b2018-04-12 16:41:45 +030010
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030011 <properties>
12 <!--nexus-->
Areli, Fuss (af732p)3d1b2d22018-09-13 11:56:36 +030013 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030014 <sitePath>/content/sites/site/org/onap/dcae/${project.artifactId}/${project.version}</sitePath>
15 <!--maven-->
16 <timestamp>${maven.build.timestamp}</timestamp>
17 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
18 <!--docker-->
19 <fabric8.version>0.23.0</fabric8.version>
20 <docker.registry>nexus3.onap.org:10001</docker.registry>
21 <docker.username>docker</docker.username>
22 <docker.password>docker</docker.password>
23 <docker.namespace>onap</docker.namespace>
24 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
25 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
26 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
Stone, Avi (as206k)8055d8c2018-05-24 14:26:22 +030027 <sonar.branch>${project.version}</sonar.branch>
28 <sonar.skip>true</sonar.skip>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030029 </properties>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030030
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030031 <build>
32 <plugins>
33 <plugin>
34 <groupId>org.codehaus.mojo</groupId>
35 <artifactId>build-helper-maven-plugin</artifactId>
36 <version>1.8</version>
37 <executions>
38 <execution>
39 <id>parse-version</id>
40 <goals>
41 <goal>parse-version</goal>
42 </goals>
43 </execution>
44 </executions>
45 </plugin>
46 <plugin>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030047 <artifactId>maven-resources-plugin</artifactId>
48 <version>3.0.2</version>
49 <executions>
50 <execution>
51 <id>copy-docker-file</id>
52 <phase>validate</phase>
53 <goals>
54 <goal>copy-resources</goal>
55 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030056 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030057 <outputDirectory>${project.basedir}</outputDirectory>
58 <resources>
59 <resource>
60 <directory>${project.basedir}/docker</directory>
61 <includes>
62 <include>Dockerfile</include>
63 </includes>
64 </resource>
65 </resources>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030066 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030067 </execution>
68 </executions>
69 </plugin>
70 <plugin>
71 <groupId>io.fabric8</groupId>
72 <artifactId>docker-maven-plugin</artifactId>
73 <version>${fabric8.version}</version>
74 <configuration>
75 <verbose>true</verbose>
76 <apiVersion>1.23</apiVersion>
77
78 <registry>${docker.registry}</registry>
79 <authConfig>
80 <pull>
81 <username>${docker.username}</username>
82 <password>${docker.password}</password>
83 </pull>
84 </authConfig>
85
86 <images>
87
88 <image>
89 <name>${docker.namespace}/dcae-tosca-app</name>
90 <alias>dcae-tosca-app</alias>
91 <build>
92 <cleanup>true</cleanup>
93 <tags>
94 <tag>${docker.tag}</tag>
95 <tag>${docker.latest.tag}</tag>
96 <tag>${docker.staging.tag}</tag>
97 </tags>
98 <dockerFileDir>${project.basedir}</dockerFileDir>
99 </build>
100 </image>
101 </images>
102 </configuration>
103
104 <executions>
105 <execution>
106 <id>clean-images</id>
107 <phase>pre-clean</phase>
108 <goals>
109 <goal>remove</goal>
110 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300111 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300112 <removeAll>true</removeAll>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300113 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300114 </execution>
115 <execution>
116 <id>generate-images</id>
117 <phase>install</phase>
118 <goals>
119 <goal>build</goal>
120 </goals>
121 </execution>
122 <execution>
123 <id>push-images</id>
124 <phase>deploy</phase>
125 <goals>
126 <goal>push</goal>
127 </goals>
128 </execution>
129 </executions>
130 </plugin>
131 </plugins>
132 </build>
Areli, Fuss (af732p)3d1b2d22018-09-13 11:56:36 +0300133 <distributionManagement>
134 <repository>
135 <id>ecomp-releases</id>
136 <name>Release Repository</name>
137 <url>${nexus.proxy}/content/repositories/releases/</url>
138 </repository>
139 <snapshotRepository>
140 <id>ecomp-snapshots</id>
141 <name>Snapshot Repository</name>
142 <url>${nexus.proxy}/content/repositories/snapshots/</url>
143 </snapshotRepository>
144 <site>
145 <id>ecomp-site</id>
146 <url>dav:${nexus.proxy}${sitePath}</url>
147 </site>
148 </distributionManagement>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300149</project>
Areli, Fuss (af732p)898f7052018-09-12 16:28:11 +0300150