You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Alvarez (Jira)" <ji...@apache.org> on 2021/09/13 07:40:00 UTC

[jira] [Comment Edited] (MINSTALL-151) Projects without primary artifacts, but with attachment artifacts fail install

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

Guillaume Alvarez edited comment on MINSTALL-151 at 9/13/21, 7:39 AM:
----------------------------------------------------------------------

We had the same issue with 3.0.0.M1 when defining a doc project to produce an xxxx-apidoc.jar artefact.

We just set the classifier to 'apidoc' when building our jar, so I am very surprised it fails to find it using <packaging>jar</packaging>....

Is there any simple solution for maven-install-plugin to use a jar with a custom classifier?


was (Author: guillaume alvarez):
We had the same issue with 3.0.0.M1 when defining a doc project to produce an xxxx-apidoc.jar artefact.

We just set the classifier to 'apidoc' when building our jar, so I am very surprised it fails to find it using <packaging>jar</packaging>....

Is there any simple solution in that case?

> Projects without primary artifacts, but with attachment artifacts fail install
> ------------------------------------------------------------------------------
>
>                 Key: MINSTALL-151
>                 URL: https://issues.apache.org/jira/browse/MINSTALL-151
>             Project: Maven Install Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0-M1
>            Reporter: Peter Huffer
>            Priority: Major
>         Attachments: minstall-151.zip
>
>
> I have a module which has a packaging of {{feature}} from the {{karaf-maven-plugin}}. When running the {{mvn install}} command, the following error occurs:
> {code:java}
> Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install (default-install) on project <project_name>: 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]
> {code}
> Reverting back to version {{2.5.2}} made the {{mvn install}} command succeed.



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