You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hans Aikema (Jira)" <ji...@apache.org> on 2023/09/19 08:00:00 UTC

[jira] [Updated] (MSOURCES-141) Check duplication of attached jar should be configurable to not fail when using the build cache

     [ https://issues.apache.org/jira/browse/MSOURCES-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hans Aikema updated MSOURCES-141:
---------------------------------
    Attachment: issue-msources-141.zip

> Check duplication of attached jar should be configurable to not fail when using the build cache
> -----------------------------------------------------------------------------------------------
>
>                 Key: MSOURCES-141
>                 URL: https://issues.apache.org/jira/browse/MSOURCES-141
>             Project: Maven Source Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: Olivier Lamy
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 3.3.1
>
>         Attachments: issue-msources-141.zip
>
>
> because https://issues.apache.org/jira/browse/MSOURCES-121 using source jar mojo and build cache generate an error as the cache restore a project with attached artifacts and so the source mojo fail because of this.
> {code}
> Caused by: org.apache.maven.plugin.MojoExecutionException: Presumably you have configured maven-source-plugn to execute twice times in your build. You have to configure a classifier for at least on of them.
>     at org.apache.maven.plugins.source.AbstractSourceJarMojo.packageSources (AbstractSourceJarMojo.java:309)
>     at org.apache.maven.plugins.source.AbstractSourceJarMojo.packageSources (AbstractSourceJarMojo.java:257)
>     at org.apache.maven.plugins.source.AbstractSourceJarMojo.execute (AbstractSourceJarMojo.java:225)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
>     at org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.restoreProject (BuildCacheMojosExecutionStrategy.java:224)
>     at org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.execute (BuildCacheMojosExecutionStrategy.java:131)
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)