Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shade build-time error on master (3.3.0:shade: java.lang.NoSuchMethodError) #12463

Open
fcbry opened this issue Sep 12, 2024 · 0 comments
Open

Comments

@fcbry
Copy link

fcbry commented Sep 12, 2024

Description

Shade build-time errror on master - fixed by upgrade apache shade to 3.6.0 - I'll create a corresponding PR to upgrade that dependency.

Swagger-codegen version

master (61cfeac3b9d855b4eb8bffa0d118bece117bcb7d)

Console output

[INFO] Dependency-reduced POM written at: C:\Users\BryanHunt\AppData\Local\Temp\dependency-reduced-pom.xml
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Reactor Summary for swagger-codegen-project 2.4.43:
[INFO]
[INFO] swagger-codegen-project .............................................................................. SUCCESS [  1.850 s]
[INFO] swagger-codegen (core library) ....................................................................... SUCCESS [ 55.951 s]
[INFO] swagger-codegen (executable) ......................................................................... FAILURE [  4.779 s]
[INFO] swagger-codegen (maven-plugin) ....................................................................... SKIPPED
[INFO] swagger-generator .................................................................................... SKIPPED
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time:  01:03 min
[INFO] Finished at: 2024-09-12T14:33:35+01:00
[INFO] --------------------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade (process-resources) on project swagger-codegen-cli: Execution process-resources of goal org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade: java.lang.NoSuchMethodError: 'java.lang.Object org.apache.maven.model.Plugin.getGoals()'
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-shade-plugin:3.3.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/maven/plugins/maven-shade-plugin/3.3.0/maven-shade-plugin-3.3.0.jar
[ERROR] urls[1] = file:/C:/Users/BryanHunt/.m2/repository/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.jar
[ERROR] urls[2] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.13.1/maven-artifact-transfer-0.13.1.jar
[ERROR] urls[3] = file:/C:/Users/BryanHunt/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[4] = file:/C:/Users/BryanHunt/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[5] = file:/C:/Users/BryanHunt/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[6] = file:/C:/Users/BryanHunt/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[7] = file:/C:/Users/BryanHunt/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.0.0/plexus-component-annotations-2.0.0.jar
[ERROR] urls[8] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.1.0/maven-common-artifact-filters-3.1.0.jar
[ERROR] urls[9] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[10] = file:/C:/Users/BryanHunt/.m2/repository/org/ow2/asm/asm/9.2/asm-9.2.jar
[ERROR] urls[11] = file:/C:/Users/BryanHunt/.m2/repository/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar
[ERROR] urls[12] = file:/C:/Users/BryanHunt/.m2/repository/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar
[ERROR] urls[13] = file:/C:/Users/BryanHunt/.m2/repository/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar
[ERROR] urls[14] = file:/C:/Users/BryanHunt/.m2/repository/org/jdom/jdom2/2.0.6.1/jdom2-2.0.6.1.jar
[ERROR] urls[15] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.jar
[ERROR] urls[16] = file:/C:/Users/BryanHunt/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar
[ERROR] urls[17] = file:/C:/Users/BryanHunt/.m2/repository/org/vafer/jdependency/2.7.0/jdependency-2.7.0.jar
[ERROR] urls[18] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
[ERROR] urls[19] = file:/C:/Users/BryanHunt/.m2/repository/org/apache/commons/commons-collections4/4.2/commons-collections4-4.2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>io.swagger:swagger-codegen-project:2.4.43, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn [args] -r
@fcbry fcbry changed the title shade build-time error on master shade build-time error on master (3.3.0:shade: java.lang.NoSuchMethodError) Sep 12, 2024
fcbry added a commit to fcbry/swagger-codegen that referenced this issue Sep 12, 2024
fcbry added a commit to fcbry/swagger-codegen that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant