jira-importer opened a new issue, #200:
URL: https://github.com/apache/maven-source-plugin/issues/200

   **[Olivier 
Lamy](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=olamy)** 
opened 
**[MSOURCES-141](https://issues.apache.org/jira/browse/MSOURCES-141?redirect=false)**
 and commented
   
   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.
   
   ```
   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)
   ```
   
   
   
   ---
   
   **Affects:** 3.3.0
   
   **Attachments:**
   - 
[issue-msources-141.zip](https://issues.apache.org/jira/secure/attachment/13063024/issue-msources-141.zip)
 (_2.00 kB_)
   
   **Issue Links:**
   - [MSOURCES-121](https://issues.apache.org/jira/browse/MSOURCES-121) Check 
for duplicated addition of the same file
    (_**"is caused by"**_)
   - [MSOURCES-140](https://issues.apache.org/jira/browse/MSOURCES-140) Build 
fails when using install deploy
   
   
   1 votes, 4 watchers
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to