Adding auto-sorting plugin to all Controller via parent/pom.xml
[controller.git] / opendaylight / commons / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>org.opendaylight.controller</groupId>
5   <artifactId>commons.parent</artifactId>
6   <version>1.0.2-SNAPSHOT</version>
7   <packaging>pom</packaging>
8   <prerequisites>
9     <maven>3.0</maven>
10   </prerequisites>
11
12   <properties>
13     <nexus.repository.release>opendaylight.release</nexus.repository.release>
14     <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
15     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
16     <releaseplugin.version>2.3.2</releaseplugin.version>
17     <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
18   </properties>
19   <build>
20     <plugins>
21       <plugin>
22         <groupId>com.google.code.sortpom</groupId>
23         <artifactId>maven-sortpom-plugin</artifactId>
24         <version>2.2.1</version>
25         <configuration>
26           <createBackupFile>false</createBackupFile>
27           <encoding>${project.build.sourceEncoding}</encoding>
28           <keepBlankLines>true</keepBlankLines>
29           <lineSeparator>\n</lineSeparator>
30           <nrOfIndentSpace>2</nrOfIndentSpace>
31           <predefinedSortOrder>custom_1</predefinedSortOrder>
32           <sortDependencies>scope,groupId,artifactId</sortDependencies>
33           <sortPlugins>groupId,artifactId</sortPlugins>
34           <sortProperties>true</sortProperties>
35         </configuration>
36         <executions>
37           <execution>
38             <goals>
39               <goal>sort</goal>
40             </goals>
41             <phase>verify</phase>
42           </execution>
43         </executions>
44       </plugin>
45       <plugin>
46         <groupId>org.apache.maven.plugins</groupId>
47         <artifactId>maven-release-plugin</artifactId>
48         <version>${releaseplugin.version}</version>
49       </plugin>
50       <plugin>
51         <groupId>org.apache.maven.plugins</groupId>
52         <artifactId>maven-release-plugin</artifactId>
53         <version>${releaseplugin.version}</version>
54       </plugin>
55     </plugins>
56   </build>
57   <scm>
58     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
59     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
60     <tag>HEAD</tag>
61     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
62   </scm>
63   <distributionManagement>
64     <!-- OpenDayLight Released artifact -->
65     <repository>
66       <id>opendaylight-release</id>
67       <url>${nexusproxy}/repositories/${nexus.repository.release}/</url>
68     </repository>
69     <!-- OpenDayLight Snapshot artifact -->
70     <snapshotRepository>
71       <id>opendaylight-snapshot</id>
72       <url>${nexusproxy}/repositories/${nexus.repository.snapshot}/</url>
73     </snapshotRepository>
74     <!-- Site deployment -->
75     <site>
76       <id>website</id>
77       <url>${sitedeploy}</url>
78     </site>
79   </distributionManagement>
80 </project>