Simplify Java Gen Maven plugin workflow
<maven.failsafe.version>3.0.0-M7</maven.failsafe.version>
<maven.surefire.version>3.0.0-M7</maven.surefire.version>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
- <fabric8.version>6.3.1</fabric8.version>
+ <fabric8.version>6.4.0</fabric8.version>
<!-- sundrio version is critical to stay aligned with whatever comes from fabric8 -->
<sundrio.version>0.93.2</sundrio.version>
<version.hamcrest>2.2</version.hamcrest>
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>com.googlecode.maven-download-plugin</groupId>
- <artifactId>download-maven-plugin</artifactId>
- <version>${download.maven.plugin.version}</version>
- <executions>
- <execution>
- <!-- Needs to run before java-generator-maven-plugin -->
- <phase>generate-sources</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>https://raw.githubusercontent.com/Apicurio/apicurio-registry-operator/${operator.version}/packagemanifests/${operator.version}/registry.apicur.io_apicurioregistries.yaml</url>
- <outputFileName>registry.apicur.io_apicurioregistries.yaml</outputFileName>
- <outputDirectory>${project.build.directory}</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>java-generator-maven-plugin</artifactId>
</execution>
</executions>
<configuration>
- <source>${project.build.directory}/registry.apicur.io_apicurioregistries.yaml</source>
+ <urls>https://raw.githubusercontent.com/Apicurio/apicurio-registry-operator/${operator.version}/packagemanifests/${operator.version}/registry.apicur.io_apicurioregistries.yaml</urls>
+ <downloadTarget>${project.build.directory}/meta</downloadTarget>
<extraAnnotations>true</extraAnnotations>
</configuration>
</plugin>
