blob: f706f8b25c30a43d045ad85208678017aa816bcd [file] [log] [blame]
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +03001<project
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>
5 <parent>
6 <groupId>org.onap.oparent</groupId>
7 <artifactId>oparent</artifactId>
8 <version>1.0.0-SNAPSHOT</version>
9 </parent>
10
11 <groupId>org.onap.dcae.dcae-tosca-app </groupId>
12 <artifactId>dcae-tosca-app</artifactId>
13 <packaging>pom</packaging>
14 <version>1.0.0-SNAPSHOT</version>
15 <name>dcae-tosca-app</name>
16
17 <properties>
18 <!--nexus-->
19 <sitePath>/content/sites/site/org/onap/dcae/${project.artifactId}/${project.version}</sitePath>
20 <!--maven-->
21 <timestamp>${maven.build.timestamp}</timestamp>
22 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
23 <!--docker-->
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>
27 </properties>
28
29
30 <profiles>
31 <profile>
32 <id>docker</id>
33 <properties>
34 <!-- Docker tags -->
35 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
36 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
37 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
38 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
39 </properties>
40 <activation>
41 <activeByDefault>false</activeByDefault>
42 </activation>
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>
96 <version>0.19.1</version>
97 <configuration>
98 <verbose>true</verbose>
99 <apiVersion>1.23</apiVersion>
100 <registry>nexus3.onap.org:10003</registry>
101 <images>
102 <image>
103 <name>onap/dcae-tosca-app</name>
104 <alias>dcae-tosca-app</alias>
105 <build>
106 <cleanup>true</cleanup>
107 <tags>
108 <tag>${docker.tag}</tag>
109 <tag>${docker.latest.tag}</tag>
110 <tag>${docker.staging.tag}</tag>
111 </tags>
112 <dockerFileDir>${project.basedir}</dockerFileDir>
113 </build>
114 </image>
115 </images>
116 </configuration>
117 <executions>
118 <execution>
119 <id>clean-images</id>
120 <phase>pre-clean</phase>
121 <goals>
122 <goal>remove</goal>
123 </goals>
124 <configuration>
125 <removeAll>true</removeAll>
126 </configuration>
127 </execution>
128 <execution>
129 <id>generate-images</id>
130 <phase>package</phase>
131 <goals>
132 <goal>build</goal>
133 </goals>
134 </execution>
135 <execution>
136 <id>push-images</id>
137 <phase>deploy</phase>
138 <goals>
139 <goal>build</goal>
140 <goal>push</goal>
141 </goals>
142 <configuration>
143 <image>onap/dcae-tosca-app</image>
144 </configuration>
145 </execution>
146 </executions>
147 </plugin>
148 </plugins>
149 </build>
150 <distributionManagement>
151 <site>
152 <id>nexus</id>
153 <url>dav:${nexus.url}${sitePath}</url>
154 </site>
155 </distributionManagement>
156 </profile>
157 </profiles>
158</project>
159