blob: a5a4e9f08f70fa513e0e4cb4d09b9fd55cd2ad8c [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)6af16802018-09-13 15:00:09 +03005 <groupId>org.onap.sdc.dcae-d.tosca-lab</groupId>
6 <artifactId>dcae-tosca-lab</artifactId>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +03007 <packaging>pom</packaging>
8 <version>1.3.0-SNAPSHOT</version>
Areli, Fuss (af732p)6af16802018-09-13 15:00:09 +03009 <name>dcae-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>
Areli, Fuss (af732p)f2339c62018-09-13 13:56:15 +030015 <staging.profile.id>176c31dfe190a</staging.profile.id>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030016 <!--maven-->
17 <timestamp>${maven.build.timestamp}</timestamp>
18 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
19 <!--docker-->
20 <fabric8.version>0.23.0</fabric8.version>
21 <docker.registry>nexus3.onap.org:10001</docker.registry>
22 <docker.username>docker</docker.username>
23 <docker.password>docker</docker.password>
24 <docker.namespace>onap</docker.namespace>
25 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
26 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
27 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
Betzer, Rony (rb844h)2236f9d2018-10-04 16:47:13 +030028 <!--sonar-->
29 <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
Betzer, Rony (rb844h)faa922c2018-10-17 13:55:49 +030030 <sonar.sources>app/toscalib/</sonar.sources>
Betzer, Rony (rb844h)2236f9d2018-10-04 16:47:13 +030031 <sonar.python.coverage.reportPath>app/coverage.xml</sonar.python.coverage.reportPath>
32 <sonar.language>py</sonar.language>
33 <sonar.pluginName>python</sonar.pluginName>
34 <sonar.exclusions>app/tests/*.py</sonar.exclusions>
Stone, Avi (as206k)8055d8c2018-05-24 14:26:22 +030035 <sonar.branch>${project.version}</sonar.branch>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030036 </properties>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030037
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030038 <build>
Betzer, Rony (rb844h)2236f9d2018-10-04 16:47:13 +030039 <pluginManagement>
40 <plugins>
41 <plugin>
42 <groupId>org.codehaus.mojo</groupId>
43 <artifactId>exec-maven-plugin</artifactId>
44 <version>1.2.1</version>
45 <configuration>
46 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
47 </configuration>
48 </plugin>
49 </plugins>
50 </pluginManagement>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030051 <plugins>
52 <plugin>
53 <groupId>org.codehaus.mojo</groupId>
54 <artifactId>build-helper-maven-plugin</artifactId>
55 <version>1.8</version>
56 <executions>
57 <execution>
58 <id>parse-version</id>
59 <goals>
60 <goal>parse-version</goal>
61 </goals>
62 </execution>
63 </executions>
64 </plugin>
65 <plugin>
Areli, Fuss (af732p)f2339c62018-09-13 13:56:15 +030066 <groupId>org.sonatype.plugins</groupId>
67 <artifactId>nexus-staging-maven-plugin</artifactId>
68 <version>1.6.7</version>
69 <extensions>true</extensions>
70 <configuration>
71 <nexusUrl>${nexus.proxy}</nexusUrl>
72 <stagingProfileId>${staging.profile.id}</stagingProfileId>
73 <serverId>ecomp-staging</serverId>
74 </configuration>
75 </plugin>
76 <plugin>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030077 <artifactId>maven-resources-plugin</artifactId>
78 <version>3.0.2</version>
79 <executions>
80 <execution>
81 <id>copy-docker-file</id>
82 <phase>validate</phase>
83 <goals>
84 <goal>copy-resources</goal>
85 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030086 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030087 <outputDirectory>${project.basedir}</outputDirectory>
88 <resources>
89 <resource>
90 <directory>${project.basedir}/docker</directory>
91 <includes>
92 <include>Dockerfile</include>
93 </includes>
94 </resource>
95 </resources>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030096 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030097 </execution>
98 </executions>
99 </plugin>
100 <plugin>
101 <groupId>io.fabric8</groupId>
102 <artifactId>docker-maven-plugin</artifactId>
103 <version>${fabric8.version}</version>
104 <configuration>
105 <verbose>true</verbose>
106 <apiVersion>1.23</apiVersion>
107
108 <registry>${docker.registry}</registry>
109 <authConfig>
110 <pull>
111 <username>${docker.username}</username>
112 <password>${docker.password}</password>
113 </pull>
114 </authConfig>
115
116 <images>
117
118 <image>
119 <name>${docker.namespace}/dcae-tosca-app</name>
120 <alias>dcae-tosca-app</alias>
121 <build>
122 <cleanup>true</cleanup>
123 <tags>
124 <tag>${docker.tag}</tag>
125 <tag>${docker.latest.tag}</tag>
126 <tag>${docker.staging.tag}</tag>
127 </tags>
128 <dockerFileDir>${project.basedir}</dockerFileDir>
129 </build>
130 </image>
131 </images>
132 </configuration>
133
134 <executions>
135 <execution>
136 <id>clean-images</id>
137 <phase>pre-clean</phase>
138 <goals>
139 <goal>remove</goal>
140 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300141 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300142 <removeAll>true</removeAll>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300143 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300144 </execution>
145 <execution>
146 <id>generate-images</id>
147 <phase>install</phase>
148 <goals>
149 <goal>build</goal>
150 </goals>
151 </execution>
152 <execution>
153 <id>push-images</id>
154 <phase>deploy</phase>
155 <goals>
156 <goal>push</goal>
157 </goals>
158 </execution>
159 </executions>
160 </plugin>
Betzer, Rony (rb844h)2236f9d2018-10-04 16:47:13 +0300161 <plugin>
162 <groupId>org.codehaus.mojo</groupId>
163 <artifactId>exec-maven-plugin</artifactId>
164 <version>1.2.1</version>
165 <executions>
166 <execution>
167 <id>test script</id>
168 <phase>test</phase>
169 <goals>
170 <goal>exec</goal>
171 </goals>
172 <configuration>
173 <arguments>
174 <argument>__</argument>
175 <argument>test</argument>
176 </arguments>
177 </configuration>
178 </execution>
179 </executions>
180 </plugin>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300181 </plugins>
182 </build>
Areli, Fuss (af732p)3d1b2d22018-09-13 11:56:36 +0300183 <distributionManagement>
184 <repository>
185 <id>ecomp-releases</id>
186 <name>Release Repository</name>
187 <url>${nexus.proxy}/content/repositories/releases/</url>
188 </repository>
189 <snapshotRepository>
190 <id>ecomp-snapshots</id>
191 <name>Snapshot Repository</name>
192 <url>${nexus.proxy}/content/repositories/snapshots/</url>
193 </snapshotRepository>
194 <site>
195 <id>ecomp-site</id>
196 <url>dav:${nexus.proxy}${sitePath}</url>
197 </site>
198 </distributionManagement>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300199</project>
Areli, Fuss (af732p)898f7052018-09-12 16:28:11 +0300200