blob: 92207b742a0e2fb68a7ee7cbfba3284da27bd43b [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>
46 <groupId>org.sonatype.plugins</groupId>
47 <artifactId>nexus-staging-maven-plugin</artifactId>
48 <version>1.6.7</version>
49 <extensions>true</extensions>
50 <configuration>
51 <nexusUrl>${onap.nexus.url}</nexusUrl>
52 <stagingProfileId>176c31dfe190a</stagingProfileId>
53 <serverId>ecomp-staging</serverId>
54 </configuration>
55 </plugin>
56 <plugin>
57 <artifactId>maven-resources-plugin</artifactId>
58 <version>3.0.2</version>
59 <executions>
60 <execution>
61 <id>copy-docker-file</id>
62 <phase>validate</phase>
63 <goals>
64 <goal>copy-resources</goal>
65 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030066 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030067 <outputDirectory>${project.basedir}</outputDirectory>
68 <resources>
69 <resource>
70 <directory>${project.basedir}/docker</directory>
71 <includes>
72 <include>Dockerfile</include>
73 </includes>
74 </resource>
75 </resources>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030076 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030077 </execution>
78 </executions>
79 </plugin>
80 <plugin>
81 <groupId>io.fabric8</groupId>
82 <artifactId>docker-maven-plugin</artifactId>
83 <version>${fabric8.version}</version>
84 <configuration>
85 <verbose>true</verbose>
86 <apiVersion>1.23</apiVersion>
87
88 <registry>${docker.registry}</registry>
89 <authConfig>
90 <pull>
91 <username>${docker.username}</username>
92 <password>${docker.password}</password>
93 </pull>
94 </authConfig>
95
96 <images>
97
98 <image>
99 <name>${docker.namespace}/dcae-tosca-app</name>
100 <alias>dcae-tosca-app</alias>
101 <build>
102 <cleanup>true</cleanup>
103 <tags>
104 <tag>${docker.tag}</tag>
105 <tag>${docker.latest.tag}</tag>
106 <tag>${docker.staging.tag}</tag>
107 </tags>
108 <dockerFileDir>${project.basedir}</dockerFileDir>
109 </build>
110 </image>
111 </images>
112 </configuration>
113
114 <executions>
115 <execution>
116 <id>clean-images</id>
117 <phase>pre-clean</phase>
118 <goals>
119 <goal>remove</goal>
120 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300121 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300122 <removeAll>true</removeAll>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300123 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300124 </execution>
125 <execution>
126 <id>generate-images</id>
127 <phase>install</phase>
128 <goals>
129 <goal>build</goal>
130 </goals>
131 </execution>
132 <execution>
133 <id>push-images</id>
134 <phase>deploy</phase>
135 <goals>
136 <goal>push</goal>
137 </goals>
138 </execution>
139 </executions>
140 </plugin>
141 </plugins>
142 </build>
143 <distributionManagement>
144 <site>
145 <id>nexus</id>
146 <url>dav:${nexus.url}${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