blob: 22634cb318859b05207ca0b3c5b02bee3ab0a0f2 [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 Wu7c12f002018-03-27 07:33:50 -07007 <version>1.1.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 Wu7c12f002018-03-27 07:33:50 -070011 <version>1.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>
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>
Gary Wu3462f302017-09-05 16:59:20 -070053 <version>3.4</version>
Gary Wu632c23e2017-09-01 12:45:12 -070054 <configuration>
Gary Wu4ccabfb2017-09-01 13:14:36 -070055 <goalPrefix>version-manifest</goalPrefix>
Gary Wu632c23e2017-09-01 12:45:12 -070056 <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>
Gary Wuac1abc22017-09-06 11:43:41 -070073 <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>
Gary Wu3bad8b82017-11-09 09:22:27 -080090 <plugin>
91 <groupId>org.codehaus.mojo</groupId>
92 <artifactId>exec-maven-plugin</artifactId>
93 <version>1.6.0</version>
94 <configuration>
Gary Wuf5b6edf2018-04-06 10:56:50 -070095 <executable>bash</executable>
Gary Wu3bad8b82017-11-09 09:22:27 -080096 </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>
Gary Wuf5b6edf2018-04-06 10:56:50 -0700106 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
Gary Wu3bad8b82017-11-09 09:22:27 -0800107 <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>
Gary Wuf5b6edf2018-04-06 10:56:50 -0700119 <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
Gary Wu3bad8b82017-11-09 09:22:27 -0800120 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
121 </arguments>
122 </configuration>
123 </execution>
Gary Wu7f114f52018-05-03 17:06:06 -0700124 <execution>
125 <id>check-docker-images-exist</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>
Gary Wu3bad8b82017-11-09 09:22:27 -0800137 </executions>
138 </plugin>
Gary Wu632c23e2017-09-01 12:45:12 -0700139 </plugins>
140 </build>
141</project>