[ https://issues.apache.org/jira/browse/MSOURCES-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959374#comment-17959374 ]
Matthias Bünger commented on MSOURCES-141: ------------------------------------------ This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-source-plugin#200|https://github.com/apache/maven-source-plugin/issues/200]. Please visit the GitHub issue to view further activity, add comments, or subscribe to receive notifications. > 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 (Moved to GitHub Issues) > Issue Type: Bug > Affects Versions: 3.3.0 > Reporter: Olivier Lamy > Assignee: Olivier Lamy > Priority: Major > Fix For: backlog > > Attachments: issue-msources-141.zip > > > because 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)