Victoria created MDEPLOY-288:
--------------------------------

             Summary: Deploy is failed when no primary artifact is present
                 Key: MDEPLOY-288
                 URL: https://issues.apache.org/jira/browse/MDEPLOY-288
             Project: Maven Deploy Plugin
          Issue Type: Bug
    Affects Versions: 3.0.0-M1
            Reporter: Victoria


We have a project without primary artifact.

Previously, we were using _maven-deploy-plugin:2.7_ and everything worked as 
expected: attached artifacts were deployed instead.

Works the same way with version _2.8.2_.

 
{quote}{{[16:58:57] : [Step 2/2] [INFO] --- maven-deploy-plugin:2.7:deploy 
(default-deploy) @ project-without-primary-artifact ---}}{{[16:58:57] : [Step 
2/2] [INFO] No primary artifact to deploy, deploying attached artifacts 
instead.}}{{[16:58:57] : [Step 2/2] Uploading: 
https://<repo>/project-without-primary-artifact/1.0-v5/project-without-primary-artifact-1.0-v5.pom}}{{[16:58:57]
 : [Step 2/2] Uploaded: 
https://<repo>/project-without-primary-artifact/1.0-v5/project-without-primary-artifact-1.0-v5.pom
 (12 KB at 21.0 KB/sec)}}{{[16:58:58] : [Step 2/2] Uploading: 
https://<repo>/project-without-primary-artifact/maven-metadata.xml}}{{[16:58:59]
 : [Step 2/2] Uploaded: 
https://<repo>/project-without-primary-artifact/maven-metadata.xml (2 KB at 4.8 
KB/sec)}}{{[16:58:59] : [Step 2/2] Uploading: 
https://<repo>/project-without-primary-artifact/1.0-v5/project-without-primary-artifact-1.0-v5.zip}}{{[16:58:59]
 : [Step 2/2] Uploaded: 
https://<repo>/project-without-primary-artifact/1.0-v5/project-without-primary-artifact-1.0-v5.zip
 (42 KB at 67.3 KB/sec)}}{{[16:58:59] : [Step 2/2] [INFO] 
------------------------------------------------------------------------}}{{[16:58:59]
 : [Step 2/2] [INFO] BUILD SUCCESS}}{{[16:58:59] : [Step 2/2] [INFO] 
------------------------------------------------------------------------}}{{[16:58:59]
 : [Step 2/2] [INFO] Total time: 30.067s}}{{[16:58:59] : [Step 2/2] [INFO] 
Finished at: Tue Feb 25 16:58:59 UTC 2020}}{{[16:59:00] : [Step 2/2] [INFO] 
Final Memory: 68M/724M}}{{[16:59:00] : [Step 2/2] [INFO] 
------------------------------------------------------------------------}}{{[16:59:00]
 : [Step 2/2] Process exited with code 0}}{quote}
 
 
However, after upgrading to _maven-deploy-plugin:3.0.0-M1_ the same build fails:
 
{quote}{{[15:44:53] : [Step 2/2] [INFO] --- maven-deploy-plugin:3.0.0-M1:deploy 
(default-deploy) @ project-without-primary-artifact ---}}{{[15:44:53] : [Step 
2/2] [Maven Watcher]}}{{[15:44:53]E: [Step 2/2] Failed to execute goal 
org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) 
on project project-without-primary-artifact: 
NoFileAssignedException}}{{[15:44:53] : [Step 2/2] [INFO] 
------------------------------------------------------------------------}}{{[15:44:53]
 : [Step 2/2] [INFO] BUILD FAILURE}}{{[15:44:53] : [Step 2/2] [INFO] 
------------------------------------------------------------------------}}{{[15:44:53]
 : [Step 2/2] [INFO] Total time: 26.250 s}}{{[15:44:53] : [Step 2/2] [INFO] 
Finished at: 2021-10-08T15:44:53+00:00}}{{[15:44:54] : [Step 2/2] [INFO] Final 
Memory: 78M/921M}}{{[15:44:54] : [Step 2/2] [INFO] 
------------------------------------------------------------------------}}{{[15:44:54]W:
 [Step 2/2] [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) 
on project project-without-primary-artifact: NoFileAssignedException: The 
packaging plugin for this project did not assign a main file to the project but 
it has attachments. Change packaging to 'pom'. -> [Help 1]}}
 {quote} 
Similar issue appears in _maven-install-plugin:3.0.0-M1_: 
https://issues.apache.org/jira/browse/MINSTALL-151 



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

Reply via email to