blob: ba3f88fed1b3e2315fe38763d46687a52111eeaf [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>
Gary Wu284b23a2018-09-18 10:21:49 -07007 <version>1.2.1</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 Wuf16f2582018-11-29 06:35:52 -080011 <version>3.0.1-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>
88 <id>check-docker-manifest-sorted</id>
89 <phase>validate</phase>
90 <goals>
91 <goal>exec</goal>
92 </goals>
93 <configuration>
94 <arguments>
Gary Wuf5b6edf2018-04-06 10:56:50 -070095 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
Gary Wu3bad8b82017-11-09 09:22:27 -080096 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
97 </arguments>
98 </configuration>
99 </execution>
100 <execution>
Gary Wua158a3b2018-07-18 10:33:40 -0700101 <id>check-docker-manifest-staging-sorted</id>
102 <phase>validate</phase>
103 <goals>
104 <goal>exec</goal>
105 </goals>
106 <configuration>
107 <arguments>
108 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
109 <argument>${project.basedir}/src/main/resources/docker-manifest-staging.csv</argument>
110 </arguments>
111 </configuration>
112 </execution>
113 <execution>
Gary Wu3bad8b82017-11-09 09:22:27 -0800114 <id>check-java-manifest-sorted</id>
115 <phase>validate</phase>
116 <goals>
117 <goal>exec</goal>
118 </goals>
119 <configuration>
120 <arguments>
Gary Wuf5b6edf2018-04-06 10:56:50 -0700121 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
Gary Wu3bad8b82017-11-09 09:22:27 -0800122 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
123 </arguments>
124 </configuration>
125 </execution>
Gary Wu7f114f52018-05-03 17:06:06 -0700126 <execution>
Gary Wu2f55cbd2018-06-06 14:52:29 -0700127 <id>check-docker-images-released</id>
Gary Wu72460a52018-10-04 16:15:14 -0700128 <phase>verify</phase>
Gary Wu7f114f52018-05-03 17:06:06 -0700129 <goals>
130 <goal>exec</goal>
131 </goals>
132 <configuration>
133 <arguments>
134 <argument>${project.basedir}/src/main/scripts/check-docker-manifest.sh</argument>
135 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
136 </arguments>
137 </configuration>
138 </execution>
Gary Wua158a3b2018-07-18 10:33:40 -0700139 <execution>
140 <id>check-docker-staging-images-exist</id>
Gary Wu72460a52018-10-04 16:15:14 -0700141 <phase>verify</phase>
Gary Wua158a3b2018-07-18 10:33:40 -0700142 <goals>
143 <goal>exec</goal>
144 </goals>
145 <configuration>
146 <arguments>
147 <argument>${project.basedir}/src/main/scripts/check-docker-manifest-staging.sh</argument>
148 <argument>${project.basedir}/src/main/resources/docker-manifest-staging.csv</argument>
149 </arguments>
150 </configuration>
151 </execution>
Gary Wu96692b32018-10-12 13:13:13 -0700152 <execution>
Gary Wu9ac1c292018-10-25 07:09:36 -0700153 <id>compare-docker-manifests</id>
154 <phase>validate</phase>
155 <goals>
156 <goal>exec</goal>
157 </goals>
158 <configuration>
159 <arguments>
160 <argument>${project.basedir}/src/main/scripts/compare-docker-manifests.sh</argument>
161 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
162 <argument>${project.basedir}/src/main/resources/docker-manifest-staging.csv</argument>
163 </arguments>
164 </configuration>
165 </execution>
166 <execution>
Gary Wu96692b32018-10-12 13:13:13 -0700167 <id>check-java-artifacts-released</id>
168 <phase>verify</phase>
169 <goals>
170 <goal>exec</goal>
171 </goals>
172 <configuration>
173 <arguments>
174 <argument>${project.basedir}/src/main/scripts/check-java-manifest.sh</argument>
175 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
176 </arguments>
177 </configuration>
178 </execution>
Gary Wu3bad8b82017-11-09 09:22:27 -0800179 </executions>
180 </plugin>
Gary Wu632c23e2017-09-01 12:45:12 -0700181 </plugins>
182 </build>
183</project>