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

Matthias Bünger commented on MSOURCES-31:
-----------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-source-plugin#120|https://github.com/apache/maven-source-plugin/issues/120].
 

> forking lifecycle of source:jar goal results in release-plugin error
> --------------------------------------------------------------------
>
>                 Key: MSOURCES-31
>                 URL: https://issues.apache.org/jira/browse/MSOURCES-31
>             Project: Maven Source Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: maven 2.0.8
>            Reporter: Sandro Sonntag
>            Priority: Blocker
>
> In my complex scenario the release plugin fails because the source:jar goal 
> forks a new lifcycle "generate-sources".
> "source:jar" is decalared in the project pom to build automaticly. The error 
> occours if there are plugins attached on the "generate-sources" phase 
> how need artifacts of the reactor build.
> In my case the xdoclet and attributes plugins are attached.
> The following error occoures if I use the release plugin:
> Missing:
>         ----------
>         1) de.kqv.ec.tarif:tarif-freundschaftswerbung-businesslogic:jar:1.0
>           Try downloading the file manually from the project website.
>           Then, install it using the command:
>               mvn install:install-file -DgroupId=de.kqv.ec.tarif 
> -DartifactId=tarif-freundschaftswerbung-businesslogic -Dversion=1.0 
> -Dpackaging=jar -
> Dfile=/path/to/file
>           Alternatively, if you host your own repository you can deploy the 
> file there:
>               mvn deploy:deploy-file -DgroupId=de.kqv.ec.tarif 
> -DartifactId=tarif-freundschaftswerbung-businesslogic -Dversion=1.0 
> -Dpackaging=jar -Df
> ile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>           Path to dependency:
>                 1) 
> de.kqv.ec.tarif:tarif-freundschaftswerbung-businesslogic-ejb:ejb:1.0
>                 2) 
> de.kqv.ec.tarif:tarif-freundschaftswerbung-businesslogic:jar:1.0
> If I remove the source plugin all workes fine. There is no possible 
> workaround know. A solution could be to remove the "execute phase" of the 
> plugin. I cant
> imagine that somebody use the goal standalone. I thing its a general Maven 
> design problem.
> Forking a phase sould only be executed if the goal is running standalone. But 
> I´m not the expert.
> Greetings Sandro



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

Reply via email to