You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jacques-Etienne Beaudet (Jira)" <ji...@apache.org> on 2023/05/30 16:34:00 UTC

[jira] [Commented] (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=17727615#comment-17727615 ] 

Jacques-Etienne Beaudet commented on MINSTALL-151:
--------------------------------------------------

[~cstamas] Thanks for the escape hatch, however it logs a warning indicating this might break in the future, and it's a bit unfortunate to have to specify the install plugin version along with this special configuration, I'd rather stay vanilla. 

Given the use cases mentioned here by different users, what is the way forward not to have to diverge from the vanilla and avoid the warning?

Thanks

> 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
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 3.1.1
>
>         Attachments: minstall-151-example-PeterSchloemer.zip, minstall-151.zip, mvn-install-fail.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.20.10#820010)