You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jan-David Salchow (JIRA)" <ji...@apache.org> on 2008/12/28 01:38:44 UTC

[jira] Created: (FELIX-864) A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.

A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.
----------------------------------------------------------------------------------

                 Key: FELIX-864
                 URL: https://issues.apache.org/jira/browse/FELIX-864
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-1.4.3
            Reporter: Jan-David Salchow


If the symbolic of a bundle is calculated wrong if the artifact id starts with the last segment of the group id. In this case bundle:manifest generates the correct symbolic name but bundle:bundle an package (packaging bundle) fail to remove the first part of the artifact id. This is due to a bug in the maven shared osgi component which assumes, that artifact.getFile() returns a jar file, not a directory if artifact.getFile() != null and arifact.getFile().exists evaluate to true. 

In the supplied test project mvn bundle:manifest generates the symbolic name my.test.artifact and mvn package generates my.test.test.artifact.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-864) A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.

Posted by "Jan-David Salchow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659403#action_12659403 ] 

Jan-David Salchow commented on FELIX-864:
-----------------------------------------

see http://jira.codehaus.org/browse/MSHARED-86

> A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-864
>                 URL: https://issues.apache.org/jira/browse/FELIX-864
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.3
>            Reporter: Jan-David Salchow
>         Attachments: test-artifact.tar.bz2
>
>
> If the symbolic of a bundle is calculated wrong if the artifact id starts with the last segment of the group id. In this case bundle:manifest generates the correct symbolic name but bundle:bundle an package (packaging bundle) fail to remove the first part of the artifact id. This is due to a bug in the maven shared osgi component which assumes, that artifact.getFile() returns a jar file, not a directory if artifact.getFile() != null and arifact.getFile().exists evaluate to true. 
> In the supplied test project mvn bundle:manifest generates the symbolic name my.test.artifact and mvn package generates my.test.test.artifact.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-864) A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.

Posted by "Jan-David Salchow (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan-David Salchow updated FELIX-864:
------------------------------------

    Attachment: test-artifact.tar.bz2

test case

> A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-864
>                 URL: https://issues.apache.org/jira/browse/FELIX-864
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.3
>            Reporter: Jan-David Salchow
>         Attachments: test-artifact.tar.bz2
>
>
> If the symbolic of a bundle is calculated wrong if the artifact id starts with the last segment of the group id. In this case bundle:manifest generates the correct symbolic name but bundle:bundle an package (packaging bundle) fail to remove the first part of the artifact id. This is due to a bug in the maven shared osgi component which assumes, that artifact.getFile() returns a jar file, not a directory if artifact.getFile() != null and arifact.getFile().exists evaluate to true. 
> In the supplied test project mvn bundle:manifest generates the symbolic name my.test.artifact and mvn package generates my.test.test.artifact.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-864) A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch reassigned FELIX-864:
--------------------------------------

    Assignee: Stuart McCulloch

> A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-864
>                 URL: https://issues.apache.org/jira/browse/FELIX-864
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.3
>            Reporter: Jan-David Salchow
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.6.0
>
>         Attachments: test-artifact.tar.bz2
>
>
> If the symbolic of a bundle is calculated wrong if the artifact id starts with the last segment of the group id. In this case bundle:manifest generates the correct symbolic name but bundle:bundle an package (packaging bundle) fail to remove the first part of the artifact id. This is due to a bug in the maven shared osgi component which assumes, that artifact.getFile() returns a jar file, not a directory if artifact.getFile() != null and arifact.getFile().exists evaluate to true. 
> In the supplied test project mvn bundle:manifest generates the symbolic name my.test.artifact and mvn package generates my.test.test.artifact.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-864) A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch resolved FELIX-864.
------------------------------------

       Resolution: Duplicate
    Fix Version/s: maven-bundle-plugin-1.6.0

Duplicate of FELIX-850, fixed locally in trunk while we await a new release of the Maven shared OSGi component.

> A wrong symbolic name is calculated if artifactId starts with lastGroupIdSegment-.
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-864
>                 URL: https://issues.apache.org/jira/browse/FELIX-864
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.3
>            Reporter: Jan-David Salchow
>             Fix For: maven-bundle-plugin-1.6.0
>
>         Attachments: test-artifact.tar.bz2
>
>
> If the symbolic of a bundle is calculated wrong if the artifact id starts with the last segment of the group id. In this case bundle:manifest generates the correct symbolic name but bundle:bundle an package (packaging bundle) fail to remove the first part of the artifact id. This is due to a bug in the maven shared osgi component which assumes, that artifact.getFile() returns a jar file, not a directory if artifact.getFile() != null and arifact.getFile().exists evaluate to true. 
> In the supplied test project mvn bundle:manifest generates the symbolic name my.test.artifact and mvn package generates my.test.test.artifact.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.