Generate dependency list
[ccsdk/parent.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" 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
5     <groupId>org.onap.ccsdk.parent</groupId>
6     <artifactId>parent</artifactId>
7     <version>1.5.1-SNAPSHOT</version>
8     <packaging>pom</packaging>
9
10     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
11
12     <modules>
13         <module>dependencies-bom</module>
14         <module>dependencies-odl-bom</module>
15         <module>standalone</module>
16         <module>odlparent</module>
17         <module>springboot</module>
18     </modules>
19
20     <distributionManagement>
21         <repository>
22             <id>ecomp-releases</id>
23             <url>https://nexus.onap.org/content/repositories/releases</url>
24         </repository>
25         <snapshotRepository>
26             <id>ecomp-snapshots</id>
27             <url>https://nexus.onap.org/content/repositories/snapshots</url>
28         </snapshotRepository>
29     </distributionManagement>
30
31     <properties>
32         <onap.nexus.host>nexus.onap.org</onap.nexus.host>
33         <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
34         <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
35     </properties>
36
37     <profiles>
38         <profile>
39             <id>dependency-list</id>
40             <build>
41                 <plugins>
42                     <plugin>
43                         <groupId>com.github.ferstl</groupId>
44                         <artifactId>depgraph-maven-plugin</artifactId>
45                         <version>3.3.0</version>
46                         <configuration>
47                             <graphFormat>text</graphFormat>
48                             <outputFileName>direct-dependencies.txt</outputFileName>
49                             <outputDirectory>${project.basedir}</outputDirectory>
50                             <transitiveExcludes>*</transitiveExcludes>
51                             <showVersions>true</showVersions>
52                         </configuration>
53                         <executions>
54                             <execution>
55                                 <phase>validate</phase>
56                                 <inherited>false</inherited>
57                                 <goals>
58                                     <goal>aggregate</goal>
59                                 </goals>
60                             </execution>
61                         </executions>
62                     </plugin>
63                     <plugin>
64                         <groupId>org.codehaus.mojo</groupId>
65                         <artifactId>build-helper-maven-plugin</artifactId>
66                         <executions>
67                             <execution>
68                                 <id>attach-artifacts</id>
69                                 <phase>package</phase>
70                                 <inherited>false</inherited>
71                                 <goals>
72                                     <goal>attach-artifact</goal>
73                                 </goals>
74                                 <configuration>
75                                     <artifacts>
76                                         <artifact>
77                                             <file>${project.basedir}/direct-dependencies.txt</file>
78                                             <type>txt</type>
79                                             <classifier>dependencies</classifier>
80                                         </artifact>
81                                     </artifacts>
82                                 </configuration>
83                             </execution>
84                         </executions>
85                     </plugin>
86                 </plugins>
87             </build>
88         </profile>
89     </profiles>
90
91     <build>
92         <plugins>
93             <plugin>
94                 <groupId>org.codehaus.mojo</groupId>
95                 <artifactId>versions-maven-plugin</artifactId>
96                 <version>2.5</version>
97                 <configuration>
98                     <processAllModules>true</processAllModules>
99                 </configuration>
100             </plugin>
101         </plugins>
102     </build>
103 </project>