Add maven staging plugin and repo info
[aai/sparky-be.git] / 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"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <groupId>org.onap.aai</groupId>
7     <artifactId>sparky-be</artifactId>
8     <version>1.2.0-SNAPSHOT</version>
9     <packaging>pom</packaging>
10     <name>aai-sparky-be</name>
11
12         <modules>
13                 <module>sparkybe-onap-service/pom.xml</module>
14                 <module>sparkybe-onap-application/pom.xml</module>
15         </modules>
16
17     <!-- we don't need to deploy the top level pom project -->
18         <build>
19                 <plugins>
20                         <plugin>
21                                 <artifactId>maven-deploy-plugin</artifactId>
22                                 <configuration>
23                                         <skip>true</skip>
24                                 </configuration>
25                         </plugin>
26
27                         <plugin>
28                           <groupId>org.sonatype.plugins</groupId>
29                           <artifactId>nexus-staging-maven-plugin</artifactId>
30                           <version>1.6.7</version>
31                           <extensions>true</extensions>
32                           <configuration>
33                             <nexusUrl>${nexusproxy}</nexusUrl>
34                             <stagingProfileId>176c31dfe190a</stagingProfileId>
35                             <serverId>ecomp-staging</serverId>
36                           </configuration>
37                         </plugin>
38                 </plugins>
39         </build>
40         
41     <distributionManagement>
42        <repository>
43           <id>ecomp-releases</id>
44           <name>ECOMP Release Repository</name>
45           <url>${nexusproxy}/content/repositories/releases/</url>
46        </repository>
47        <snapshotRepository>
48           <id>ecomp-snapshots</id>
49           <name>ECOMP Snapshot Repository</name>
50           <url>${nexusproxy}/content/repositories/snapshots/</url>
51       </snapshotRepository>
52    </distributionManagement>
53
54     <repositories>
55         <repository>
56             <id>central</id>
57             <name>Maven 2 repository 2</name>
58             <url>http://repo2.maven.org/maven2/</url>
59         </repository>
60         <repository>
61             <id>ecomp-releases</id>
62             <name>ECOMP Release Repository</name>
63             <url>${nexusproxy}/content/repositories/releases/</url>
64         </repository>
65         <repository>
66             <id>ecomp-snapshots</id>
67             <name>ECOMP Snapshot Repository</name>
68             <url>${nexusproxy}/content/repositories/snapshots/</url>
69         </repository>
70         <repository>
71             <id>ecomp-staging</id>
72             <name>ECOMP Staging Repository</name>
73             <url>${nexusproxy}/content/repositories/staging/</url>
74         </repository>
75
76     </repositories>
77         
78 </project>