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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/11 08:37:57 UTC
[jira] [Created] (FELIX-3385) Maven-bundle-plugin uses resolved
version for embedded artifacts (Artifact.getVersion() vs
Artifact.getBaseVersion())
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
[jira] [Closed] (FELIX-3385) Maven-bundle-plugin uses resolved
version for embedded artifacts (Artifact.getVersion() vs
Artifact.getBaseVersion())
Posted by "Bob Ziuchkovski (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Ziuchkovski closed FELIX-3385.
----------------------------------
Resolution: Not A Problem
This can be worked-around with configuration changes...the change probably doesn't make much 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
[jira] [Commented] (FELIX-3385) Maven-bundle-plugin uses resolved
version for embedded artifacts (Artifact.getVersion() vs
Artifact.getBaseVersion())
Posted by "Bob Ziuchkovski (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (FELIX-3385) Maven-bundle-plugin uses resolved
version for embedded artifacts (Artifact.getVersion() vs
Artifact.getBaseVersion())
Posted by "Bob Ziuchkovski (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Ziuchkovski updated FELIX-3385:
-----------------------------------
Attachment: maven-bundle-plugin-2.3.7-embedversion.patch
Trivial patch
> 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