Skip to content

Commit bf26b65

Browse files
Fix packaging of Maven plugin (#287)
* Change packaging to maven-plugin * Minimal maven-plugin example * Fix the new spec location Refs #278
1 parent 2bef15b commit bf26b65

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

maven-example/pom.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>openapi-diff-parent</artifactId>
7+
<groupId>org.openapitools.openapidiff</groupId>
8+
<version>2.0.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>openapi-diff-maven-example</artifactId>
13+
<packaging>jar</packaging>
14+
15+
<name>openapi-diff-maven-example</name>
16+
<description>Example usage of maven plugin for openapi-diff</description>
17+
18+
<build>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.openapitools.openapidiff</groupId>
22+
<artifactId>openapi-diff-maven</artifactId>
23+
<version>2.0.0-SNAPSHOT</version>
24+
<executions>
25+
<execution>
26+
<goals>
27+
<goal>diff</goal>
28+
</goals>
29+
<configuration>
30+
<oldSpec>${project.basedir}/../maven/src/test/resources/oldspec.yaml</oldSpec>
31+
<newSpec>${project.basedir}/../maven/src/test/resources/newspec.yaml</newSpec>
32+
<failOnIncompatible>true</failOnIncompatible>
33+
</configuration>
34+
</execution>
35+
</executions>
36+
</plugin>
37+
</plugins>
38+
</build>
39+
40+
</project>

maven/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010

1111
<artifactId>openapi-diff-maven</artifactId>
12-
<packaging>jar</packaging>
12+
<packaging>maven-plugin</packaging>
1313

1414
<name>openapi-diff-maven</name>
1515
<description>Maven plugin for openapi-diff</description>

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<module>core</module>
55
<module>cli</module>
66
<module>maven</module>
7+
<module>maven-example</module>
78
</modules>
89

910
<groupId>org.openapitools.openapidiff</groupId>

0 commit comments

Comments
 (0)