blob: 857aa217c17154c24c460e533cb31829df120242 [file] [log] [blame]
Gary Wu632c23e2017-09-01 12:45:12 -07001<?xml version="1.0"?>
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 <parent>
Gary Wuc794f932017-10-12 13:20:53 -07005 <groupId>org.onap.oparent</groupId>
6 <artifactId>oparent</artifactId>
Jessica Wagantall7d140fd2019-05-10 15:23:29 -07007 <version>2.0.0</version>
Gary Wu632c23e2017-09-01 12:45:12 -07008 </parent>
Gary Wu9f8434f2017-10-19 21:54:41 -07009 <groupId>org.onap.integration</groupId>
Gary Wu632c23e2017-09-01 12:45:12 -070010 <artifactId>version-manifest</artifactId>
Gary Wu21456612018-11-15 16:01:37 -080011 <version>4.0.0-SNAPSHOT</version>
Gary Wu632c23e2017-09-01 12:45:12 -070012 <packaging>maven-plugin</packaging>
13 <name>ONAP Version Manifest and Maven Plugin</name>
14 <url>https://www.onap.org</url>
15 <properties>
16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Gary Wu632c23e2017-09-01 12:45:12 -070017 </properties>
18 <dependencies>
19 <dependency>
Gary Wu632c23e2017-09-01 12:45:12 -070020 <groupId>org.apache.maven.plugin-tools</groupId>
21 <artifactId>maven-plugin-annotations</artifactId>
Gary Wu72460a52018-10-04 16:15:14 -070022 <version>3.5.2</version>
Gary Wu632c23e2017-09-01 12:45:12 -070023 <scope>provided</scope>
24 </dependency>
25 <dependency>
Gary Wu632c23e2017-09-01 12:45:12 -070026 <groupId>org.apache.maven</groupId>
27 <artifactId>maven-core</artifactId>
Gary Wu72460a52018-10-04 16:15:14 -070028 <version>3.5.4</version>
Gary Wu632c23e2017-09-01 12:45:12 -070029 </dependency>
30 <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-csv -->
31 <dependency>
32 <groupId>org.apache.commons</groupId>
33 <artifactId>commons-csv</artifactId>
34 <version>1.4</version>
35 </dependency>
36 </dependencies>
37 <build>
38 <plugins>
39 <plugin>
40 <groupId>org.apache.maven.plugins</groupId>
41 <artifactId>maven-plugin-plugin</artifactId>
Gary Wu284b23a2018-09-18 10:21:49 -070042 <version>3.5.2</version>
Gary Wu632c23e2017-09-01 12:45:12 -070043 <configuration>
Gary Wu4ccabfb2017-09-01 13:14:36 -070044 <goalPrefix>version-manifest</goalPrefix>
Gary Wu632c23e2017-09-01 12:45:12 -070045 <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
46 </configuration>
47 <executions>
48 <execution>
49 <id>mojo-descriptor</id>
50 <goals>
51 <goal>descriptor</goal>
52 </goals>
53 </execution>
54 <execution>
55 <id>help-goal</id>
56 <goals>
57 <goal>helpmojo</goal>
58 </goals>
59 </execution>
60 </executions>
61 </plugin>
Gary Wuac1abc22017-09-06 11:43:41 -070062 <plugin>
63 <groupId>pl.project13.maven</groupId>
64 <artifactId>git-commit-id-plugin</artifactId>
65 <version>2.2.3</version>
66 <executions>
67 <execution>
68 <phase>validate</phase>
69 <goals>
70 <goal>revision</goal>
71 </goals>
72 </execution>
73 </executions>
74 <configuration>
75 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
76 <generateGitPropertiesFile>true</generateGitPropertiesFile>
77 </configuration>
78 </plugin>
Gary Wu3bad8b82017-11-09 09:22:27 -080079 <plugin>
80 <groupId>org.codehaus.mojo</groupId>
81 <artifactId>exec-maven-plugin</artifactId>
82 <version>1.6.0</version>
83 <configuration>
Gary Wuf5b6edf2018-04-06 10:56:50 -070084 <executable>bash</executable>
Gary Wu3bad8b82017-11-09 09:22:27 -080085 </configuration>
86 <executions>
87 <execution>
Gary Wua158a3b2018-07-18 10:33:40 -070088 <id>check-docker-manifest-staging-sorted</id>
89 <phase>validate</phase>
90 <goals>
91 <goal>exec</goal>
92 </goals>
93 <configuration>
94 <arguments>
95 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
96 <argument>${project.basedir}/src/main/resources/docker-manifest-staging.csv</argument>
97 </arguments>
98 </configuration>
99 </execution>
100 <execution>
Gary Wu3bad8b82017-11-09 09:22:27 -0800101 <id>check-java-manifest-sorted</id>
102 <phase>validate</phase>
103 <goals>
104 <goal>exec</goal>
105 </goals>
106 <configuration>
107 <arguments>
Gary Wuf5b6edf2018-04-06 10:56:50 -0700108 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
Gary Wu3bad8b82017-11-09 09:22:27 -0800109 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
110 </arguments>
111 </configuration>
112 </execution>
Gary Wu7f114f52018-05-03 17:06:06 -0700113 <execution>
Gary Wua158a3b2018-07-18 10:33:40 -0700114 <id>check-docker-staging-images-exist</id>
Gary Wu72460a52018-10-04 16:15:14 -0700115 <phase>verify</phase>
Gary Wua158a3b2018-07-18 10:33:40 -0700116 <goals>
117 <goal>exec</goal>
118 </goals>
119 <configuration>
120 <arguments>
121 <argument>${project.basedir}/src/main/scripts/check-docker-manifest-staging.sh</argument>
122 <argument>${project.basedir}/src/main/resources/docker-manifest-staging.csv</argument>
123 </arguments>
124 </configuration>
125 </execution>
Gary Wu96692b32018-10-12 13:13:13 -0700126 <execution>
127 <id>check-java-artifacts-released</id>
128 <phase>verify</phase>
129 <goals>
130 <goal>exec</goal>
131 </goals>
132 <configuration>
133 <arguments>
134 <argument>${project.basedir}/src/main/scripts/check-java-manifest.sh</argument>
135 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
136 </arguments>
137 </configuration>
138 </execution>
Gary Wu3bad8b82017-11-09 09:22:27 -0800139 </executions>
140 </plugin>
Gary Wu632c23e2017-09-01 12:45:12 -0700141 </plugins>
142 </build>
143</project>