maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning Schmiedehausen (Jira)" <j...@apache.org>
Subject [jira] [Commented] (MSHARED-957) API incompatibility between versions 1.11.1 and 1.11.2
Date Thu, 17 Sep 2020 20:05:00 GMT

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

Henning Schmiedehausen commented on MSHARED-957:
------------------------------------------------

That is interesting. I only ever saw that problem ("invalid flag") when using JDK8 to run
maven because the compiler does not have this command line parameter.

Anyway, this is basically back to the original bug report; which actually is that the versioning
is confusing. If the 1.11.2 release would have been called "12.0.0", it would have been obvious
that this is not 'drop in compatible'. But by being named, the assumption for me (and probably
many others) exists. It seems that this assumption is wrong and it may be good to state that
explicitly. 

> 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: Task
>          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)

Mime
View raw message