remove nexus statging and jar plugins
[dmaap/kafka11aaf.git] / pom.xml
1 <!-- ============LICENSE_START======================================================= 
2         org.onap.dmaap ================================================================================ 
3         Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================ 
4         Licensed under the Apache License, Version 2.0 (the "License"); you may not 
5         use this file except in compliance with the License. You may obtain a copy 
6         of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
7         by applicable law or agreed to in writing, software distributed under the 
8         License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
9         OF ANY KIND, either express or implied. See the License for the specific 
10         language governing permissions and limitations under the License. ============LICENSE_END========================================================= 
11         ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14         <modelVersion>4.0.0</modelVersion>
15
16         <parent>
17                 <groupId>org.onap.oparent</groupId>
18                 <artifactId>oparent</artifactId>
19                 <version>1.1.0</version>
20         </parent>
21
22         <groupId>org.onap.dmaap.kafka</groupId>
23         <artifactId>kafka11aaf</artifactId>
24         <version>1.0.0-SNAPSHOT</version>
25         <name>kafka11aaf</name>
26         <licenses>
27                 <license>
28                         <name>Apache License Version 2.0</name>
29                 </license>
30         </licenses>
31
32         <developers>
33                 <developer>
34                         <name>Sunil Unnava</name>
35                         <email></email>
36                         <organization>ATT</organization>
37                         <organizationUrl>www.att.com</organizationUrl>
38                 </developer>
39         </developers>
40
41         <build>
42                 <plugins>
43                         <plugin>
44                                 <groupId>org.apache.maven.plugins</groupId>
45                                 <artifactId>maven-site-plugin</artifactId>
46                                 <version>3.6</version>
47                                 <dependencies>
48                                         <dependency>
49                                                 <groupId>org.apache.maven.wagon</groupId>
50                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
51                                                 <version>2.10</version>
52                                         </dependency>
53                                 </dependencies>
54                         </plugin>
55
56                         <!-- <plugin>
57                                 <groupId>org.apache.maven.plugins</groupId>
58                                 <artifactId>maven-jar-plugin</artifactId>
59                                 <version>3.0.2</version>
60                         </plugin> -->
61
62                         <plugin>
63                                 <groupId>org.apache.maven.plugins</groupId>
64                                 <artifactId>maven-source-plugin</artifactId>
65                                 <version>3.0.0</version>
66                                 <executions>
67                                         <execution>
68                                                 <id>attach-sources</id>
69                                                 <goals>
70                                                         <goal>jar-no-fork</goal>
71                                                 </goals>
72                                         </execution>
73                                 </executions>
74                         </plugin>
75                         <plugin>
76                                 <groupId>org.apache.maven.plugins</groupId>
77                                 <artifactId>maven-release-plugin</artifactId>
78                                 <version>2.5.3</version>
79                                 <configuration>
80                                         <autoVersionSubmodules>true</autoVersionSubmodules>
81                                         <checkModificationExcludes>
82                                         </checkModificationExcludes>
83                                 </configuration>
84                                 <dependencies>
85                                         <dependency>
86                                                 <groupId>org.apache.maven.scm</groupId>
87                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
88                                                 <version>1.9.4</version>
89                                         </dependency>
90                                 </dependencies>
91                         </plugin>
92
93         <plugin>
94                 <!-- Disable Sonatype Nexus Extensions for Wren Security's Repo -->
95                 <groupId>org.sonatype.plugins</groupId>
96                 <artifactId>nexus-staging-maven-plugin</artifactId>
97                 <extensions>false</extensions>
98                 <executions>
99                         <execution>
100                                 <id>injected-nexus-deploy</id>
101                                 <phase>none</phase>
102                         </execution>
103                 </executions>
104         </plugin>
105
106                         <plugin>
107                                 <groupId>com.spotify</groupId>
108                                 <artifactId>docker-maven-plugin</artifactId>
109                                 <version>1.0.0</version>
110                                 <configuration>
111                                         <imageName>onap/dmaap/kafka01101</imageName>
112                                         <dockerDirectory>src/main/docker</dockerDirectory>
113                                         <serverId>docker-hub</serverId>
114                                         <imageTags>
115                                                 <imageTag>${KafkaImg}</imageTag>
116                                                 <imageTag>latest</imageTag>
117                                         </imageTags>
118                                         <forceTags>true</forceTags>
119                                         <resources>
120                                                 <!-- <resource> <targetPath>/</targetPath> <directory>${dockerLocation}</directory> 
121                                                         <include>${project.build.finalName}.jar</include> </resource> -->
122                                                 <resource>
123                                                         <targetPath>/</targetPath>
124                                                         <directory>${project.build.directory}</directory>
125                                                         <include>**/**</include>
126                                                 </resource>
127                                         </resources>
128                                 </configuration>
129                                 <executions>
130                                         <execution>
131                                                 <id>build-image</id>
132                                                 <phase>install</phase>
133                                                 <goals>
134                                                         <goal>build</goal>
135                                                 </goals>
136                                                 <configuration>
137                                                         <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
138                                                 </configuration>
139                                         </execution>
140
141                                         <execution>
142                                                 <id>tag-image-project-version</id>
143                                                 <phase>install</phase>
144                                                 <goals>
145                                                         <goal>tag</goal>
146                                                 </goals>
147                                                 <configuration>
148                                                         <image>onap/dmaap/kafka01101</image>
149                                                         <newName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</newName>
150                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
151                                                 </configuration>
152                                         </execution>
153
154                                         <execution>
155                                                 <id>tag-image-latest</id>
156                                                 <phase>install</phase>
157                                                 <goals>
158                                                         <goal>tag</goal>
159                                                 </goals>
160                                                 <configuration>
161                                                         <image>onap/dmaap/kafka01101</image>
162                                                         <newName>${docker.push.registry}/onap/dmaap/kafka01101:latest</newName>
163                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
164                                                 </configuration>
165                                         </execution>
166
167                                         <execution>
168                                                 <id>push-image</id>
169                                                 <phase>deploy</phase>
170                                                 <goals>
171                                                         <goal>push</goal>
172                                                 </goals>
173                                                 <configuration>
174                                                         <imageName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</imageName>
175                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
176                                                 </configuration>
177                                         </execution>
178
179                                         <execution>
180                                                 <id>push-image-latest</id>
181                                                 <phase>deploy</phase>
182                                                 <goals>
183                                                         <goal>push</goal>
184                                                 </goals>
185                                                 <configuration>
186                                                         <imageName>${docker.push.registry}/onap/dmaap/kafka01101:latest</imageName>
187                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
188                                                 </configuration>
189                                         </execution>
190                                 </executions>
191                         </plugin>
192
193                 </plugins>
194         </build>
195
196         <properties>
197                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
198                 <KafkaImg>0.0.1</KafkaImg>
199                 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
200                 <skip.docker.build>true</skip.docker.build>
201                 <skip.docker.push>true</skip.docker.push>
202                 <nexusproxy>https://nexus.onap.org</nexusproxy>
203                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
204         </properties>
205
206         <!-- Distribution management -->
207         <distributionManagement>
208                 <site>
209                         <id>ecomp-site</id>
210                         <url>dav:${nexusproxy}${sitePath}</url>
211                 </site>
212         </distributionManagement>
213
214         <dependencies>
215         </dependencies>
216
217         <profiles>
218                 <profile>
219                         <id>docker</id>
220                         <properties>
221                                 <skip.docker.build>false</skip.docker.build>
222                                 <skip.docker.tag>false</skip.docker.tag>
223                                 <skip.docker.push>false</skip.docker.push>
224                         </properties>
225                 </profile>
226
227         </profiles>
228
229 </project>