[Comment Edited] (MSHARED-957) API incompatibility between versions 1.11.1 and 1.11.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Comment Edited] (MSHARED-957) API incompatibility between versions 1.11.1 and 1.11.2

Hudson (Jira)

    [ https://issues.apache.org/jira/browse/MSHARED-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197269#comment-17197269 ]

Henning Schmiedehausen edited comment on MSHARED-957 at 9/16/20, 10:45 PM:
---------------------------------------------------------------------------

unpack the attached archive

{{% mvn --version}}
{{ Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)}}
{{ Maven home: /home/henning/.local/share/apache-maven-3.6.3}}
{{ Java version: 11.0.8, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64}}
{{ Default locale: en_US, platform encoding: UTF-8}}
{{ OS name: "linux", version: "5.8.8-200.fc32.x86_64", arch: "amd64", family: "unix"}}

You must use Java 11.

 

Working:

{{% mvn -Ddep.test=1.11.1 verify}}
{{ [INFO] Scanning for projects...}}
{{ [INFO] }}
{{ [INFO] --------------------------< test:mshared957 >---------------------------}}
{{ [INFO] Building mshared957 1.0-SNAPSHOT}}
{{ [INFO] --------------------------------[ jar ]---------------------------------}}
{{ [INFO] }}
{{ [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ mshared957 —}}
{{ [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!}}
{{ [INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/main/resources}}
{{ [INFO] }}
{{ [INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ mshared957 —}}
{{ [INFO] Changes detected - recompiling the module!}}
{{ [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!}}
{{ [INFO] Compiling 1 source file to /home/henning/src/bugs/MSHARED-957/target/classes}}
{{ [INFO] }}
{{ [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ mshared957 —}}
{{ [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!}}
{{ [INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/test/resources}}
{{ [INFO] }}
{{ [INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mshared957 —}}
{{ [INFO] No sources to compile}}
{{ [INFO] }}
{{ [INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ mshared957 —}}
{{ [INFO] No tests to run.}}
{{ [INFO] }}
{{ [INFO] — maven-jar-plugin:2.4:jar (default-jar) @ mshared957 —}}
{{ [INFO] Building jar: /home/henning/src/bugs/MSHARED-957/target/mshared957-1.0-SNAPSHOT.jar}}
{{ [INFO] }}
{{ [INFO] — maven-dependency-plugin:3.1.2:analyze-only (default) @ mshared957 —}}
{{ [WARNING] Unused declared dependencies found:}}
{{ [WARNING] net.jcip:jcip-annotations:jar:1.0:compile}}
{{ [WARNING] com.google.code.findbugs:jsr305:jar:3.0.2:compile}}
{{ [INFO] ------------------------------------------------------------------------}}
{{ [INFO] BUILD SUCCESS}}
{{ [INFO] ------------------------------------------------------------------------}}
{{ [INFO] Total time: 1.487 s}}
{{ [INFO] Finished at: 2020-09-16T15:42:00-07:00}}
{{ [INFO] ------------------------------------------------------------------------}}

 

Failing

{{% mvn -Ddep.test=1.11.3 verify}}
{{ [INFO] Scanning for projects...}}
{{ [INFO] }}
{{ [INFO] --------------------------< test:mshared957 >---------------------------}}
{{ [INFO] Building mshared957 1.0-SNAPSHOT}}
{{ [INFO] --------------------------------[ jar ]---------------------------------}}
{{ [INFO] }}
{{ [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ mshared957 —}}
{{ [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!}}
{{ [INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/main/resources}}
{{ [INFO] }}
{{ [INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ mshared957 —}}
{{ [INFO] Nothing to compile - all classes are up to date}}
{{ [INFO] }}
{{ [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ mshared957 —}}
{{ [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!}}
{{ [INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/test/resources}}
{{ [INFO] }}
{{ [INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mshared957 —}}
{{ [INFO] No sources to compile}}
{{ [INFO] }}
{{ [INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ mshared957 —}}
{{ [INFO] No tests to run.}}
{{ [INFO] }}
{{ [INFO] — maven-jar-plugin:2.4:jar (default-jar) @ mshared957 —}}
{{ [INFO] }}
{{ [INFO] — maven-dependency-plugin:3.1.2:analyze-only (default) @ mshared957 —}}
{{ [INFO] ------------------------------------------------------------------------}}
{{ [INFO] BUILD FAILURE}}
{{ [INFO] ------------------------------------------------------------------------}}
{{ [INFO] Total time: 1.073 s}}
{{ [INFO] Finished at: 2020-09-16T15:42:50-07:00}}
{{ [INFO] ------------------------------------------------------------------------}}
{{ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only (default) on project mshared957: Execution default of goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only failed: Unsupported api 524288 -> [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 full debug logging.}}
{{ [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/PluginExecutionException]}}


was (Author: hgschmie):
unpack the attached archive

{{ % mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/henning/.local/share/apache-maven-3.6.3
Java version: 11.0.8, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.8.8-200.fc32.x86_64", arch: "amd64", family: "unix"
}}

You must use Java 11.

{{ % mvn verify
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< test:mshared957 >---------------------------
[INFO] Building mshared957 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mshared957 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ mshared957 ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /home/henning/src/bugs/MSHARED-957/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mshared957 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mshared957 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mshared957 ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mshared957 ---
[INFO] Building jar: /home/henning/src/bugs/MSHARED-957/target/mshared957-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:analyze-only (default) @ mshared957 ---
[WARNING] Unused declared dependencies found:
[WARNING]    net.jcip:jcip-annotations:jar:1.0:compile
[WARNING]    com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.487 s
[INFO] Finished at: 2020-09-16T15:42:00-07:00
[INFO] ------------------------------------------------------------------------
}}

{{ % mvn -Ddep.test=1.11.3 verify
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< test:mshared957 >---------------------------
[INFO] Building mshared957 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mshared957 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ mshared957 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mshared957 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/henning/src/bugs/MSHARED-957/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mshared957 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mshared957 ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mshared957 ---
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:analyze-only (default) @ mshared957 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.073 s
[INFO] Finished at: 2020-09-16T15:42:50-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only (default) on project mshared957: Execution default of goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only failed: Unsupported api 524288 -> [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 full debug logging.
[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/PluginExecutionException
}}



> API incompatibility between versions 1.11.1 and 1.11.2
> ------------------------------------------------------
>
>                 Key: MSHARED-957
>                 URL: https://issues.apache.org/jira/browse/MSHARED-957
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-dependency-analyzer
>         Environment: mvn --version
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /home/henning/.local/share/apache-maven-3.6.3
> Java version: 11.0.8, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "5.8.4-200.fc32.x86_64", arch: "amd64", family: "unix"
>            Reporter: Henning Schmiedehausen
>            Assignee: Elliotte Rusty Harold
>            Priority: Major
>         Attachments: MSHARED-957.tar.gz
>
>
> Using the dependency analyzer as an explicit dependency for the dependency plugin:
>  
> {quote}<plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <version>3.1.12</version>
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven.shared</groupId>
>       <artifactId>maven-dependency-analyzer</artifactId>
>       <version>1.11.1</version>
>     </dependency>
>   </dependencies>
> ...
> {quote}
> This works fine with version 1.11.1. Upgrading to 1.11.2 (or 1.11.3), which are supposed (at least that is implied by the semantic versioning) fully compatible to 1.11.1 yields
> {{ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only (default) on project duplicate-finder-maven-plugin: Execution default of goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:analyze-only failed: Unsupported api 524288 -> [Help 1]}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)