Allow only released docker images in the manifest
[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.1.1</version>
8   </parent>
9   <groupId>org.onap.integration</groupId>
10   <artifactId>version-manifest</artifactId>
11   <version>2.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     <mavenVersion>3.2.3</mavenVersion>
18   </properties>
19   <dependencies>
20     <dependency>
21       <groupId>org.apache.maven</groupId>
22       <artifactId>maven-plugin-api</artifactId>
23       <version>2.0</version>
24     </dependency>
25     <dependency>
26       <groupId>org.apache.maven.plugin-tools</groupId>
27       <artifactId>maven-plugin-annotations</artifactId>
28       <version>3.2</version>
29       <scope>provided</scope>
30     </dependency>
31     <dependency>
32       <groupId>org.codehaus.plexus</groupId>
33       <artifactId>plexus-utils</artifactId>
34       <version>3.0.8</version>
35     </dependency>
36     <dependency>
37       <groupId>org.apache.maven</groupId>
38       <artifactId>maven-core</artifactId>
39       <version>${mavenVersion}</version>
40     </dependency>
41     <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-csv -->
42     <dependency>
43       <groupId>org.apache.commons</groupId>
44       <artifactId>commons-csv</artifactId>
45       <version>1.4</version>
46     </dependency>
47   </dependencies>
48   <build>
49     <plugins>
50       <plugin>
51         <groupId>org.apache.maven.plugins</groupId>
52         <artifactId>maven-plugin-plugin</artifactId>
53         <version>3.4</version>
54         <configuration>
55           <goalPrefix>version-manifest</goalPrefix>
56           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
57         </configuration>
58         <executions>
59           <execution>
60             <id>mojo-descriptor</id>
61             <goals>
62               <goal>descriptor</goal>
63             </goals>
64           </execution>
65           <execution>
66             <id>help-goal</id>
67             <goals>
68               <goal>helpmojo</goal>
69             </goals>
70           </execution>
71         </executions>
72       </plugin>
73       <plugin>
74         <groupId>pl.project13.maven</groupId>
75         <artifactId>git-commit-id-plugin</artifactId>
76         <version>2.2.3</version>
77         <executions>
78           <execution>
79             <phase>validate</phase>
80             <goals>
81               <goal>revision</goal>
82             </goals>
83           </execution>
84         </executions>
85         <configuration>
86           <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
87           <generateGitPropertiesFile>true</generateGitPropertiesFile>
88         </configuration>
89       </plugin>
90       <plugin>
91         <groupId>org.codehaus.mojo</groupId>
92         <artifactId>exec-maven-plugin</artifactId>
93         <version>1.6.0</version>
94         <configuration>
95           <executable>bash</executable>
96         </configuration>
97         <executions>
98           <execution>
99             <id>check-docker-manifest-sorted</id>
100             <phase>validate</phase>
101             <goals>
102               <goal>exec</goal>
103             </goals>
104             <configuration>
105               <arguments>
106                 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
107                 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
108               </arguments>
109             </configuration>
110           </execution>
111           <execution>
112             <id>check-java-manifest-sorted</id>
113             <phase>validate</phase>
114             <goals>
115               <goal>exec</goal>
116             </goals>
117             <configuration>
118               <arguments>
119                 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
120                 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
121               </arguments>
122             </configuration>
123           </execution>
124           <execution>
125             <id>check-docker-images-released</id>
126             <phase>validate</phase>
127             <goals>
128               <goal>exec</goal>
129             </goals>
130             <configuration>
131               <arguments>
132                 <argument>${project.basedir}/src/main/scripts/check-docker-manifest.sh</argument>
133                 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
134               </arguments>
135             </configuration>
136           </execution>
137         </executions>
138       </plugin>
139     </plugins>
140   </build>
141 </project>