blob: d9ee0cca654378fcb72dfaa6c21f971c6bcbcb23 [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>
30 <sonar.sources>.</sonar.sources>
31 <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>
36 <sonar.skip>true</sonar.skip>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030037 </properties>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030038
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030039 <build>
Betzer, Rony (rb844h)2236f9d2018-10-04 16:47:13 +030040 <pluginManagement>
41 <plugins>
42 <plugin>
43 <groupId>org.codehaus.mojo</groupId>
44 <artifactId>exec-maven-plugin</artifactId>
45 <version>1.2.1</version>
46 <configuration>
47 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
48 </configuration>
49 </plugin>
50 </plugins>
51 </pluginManagement>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030052 <plugins>
53 <plugin>
54 <groupId>org.codehaus.mojo</groupId>
55 <artifactId>build-helper-maven-plugin</artifactId>
56 <version>1.8</version>
57 <executions>
58 <execution>
59 <id>parse-version</id>
60 <goals>
61 <goal>parse-version</goal>
62 </goals>
63 </execution>
64 </executions>
65 </plugin>
66 <plugin>
Areli, Fuss (af732p)f2339c62018-09-13 13:56:15 +030067 <groupId>org.sonatype.plugins</groupId>
68 <artifactId>nexus-staging-maven-plugin</artifactId>
69 <version>1.6.7</version>
70 <extensions>true</extensions>
71 <configuration>
72 <nexusUrl>${nexus.proxy}</nexusUrl>
73 <stagingProfileId>${staging.profile.id}</stagingProfileId>
74 <serverId>ecomp-staging</serverId>
75 </configuration>
76 </plugin>
77 <plugin>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030078 <artifactId>maven-resources-plugin</artifactId>
79 <version>3.0.2</version>
80 <executions>
81 <execution>
82 <id>copy-docker-file</id>
83 <phase>validate</phase>
84 <goals>
85 <goal>copy-resources</goal>
86 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030087 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030088 <outputDirectory>${project.basedir}</outputDirectory>
89 <resources>
90 <resource>
91 <directory>${project.basedir}/docker</directory>
92 <includes>
93 <include>Dockerfile</include>
94 </includes>
95 </resource>
96 </resources>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +030097 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +030098 </execution>
99 </executions>
100 </plugin>
101 <plugin>
102 <groupId>io.fabric8</groupId>
103 <artifactId>docker-maven-plugin</artifactId>
104 <version>${fabric8.version}</version>
105 <configuration>
106 <verbose>true</verbose>
107 <apiVersion>1.23</apiVersion>
108
109 <registry>${docker.registry}</registry>
110 <authConfig>
111 <pull>
112 <username>${docker.username}</username>
113 <password>${docker.password}</password>
114 </pull>
115 </authConfig>
116
117 <images>
118
119 <image>
120 <name>${docker.namespace}/dcae-tosca-app</name>
121 <alias>dcae-tosca-app</alias>
122 <build>
123 <cleanup>true</cleanup>
124 <tags>
125 <tag>${docker.tag}</tag>
126 <tag>${docker.latest.tag}</tag>
127 <tag>${docker.staging.tag}</tag>
128 </tags>
129 <dockerFileDir>${project.basedir}</dockerFileDir>
130 </build>
131 </image>
132 </images>
133 </configuration>
134
135 <executions>
136 <execution>
137 <id>clean-images</id>
138 <phase>pre-clean</phase>
139 <goals>
140 <goal>remove</goal>
141 </goals>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300142 <configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300143 <removeAll>true</removeAll>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300144 </configuration>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300145 </execution>
146 <execution>
147 <id>generate-images</id>
148 <phase>install</phase>
149 <goals>
150 <goal>build</goal>
151 </goals>
152 </execution>
153 <execution>
154 <id>push-images</id>
155 <phase>deploy</phase>
156 <goals>
157 <goal>push</goal>
158 </goals>
159 </execution>
160 </executions>
161 </plugin>
Betzer, Rony (rb844h)2236f9d2018-10-04 16:47:13 +0300162 <plugin>
163 <groupId>org.codehaus.mojo</groupId>
164 <artifactId>exec-maven-plugin</artifactId>
165 <version>1.2.1</version>
166 <executions>
167 <execution>
168 <id>test script</id>
169 <phase>test</phase>
170 <goals>
171 <goal>exec</goal>
172 </goals>
173 <configuration>
174 <arguments>
175 <argument>__</argument>
176 <argument>test</argument>
177 </arguments>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
Areli, Fuss (af732p)ecb47412018-09-12 17:58:29 +0300182 </plugins>
183 </build>
Areli, Fuss (af732p)3d1b2d22018-09-13 11:56:36 +0300184 <distributionManagement>
185 <repository>
186 <id>ecomp-releases</id>
187 <name>Release Repository</name>
188 <url>${nexus.proxy}/content/repositories/releases/</url>
189 </repository>
190 <snapshotRepository>
191 <id>ecomp-snapshots</id>
192 <name>Snapshot Repository</name>
193 <url>${nexus.proxy}/content/repositories/snapshots/</url>
194 </snapshotRepository>
195 <site>
196 <id>ecomp-site</id>
197 <url>dav:${nexus.proxy}${sitePath}</url>
198 </site>
199 </distributionManagement>
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +0300200</project>
Areli, Fuss (af732p)898f7052018-09-12 16:28:11 +0300201