maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giedrius Noreikis (JIRA)" <>
Subject [jira] (MECLIPSE-719) to-maven mojo does not handle source bundles correctly
Date Tue, 02 Apr 2013 22:21:52 GMT


Giedrius Noreikis commented on MECLIPSE-719:

I guess it's a duplicate of MECLIPSE-575.
> to-maven mojo does not handle source bundles correctly
> ------------------------------------------------------
>                 Key: MECLIPSE-719
>                 URL:
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9
>         Environment: Any eclipse SDK version
>            Reporter: Gabriele Catania
>            Priority: Minor
>         Attachments: build-post-patch.log, build-pre-patch.log, handle-sources.patch,
MECLIPSE-719-fix-key-2.patch, MECLIPSE-719-fix-key-3.patch, MECLIPSE-719-fix-key.patch, MECLIPSE-719.patch,
> the to-maven mojo does not install source bundles according to maven conventions. For
example, the following plugins:
> # {{org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar}}
> # {{org.eclipse.osgi.source_3.4.3.R34x_v20081215-1030.jar}}
> should be deployed respectively to:
> # {{M2_REPO/org/eclipse/osgi/3.4.3-R34x_v20081215-1030/osgi-3.4.3-R34x_v20081215-1030.jar}}
> # {{M2_REPO/org/eclipse/osgi/3.4.3-R34x_v20081215-1030/osgi-3.4.3-R34x_v20081215-1030-sources.jar}}
> instead, they are deployed here:
> # {{M2_REPO/org/eclipse/osgi/3.4.3-R34x_v20081215-1030/osgi-3.4.3-R34x_v20081215-1030.jar}}
> # {{M2_REPO/org/eclipse/osgi/}}{color:red}{{source/}}{color}{{3.4.3-R34x_v20081215-1030/}}{color:red}{{source}}{color}{{-3.4.3-R34x_v20081215-1030.jar}}
> To test this behaviour, I downloaded an eclipse sdk and ran the to-maven mojo in its
unpacked installation directory
> I am attaching a quick patch I devised to set the "sources" classifier on plugins whose
name ends with ".source". I tried to minimize code changes, a revised implementation should
probably modify {{createGroupId()}} and {{createArtifactId()}}, and avoid installing the pom
for the sources jar.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message