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