Closed
Description
Hi.
I wanted to test your plugin to see if it fits my needs, but when I try to use it it crashes with the following error:
[ERROR] Failed to execute goal io.openapiprocessor:openapi-processor-maven-plugin:2021.1:process (spring) on project test: Execution spring of goal io.openapiprocessor:openapi-processor-maven-plugin:2021.1:process fail
ed: An API incompatibility was encountered while executing io.openapiprocessor:openapi-processor-maven-plugin:2021.1:process: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.JavaInput (in unnamed module @0x70616
22) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.parser to unnamed module @0x7061622
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>io.openapiprocessor:openapi-processor-maven-plugin:2021.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/openapiprocessor/openapi-processor-maven-plugin/2021.1/openapi-processor-maven-plugin-2021.1.jar
[ERROR] urls[1] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/openapiprocessor/openapi-processor-spring/2021.5/openapi-processor-spring-2021.5.jar
[ERROR] urls[2] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.5.21/kotlin-stdlib-jdk8-1.5.21.jar
[ERROR] urls[3] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.5.21/kotlin-stdlib-1.5.21.jar
[ERROR] urls[4] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar
[ERROR] urls[5] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.5.21/kotlin-stdlib-common-1.5.21.jar
[ERROR] urls[6] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.5.21/kotlin-stdlib-jdk7-1.5.21.jar
[ERROR] urls[7] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/openapiprocessor/openapi-processor-core/2021.5/openapi-processor-core-2021.5.jar
[ERROR] urls[8] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/antlr/antlr4/4.9.2/antlr4-4.9.2.jar
[ERROR] urls[9] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/antlr/antlr4-runtime/4.9.2/antlr4-runtime-4.9.2.jar
[ERROR] urls[10] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar
[ERROR] urls[11] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/antlr/ST4/4.3/ST4-4.3.jar
[ERROR] urls[12] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.3/org.abego.treelayout.core-1.0.3.jar
[ERROR] urls[13] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar
[ERROR] urls[14] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/ibm/icu/icu4j/61.1/icu4j-61.1.jar
[ERROR] urls[15] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/fasterxml/jackson/module/jackson-module-kotlin/2.12.3/jackson-module-kotlin-2.12.3.jar
[ERROR] urls[16] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.12.3/jackson-databind-2.12.3.jar
[ERROR] urls[17] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.12.3/jackson-core-2.12.3.jar
[ERROR] urls[18] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.12.3/jackson-annotations-2.12.3.jar
[ERROR] urls[19] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.4.21/kotlin-reflect-1.4.21.jar
[ERROR] urls[20] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/openapi4j/openapi-parser/1.0.7/openapi-parser-1.0.7.jar
[ERROR] urls[21] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/openapi4j/openapi-core/1.0.7/openapi-core-1.0.7.jar
[ERROR] urls[22] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.12.1/jackson-dataformat-yaml-2.12.1.jar
[ERROR] urls[23] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/yaml/snakeyaml/1.27/snakeyaml-1.27.jar
[ERROR] urls[24] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/swagger/parser/v3/swagger-parser/2.0.27/swagger-parser-2.0.27.jar
[ERROR] urls[25] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/swagger/parser/v3/swagger-parser-v3/2.0.27/swagger-parser-v3-2.0.27.jar
[ERROR] urls[26] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/swagger/core/v3/swagger-models/2.1.10/swagger-models-2.1.10.jar
[ERROR] urls[27] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/swagger/core/v3/swagger-core/2.1.10/swagger-core-2.1.10.jar
[ERROR] urls[28] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar
[ERROR] urls[29] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar
[ERROR] urls[30] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.12.1/jackson-datatype-jsr310-2.12.1.jar
[ERROR] urls[31] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/jakarta/validation/jakarta.validation-api/2.0.2/jakarta.validation-api-2.0.2.jar
[ERROR] urls[32] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/swagger/parser/v3/swagger-parser-core/2.0.27/swagger-parser-core-2.0.27.jar
[ERROR] urls[33] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/apache/commons/commons-text/1.9/commons-text-1.9.jar
[ERROR] urls[34] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/apache/commons/commons-lang3/3.11/commons-lang3-3.11.jar
[ERROR] urls[35] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/commonmark/commonmark/0.17.0/commonmark-0.17.0.jar
[ERROR] urls[36] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/googlejavaformat/google-java-format/1.10.0/google-java-format-1.10.0.jar
[ERROR] urls[37] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/networknt/json-schema-validator/1.0.57/json-schema-validator-1.0.57.jar
[ERROR] urls[38] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
[ERROR] urls[39] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[40] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[41] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[42] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/checkerframework/checker-qual/3.8.0/checker-qual-3.8.0.jar
[ERROR] urls[43] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/errorprone/error_prone_annotations/2.5.1/error_prone_annotations-2.5.1.jar
[ERROR] urls[44] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] urls[45] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.2.1/maven-shared-utils-3.2.1.jar
[ERROR] urls[46] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[47] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/io/openapiprocessor/openapi-processor-api/2021.1/openapi-processor-api-2021.1.jar
[ERROR] urls[48] = file:/C:/Users/Cosimo%20Damiano%20Prete/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
Plugin configuration in Maven
<plugin>
<groupId>io.openapiprocessor</groupId>
<artifactId>openapi-processor-maven-plugin</artifactId>
<version>2021.1</version>
<dependencies>
<dependency>
<groupId>io.openapiprocessor</groupId>
<artifactId>openapi-processor-spring</artifactId>
<version>2021.5</version>
</dependency>
</dependencies>
<configuration>
<apiPath>${project.basedir}/src/main/resources/service-contract.yaml</apiPath>
</configuration>
<executions>
<execution>
<id>spring</id>
<phase>generate-sources</phase>
<configuration>
<id>spring</id>
<options>
<values>
<targetDir>${project.basedir}/target/generated-sources/openapi</targetDir>
<parser>OPENAPI4J</parser>
<showWarnings>true</showWarnings>
</values>
</options>
</configuration>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
</plugin>
This is probably caused by https://github.com/google/google-java-format#jdk-16
Metadata
Metadata
Assignees
Labels
No labels