blob: 116d7df7a7203137a3b81add48b2038b2ed82b73 [file] [log] [blame]
Stone, Avi (as206k)8055d8c2018-05-24 14:26:22 +03001<project
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +03002 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>
Stone, Avi (as206k)8055d8c2018-05-24 14:26:22 +030015 <name>dcae-d tosca-lab</name>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030016
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>
Stone, Avi (as206k)8055d8c2018-05-24 14:26:22 +030027 <sonar.branch>${project.version}</sonar.branch>
28 <sonar.skip>true</sonar.skip>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030029 </properties>
30
31
32 <profiles>
33 <profile>
34 <id>docker</id>
35 <properties>
36 <!-- Docker tags -->
37 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
38 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
39 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
40 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
41 </properties>
42 <activation>
43 <activeByDefault>false</activeByDefault>
44 </activation>
45 <build>
46 <plugins>
47 <plugin>
48 <groupId>org.codehaus.mojo</groupId>
49 <artifactId>build-helper-maven-plugin</artifactId>
50 <version>1.8</version>
51 <executions>
52 <execution>
53 <id>parse-version</id>
54 <goals>
55 <goal>parse-version</goal>
56 </goals>
57 </execution>
58 </executions>
59 </plugin>
60 <plugin>
61 <groupId>org.sonatype.plugins</groupId>
62 <artifactId>nexus-staging-maven-plugin</artifactId>
63 <version>1.6.7</version>
64 <extensions>true</extensions>
65 <configuration>
66 <nexusUrl>${onap.nexus.url}</nexusUrl>
67 <stagingProfileId>176c31dfe190a</stagingProfileId>
68 <serverId>ecomp-staging</serverId>
69 </configuration>
70 </plugin>
71 <plugin>
72 <artifactId>maven-resources-plugin</artifactId>
73 <version>3.0.2</version>
74 <executions>
75 <execution>
76 <id>copy-docker-file</id>
77 <phase>validate</phase>
78 <goals>
79 <goal>copy-resources</goal>
80 </goals>
81 <configuration>
82 <outputDirectory>${project.basedir}</outputDirectory>
83 <resources>
84 <resource>
85 <directory>${project.basedir}/docker</directory>
86 <includes>
87 <include>Dockerfile</include>
88 </includes>
89 </resource>
90 </resources>
91 </configuration>
92 </execution>
93 </executions>
94 </plugin>
95 <plugin>
96 <groupId>io.fabric8</groupId>
97 <artifactId>docker-maven-plugin</artifactId>
98 <version>0.19.1</version>
99 <configuration>
100 <verbose>true</verbose>
101 <apiVersion>1.23</apiVersion>
102 <registry>nexus3.onap.org:10003</registry>
103 <images>
104 <image>
105 <name>onap/dcae-tosca-app</name>
106 <alias>dcae-tosca-app</alias>
107 <build>
108 <cleanup>true</cleanup>
109 <tags>
110 <tag>${docker.tag}</tag>
111 <tag>${docker.latest.tag}</tag>
112 <tag>${docker.staging.tag}</tag>
113 </tags>
114 <dockerFileDir>${project.basedir}</dockerFileDir>
115 </build>
116 </image>
117 </images>
118 </configuration>
119 <executions>
120 <execution>
121 <id>clean-images</id>
122 <phase>pre-clean</phase>
123 <goals>
124 <goal>remove</goal>
125 </goals>
126 <configuration>
127 <removeAll>true</removeAll>
128 </configuration>
129 </execution>
130 <execution>
131 <id>generate-images</id>
132 <phase>package</phase>
133 <goals>
134 <goal>build</goal>
135 </goals>
136 </execution>
137 <execution>
138 <id>push-images</id>
139 <phase>deploy</phase>
140 <goals>
141 <goal>build</goal>
142 <goal>push</goal>
143 </goals>
144 <configuration>
145 <image>onap/dcae-tosca-app</image>
146 </configuration>
147 </execution>
148 </executions>
149 </plugin>
150 </plugins>
151 </build>
152 <distributionManagement>
153 <site>
154 <id>nexus</id>
155 <url>dav:${nexus.url}${sitePath}</url>
156 </site>
157 </distributionManagement>
158 </profile>
159 </profiles>
160</project>