[ https://issues.apache.org/jira/browse/MNG-8173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17863003#comment-17863003 ]
Michael Osipov commented on MNG-8173: ------------------------------------- Does 3.8.8 work as well? > -Dpackaging= is ignored when using mvn deploy:deploy-file > --------------------------------------------------------- > > Key: MNG-8173 > URL: https://issues.apache.org/jira/browse/MNG-8173 > Project: Maven > Issue Type: Bug > Components: Command Line, Deployment > Affects Versions: 3.9.6, 3.9.7, 3.9.8 > Environment: Archlinux > Reporter: Lars Schmertmann > Priority: Major > > We have a project where we deploy the following files: > {code} > ausweisapp-2.2.0.aar > ausweisapp-2.2.0.aar.asc > ausweisapp-2.2.0.pom > ausweisapp-2.2.0.pom.asc > ausweisapp-2.2.0-sources.jar > ausweisapp-2.2.0-sources.jar.asc > {code} > We are using the following commands: > {code} > /usr/bin/mvn deploy:deploy-file -Dfile=ausweisapp-2.2.0.aar > -DpomFile=ausweisapp-2.2.0.pom -Dsources=ausweisapp-2.2.0-sources.jar > -DrepositoryId=nexus > -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2 > --settings settings.xml > /usr/bin/mvn deploy:deploy-file -Dfile=ausweisapp-2.2.0.aar.asc > -Dpackaging=aar.asc -Dclassifier= -DpomFile=ausweisapp-2.2.0.pom > -DrepositoryId=nexus > -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2 > --settings settings.xml > /usr/bin/mvn deploy:deploy-file -Dfile=ausweisapp-2.2.0.pom.asc > -Dpackaging=pom.asc -Dclassifier= -DpomFile=ausweisapp-2.2.0.pom > -DrepositoryId=nexus > -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2 > --settings settings.xml > /usr/bin/mvn deploy:deploy-file -Dfile=ausweisapp-2.2.0-sources.jar.asc > -Dpackaging=jar.asc -Dclassifier=sources -DpomFile=ausweisapp-2.2.0.pom > -DrepositoryId=nexus > -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2 > --settings settings.xml > {code} > With 3.8.7 everythings works fine. But at least with 3.9.6 - 3.9.8 > `-Dpackaging=` is ignored. > This leads to the following renames during deployment and the signature check > fails: > {code} > ausweisapp-2.2.0.aar.asc -> ausweisapp-2.2.0.asc > ausweisapp-2.2.0.pom.asc -> ausweisapp-2.2.0.asc > ausweisapp-2.2.0-sources.jar.asc -> ausweisapp-2.2.0-sources.asc > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)