jira-importer opened a new issue, #410:
URL: https://github.com/apache/maven-deploy-plugin/issues/410

   **[Lars 
Schmertmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER306084)**
 opened 
**[MDEPLOY-321](https://issues.apache.org/jira/browse/MDEPLOY-321?redirect=false)**
 and commented
   
   We have a project where we deploy the following files:
   
   ```
   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
   ```
   
   We are using the following commands:
   
   ```
   /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
   ```
   
   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:
   
   ```
   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
   ```
   
   
   
   ---
   
   **Affects:** 3.1.2
   
   **Issue Links:**
   - [MDEPLOY-311](https://issues.apache.org/jira/browse/MDEPLOY-311) 
Regression in 3.0.0: deploy-file: -Dpackaging is not considered during artifact 
upload
    (_**"is fixed by"**_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to