[
http://jira.codehaus.org/browse/CBUILDS-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175413#action_175413
]
Lee Thompson commented on CBUILDS-43:
-------------------------------------
Existing maven plugins do almost all of the work of
project-sources-maven-plugin so instead of refactoring this plugin, I will
deprecate it entirely. Remote-sources-maven-plugin is also going to be
deprecated.
You can grab tarballs off the internet with wagon-maven-plugin noting that
WAGON-264 bug when dealing with mis-configured websites will cause the tarball
to be corrupted. The fix to WAGON-264 is for the http/https implementation to
not ask for compression when it makes an HTTP request and should be an easy fix.
build-helper-maven-plugin can be used to attach the tarball to a project so the
artifact will be deployed. This works very well.
maven-dependency-plugin can copy or fetch/unpack the tarball into another
project noting that there are numerous bugs in the Java implementation of the
tar extractor in Plexus (PLXCOMP-64, PLXCOMP-69, PLXCOMP-78, PLXCOMP-122).
These bugs are more complex than the WAGON issue so I will add a unpack goal to
make-maven-plugin. With unpack implemented, project-sources-maven-plugin can
be deleted entirely. A project needing a tarball that hits a plexus bug, would
use maven-dependency-plugin to copy the tarball make-maven-plugin to unpack it
efectively getting around the plexus implementation.
> project-sources-maven-plugin can be refactored quite a bit
> ----------------------------------------------------------
>
> Key: CBUILDS-43
> URL: http://jira.codehaus.org/browse/CBUILDS-43
> Project: Mojo C Builds
> Issue Type: Improvement
> Affects Versions: 1.0-alpha-5, 1.0-alpha-6
> Reporter: Lee Thompson
> Fix For: 1.0-beta-1
>
>
> project-sources-maven-plugin uses a "DerivedArtifact" object implemented in
> cbuild-utils.
> The implementation could be switched, obsoleting DerivedArtifact, in favor of
> maven's internal "AttachedArtifact" as used in the rpm-maven-plugin.
> With this implementation, the lifecycle can be compressed as the
> DeployProjectSourcesMojo.java can be removed as can the DerivedArtifact.java
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email