You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bob Ziuchkovski (Commented) (JIRA)" <ji...@apache.org> on 2012/03/13 04:32:02 UTC

[jira] [Commented] (FELIX-3385) Maven-bundle-plugin uses resolved version for embedded artifacts (Artifact.getVersion() vs Artifact.getBaseVersion())

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

Bob Ziuchkovski commented on FELIX-3385:
----------------------------------------

On second thought this change probably doesn't make sense.
                
> Maven-bundle-plugin uses resolved version for embedded artifacts (Artifact.getVersion() vs Artifact.getBaseVersion())
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3385
>                 URL: https://issues.apache.org/jira/browse/FELIX-3385
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.7
>            Reporter: Bob Ziuchkovski
>            Priority: Trivial
>         Attachments: maven-bundle-plugin-2.3.7-embedversion.patch
>
>
> When using the <Embed-Dependency> directive, dependencies are resolved via Artifact.getVersion() as opposed to Artifact.getBaseVersion().  This means SNAPSHOT versions of dependencies are fully resolved to artifacts such as mylib-1.0.0-20120307.090901-3.jar as opposed to mylib-2.0.0-SNAPSHOT.jar.  This causes problems when the project being built is a jar/war/etc. artifact, since the manifest generated by maven-bundle-plugin disagrees with the name of the dependency file copied.  I humbly propose changing the use of Artifact.getVersion() to Artifact.getBaseVersion() for embedded dependencies.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira