75f96fb4322a408b10a82e91af33b117b1022740
[oparent.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (c) 2016-2017 Huawei Technologies Co., Ltd.
4    Modifications copyright (C) 2017 AT&T Intellectual Property
5
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 -->
18 <project xmlns="http://maven.apache.org/POM/4.0.0" 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">
19   <modelVersion>4.0.0</modelVersion>
20   <name>oparent</name>
21   <groupId>org.onap.oparent</groupId>
22   <artifactId>version</artifactId>
23   <version>1.1.0-SNAPSHOT</version>
24   <packaging>pom</packaging>
25   <modules>
26     <!-- oparent tools -->
27     <module>checkstyle</module>
28     <module>license</module>
29     <module>oparent</module>
30     <module>oparent-python</module>
31   </modules>
32   <properties>
33     <maven.compiler.source>1.8</maven.compiler.source>
34     <maven.compiler.target>1.8</maven.compiler.target>
35     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37     <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
38     <!-- sitePath may be overridden in the inheriting POM if desired -->
39     <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40     <!-- properties for Nexus raw repo -->
41     <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
42     <onap.nexus.rawrepo.baseurl.download>
43       https://nexus.onap.org/service/local/repositories/raw/content
44     </onap.nexus.rawrepo.baseurl.download>
45     <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
46     <!-- properties for Nexus Docker registry -->
47     <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
48     <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
49   </properties>
50   <distributionManagement>
51     <repository>
52       <id>ecomp-releases</id>
53       <url>${onap.nexus.url}/content/repositories/releases</url>
54     </repository>
55     <snapshotRepository>
56       <id>ecomp-snapshots</id>
57       <url>${onap.nexus.url}/content/repositories/snapshots</url>
58     </snapshotRepository>
59   </distributionManagement>
60   <build>
61     <pluginManagement>
62       <plugins>
63         <plugin>
64           <groupId>org.sonatype.plugins</groupId>
65           <artifactId>nexus-staging-maven-plugin</artifactId>
66           <version>1.6.7</version>
67           <extensions>true</extensions>
68           <configuration>
69             <nexusUrl>${onap.nexus.url}</nexusUrl>
70             <stagingProfileId>176c31dfe190a</stagingProfileId>
71             <serverId>ecomp-staging</serverId>
72           </configuration>
73         </plugin>
74         <plugin>
75           <groupId>org.apache.maven.plugins</groupId>
76           <artifactId>maven-deploy-plugin</artifactId>
77           <!-- This version supports the "deployAtEnd" parameter -->
78           <version>2.8</version>
79           <configuration>
80             <skip/>
81           </configuration>
82         </plugin>
83         <plugin>
84           <groupId>org.apache.maven.plugins</groupId>
85           <artifactId>maven-site-plugin</artifactId>
86           <version>3.6</version>
87           <dependencies>
88             <dependency>
89               <groupId>org.apache.maven.wagon</groupId>
90               <artifactId>wagon-webdav-jackrabbit</artifactId>
91               <version>2.10</version>
92             </dependency>
93           </dependencies>
94         </plugin>
95         <plugin>
96           <groupId>org.apache.maven.plugins</groupId>
97           <artifactId>maven-enforcer-plugin</artifactId>
98           <version>3.0.0-M1</version>
99           <executions>
100             <execution>
101               <id>enforce-no-snapshots</id>
102               <goals>
103                 <goal>enforce</goal>
104               </goals>
105               <configuration>
106                 <rules>
107                   <requireReleaseDeps>
108                     <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
109                     <onlyWhenRelease>true</onlyWhenRelease>
110                     <level>ERROR</level>
111                   </requireReleaseDeps>
112                 </rules>
113               </configuration>
114             </execution>
115           </executions>
116         </plugin>
117         <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
118         <plugin>
119           <groupId>org.sonarsource.scanner.maven</groupId>
120           <artifactId>sonar-maven-plugin</artifactId>
121           <version>3.2</version>
122         </plugin>
123       </plugins>
124     </pluginManagement>
125     <plugins>
126       <plugin>
127         <groupId>org.sonatype.plugins</groupId>
128         <artifactId>nexus-staging-maven-plugin</artifactId>
129       </plugin>
130       <plugin>
131         <groupId>org.apache.maven.plugins</groupId>
132         <artifactId>maven-deploy-plugin</artifactId>
133       </plugin>
134       <plugin>
135         <groupId>org.apache.maven.plugins</groupId>
136         <artifactId>maven-site-plugin</artifactId>
137       </plugin>
138       <plugin>
139         <groupId>org.apache.maven.plugins</groupId>
140         <artifactId>maven-enforcer-plugin</artifactId>
141       </plugin>
142     </plugins>
143   </build>
144 </project>