ab55b5c9076b9a945e5c6a49438354833095d1cb
[integration.git] / version-manifest / pom.xml
1 <?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>
5     <groupId>org.onap.oparent</groupId>
6     <artifactId>oparent</artifactId>
7     <version>1.2.1</version>
8   </parent>
9   <groupId>org.onap.integration</groupId>
10   <artifactId>version-manifest</artifactId>
11   <version>4.0.0-SNAPSHOT</version>
12   <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>
17   </properties>
18   <dependencies>
19     <dependency>
20       <groupId>org.apache.maven.plugin-tools</groupId>
21       <artifactId>maven-plugin-annotations</artifactId>
22       <version>3.5.2</version>
23       <scope>provided</scope>
24     </dependency>
25     <dependency>
26       <groupId>org.apache.maven</groupId>
27       <artifactId>maven-core</artifactId>
28       <version>3.5.4</version>
29     </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>
42         <version>3.5.2</version>
43         <configuration>
44           <goalPrefix>version-manifest</goalPrefix>
45           <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>
62       <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>
79       <plugin>
80         <groupId>org.codehaus.mojo</groupId>
81         <artifactId>exec-maven-plugin</artifactId>
82         <version>1.6.0</version>
83         <configuration>
84           <executable>bash</executable>
85         </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>
95                 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
96                 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
97               </arguments>
98             </configuration>
99           </execution>
100           <execution>
101             <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>
114             <id>check-java-manifest-sorted</id>
115             <phase>validate</phase>
116             <goals>
117               <goal>exec</goal>
118             </goals>
119             <configuration>
120               <arguments>
121                 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
122                 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
123               </arguments>
124             </configuration>
125           </execution>
126           <execution>
127             <id>check-docker-images-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-docker-manifest.sh</argument>
135                 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
136               </arguments>
137             </configuration>
138           </execution>
139           <execution>
140             <id>check-docker-staging-images-exist</id>
141             <phase>verify</phase>
142             <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>
152           <execution>
153             <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>
167             <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>
179         </executions>
180       </plugin>
181     </plugins>
182   </build>
183 </project>