[ 
https://issues.apache.org/jira/browse/MDEPLOY-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Slawomir Jaranowski closed MDEPLOY-324.
---------------------------------------
      Assignee: Slawomir Jaranowski
    Resolution: Fixed

Fixed by: https://github.com/apache/maven-deploy-plugin/pull/102

> failed: An API incompatibility was encountered
> ----------------------------------------------
>
>                 Key: MDEPLOY-324
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-324
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 4.0.0-beta-1
>         Environment: $> mvn --version                                         
>                                                                               
>                                                Apache Maven 4.0.0-beta-4 
> (697c543b4e3bbec1b99e9d4d1ee8e0302e748f09)
> Maven home: /Users/khm/tools/apache-maven-4.0.0-beta-4
> Java version: 22.0.2, vendor: Eclipse Adoptium, runtime: 
> /Users/khm/.sdkman/candidates/java/22.0.2-tem
> Default locale: en_DE, platform encoding: UTF-8
> OS name: "mac os x", version: "14.6.1", arch: "aarch64", family: "mac"
>            Reporter: Karl Heinz Marbaise
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 4.0.0
>
>
> Trying to use maven-deploy-plugin with Maven 4.0.0-beta-4 fail with the 
> following:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1:deploy 
> (default-deploy) on project maven-buch: Execution default-deploy of goal 
> org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1:deploy failed: An 
> API incompatibility was encountered while executing 
> org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1:deploy: 
> java.lang.NoSuchMethodError: 'org.apache.maven.api.Artifact 
> org.apache.maven.api.Project.getPomArtifact()'
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    
> plugin>org.apache.maven.plugins:maven-deploy-plugin:4.0.0-beta-1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/Users/khm/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/4.0.0-beta-1/maven-deploy-plugin-4.0.0-beta-1.jar
> [ERROR] urls[1] = 
> file:/Users/khm/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/4.0.0-beta-1/maven-plugin-annotations-4.0.0-beta-1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm ClassRealm[maven.api.v4, 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] 
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to