Fix pom for docker files
[sdc/dcae-d/dt-be-main.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project
3     xmlns="http://maven.apache.org/POM/4.0.0"
4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6     <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
7     <artifactId>dcae_dt_be_main</artifactId>
8     <version>1.2.0-SNAPSHOT</version>
9     <packaging>pom</packaging>
10
11     <parent>
12         <groupId>org.springframework.boot</groupId>
13         <artifactId>spring-boot-starter-parent</artifactId>
14         <version>1.5.9.RELEASE</version>
15         <relativePath/>
16         <!-- lookup parent from repository -->
17     </parent>
18
19     <dependencies>
20         <dependency>
21             <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
22             <artifactId>DCAE-DT-PROPERTY</artifactId>
23             <version>1.2.0-SNAPSHOT</version>
24             <exclusions>
25                 <exclusion>
26                     <groupId>org.slf4j</groupId>
27                     <artifactId>slf4j-api</artifactId>
28                 </exclusion>
29                 <exclusion>
30                     <groupId>log4j</groupId>
31                     <artifactId>log4j</artifactId>
32                 </exclusion>
33             </exclusions>
34         </dependency>
35     </dependencies>
36
37     <properties>
38         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40         <java.version>1.8</java.version>
41         <nexus.proxy>https://nexus.onap.org</nexus.proxy>
42         <staging.profile.id>176c31dfe190a</staging.profile.id>
43     </properties>
44     <build>
45         <plugins>
46             <plugin>
47                 <groupId>org.jacoco</groupId>
48                 <artifactId>jacoco-maven-plugin</artifactId>
49                 <version>0.7.9</version>
50                 <executions>
51                     <execution>
52                         <id>default-prepare-agent</id>
53                         <goals>
54                             <goal>prepare-agent</goal>
55                         </goals>
56                     </execution>
57                     <execution>
58                         <id>default-report</id>
59                         <goals>
60                             <goal>report</goal>
61                         </goals>
62                     </execution>
63                 </executions>
64             </plugin>
65             <!-- Site Plugin -->
66                         <plugin>
67                                 <groupId>org.apache.maven.plugins</groupId>
68                                 <artifactId>maven-site-plugin</artifactId>
69                                 <version>3.4</version>
70                                 <dependencies>
71                                         <dependency>
72                                                 <groupId>org.apache.maven.wagon</groupId>
73                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
74                                                 <version>2.10</version>
75                                         </dependency>
76                                 </dependencies>
77                         </plugin>
78                         <!-- Staging Plugin -->
79                         <plugin>
80                                 <groupId>org.sonatype.plugins</groupId>
81                                 <artifactId>nexus-staging-maven-plugin</artifactId>
82                                 <version>1.6.7</version>
83                                 <extensions>true</extensions>
84                                 <configuration>
85                                         <nexusUrl>${nexus.proxy}</nexusUrl>
86                                         <stagingProfileId>${staging.profile.id}</stagingProfileId>
87                                         <serverId>ecomp-staging</serverId>
88                                 </configuration>
89                         </plugin>
90         </plugins>
91     </build>
92     <profiles>
93         <profile>
94             <id>all</id>
95             <activation>
96                 <activeByDefault>true</activeByDefault>
97             </activation>
98             <modules>
99                 <module>dcaedt_validator</module>
100                 <module>dcaedt_catalog</module>
101                 <module>dcaedt_be</module>
102                 <module>dcaedt_tools</module>
103             </modules>
104         </profile>
105         <profile>
106             <id>docker</id>
107             <properties>
108                 <!-- Docker tags -->
109                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
110                 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
111                 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
112                 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
113             </properties>
114             <activation>
115                 <activeByDefault>false</activeByDefault>
116             </activation>
117             <build>
118                 <plugins>
119                     <plugin>
120                         <groupId>org.codehaus.mojo</groupId>
121                         <artifactId>build-helper-maven-plugin</artifactId>
122                         <version>1.8</version>
123                         <executions>
124                             <execution>
125                                 <id>parse-version</id>
126                                 <goals>
127                                     <goal>parse-version</goal>
128                                 </goals>
129                             </execution>
130                         </executions>
131                     </plugin>
132                 </plugins>
133             </build>
134          </profile>
135     </profiles>
136     <repositories>
137         <!-- LF repositories -->
138         <repository>
139             <id>ecomp-releases</id>
140             <name>Release Repository</name>
141             <url>${nexus.proxy}/content/repositories/releases/</url>
142         </repository>
143         <repository>
144             <id>ecomp-snapshots</id>
145             <name>Snapshots Repository</name>
146             <url>${nexus.proxy}/content/repositories/snapshots/</url>
147         </repository>
148         <repository>
149             <id>ecomp-public</id>
150             <name>Public Repository</name>
151             <url>${nexus.proxy}/content/repositories/public/</url>
152         </repository>
153         <!-- LF repositories END-->
154     </repositories>
155
156     <distributionManagement>
157         <repository>
158             <id>ecomp-releases</id>
159             <name>Release Repository</name>
160             <url>${nexus.proxy}/content/repositories/releases/</url>
161         </repository>
162         <snapshotRepository>
163             <id>ecomp-snapshots</id>
164             <name>Snapshot Repository</name>
165             <url>${nexus.proxy}/content/repositories/snapshots/</url>
166         </snapshotRepository>
167         <site>
168             <id>ecomp-site</id>
169             <url>dav:${nexus.proxy}${sitePath}</url>
170         </site>
171     </distributionManagement>
172 </project>