Release ccsdk/parent
[ccsdk/parent.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 7fe5182..26d9d21 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -1,32 +1,41 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
-
-
+<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">
     <modelVersion>4.0.0</modelVersion>
-    <packaging>pom</packaging>
+
     <groupId>org.onap.ccsdk.parent</groupId>
     <artifactId>parent</artifactId>
-    <version>1.1.1-SNAPSHOT</version>
+    <version>2.2.0</version>
+    <packaging>pom</packaging>
+
     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
 
-    <properties>
-        <onap.nexus.host>nexus.onap.org</onap.nexus.host>
-        <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
-        <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
-    </properties>
+    <modules>
+        <module>installed-odl-bom</module>
+        <module>dependencies-bom</module>
+        <module>dependencies-odl-bom</module>
+        <module>oparent</module>
+        <module>standalone</module>
+        <module>odlparent</module>
+        <module>springboot</module>
+    </modules>
 
     <distributionManagement>
         <repository>
             <id>ecomp-releases</id>
-            <url>http://nexus.onap.org/content/repositories/releases</url>
+            <url>https://nexus.onap.org/content/repositories/releases</url>
         </repository>
         <snapshotRepository>
             <id>ecomp-snapshots</id>
-            <url>http://nexus.onap.org/content/repositories/snapshots</url>
+            <url>https://nexus.onap.org/content/repositories/snapshots</url>
         </snapshotRepository>
     </distributionManagement>
 
+    <properties>
+        <onap.nexus.host>nexus.onap.org</onap.nexus.host>
+        <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
+        <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
+    </properties>
+
     <build>
         <plugins>
             <plugin>
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.sonatype.plugins</groupId>
-                <artifactId>nexus-staging-maven-plugin</artifactId>
-                <version>1.6.7</version>
-                <extensions>true</extensions>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <!-- This version supports the "deployAtEnd" parameter -->
+                <version>2.8</version>
                 <configuration>
-                    <nexusUrl>https://${onap.nexus.host}</nexusUrl>
-                    <stagingProfileId>${onap.nexus.staging.profile-id}</stagingProfileId>
-                    <serverId>${onap.nexus.staging.server-id}</serverId>
+                    <skip/>
+                    <deployAtEnd>true</deployAtEnd>
                 </configuration>
             </plugin>
         </plugins>
     </build>
-    <modules>
-       <module>odlparent</module>
-       <module>springboot</module>
-    </modules>
 
+    <profiles>
+        <profile>
+            <id>dependency-list</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>com.github.ferstl</groupId>
+                        <artifactId>depgraph-maven-plugin</artifactId>
+                        <version>3.3.0</version>
+                        <configuration>
+                            <graphFormat>text</graphFormat>
+                            <outputFileName>direct-dependencies.txt</outputFileName>
+                            <outputDirectory>${project.basedir}</outputDirectory>
+                            <transitiveExcludes>*</transitiveExcludes>
+                            <showVersions>true</showVersions>
+                            <showGroupIds>true</showGroupIds>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <inherited>false</inherited>
+                                <goals>
+                                    <goal>aggregate</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>build-helper-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>attach-artifacts</id>
+                                <phase>package</phase>
+                                <inherited>false</inherited>
+                                <goals>
+                                    <goal>attach-artifact</goal>
+                                </goals>
+                                <configuration>
+                                    <artifacts>
+                                        <artifact>
+                                            <file>${project.basedir}/direct-dependencies.txt</file>
+                                            <type>txt</type>
+                                            <classifier>dependencies</classifier>
+                                        </artifact>
+                                    </artifacts>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>