You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "I-Ann Chen (JIRA)" <ji...@apache.org> on 2008/01/12 00:34:33 UTC

[jira] Created: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

Incorrect URI generated by obr-plugin:deploy
--------------------------------------------

                 Key: FELIX-457
                 URL: https://issues.apache.org/jira/browse/FELIX-457
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
            Reporter: I-Ann Chen


When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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


[jira] Updated: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

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

Stuart McCulloch updated FELIX-457:
-----------------------------------

    Fix Version/s:     (was: 1.0.1)
                   1.2.0

> Incorrect URI generated by obr-plugin:deploy
> --------------------------------------------
>
>                 Key: FELIX-457
>                 URL: https://issues.apache.org/jira/browse/FELIX-457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
>            Reporter: I-Ann Chen
>            Assignee: Stuart McCulloch
>             Fix For: 1.2.0
>
>
> When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
> I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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


[jira] Updated: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

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

Stuart McCulloch updated FELIX-457:
-----------------------------------

          Component/s:     (was: Bundle Repository (OBR))
                       Maven OBR Plugin
        Fix Version/s: 1.0.1
             Assignee: Stuart McCulloch
    Affects Version/s: 1.0.0

> Incorrect URI generated by obr-plugin:deploy
> --------------------------------------------
>
>                 Key: FELIX-457
>                 URL: https://issues.apache.org/jira/browse/FELIX-457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
>            Reporter: I-Ann Chen
>            Assignee: Stuart McCulloch
>             Fix For: 1.0.1
>
>
> When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
> I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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


[jira] Resolved: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

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

Stuart McCulloch resolved FELIX-457.
------------------------------------

    Resolution: Fixed

I've made several changes to use URIs throughout the code, and removed the PathFile class.
Could you try the latest plugin (either use the 1.2.0-SNAPSHOT build, or compile from trunk)
and let me know if it solves your issue.

FYI, you can use the following snapshot plugin repository to download the 1.2.0-SNAPSHOT:

  <pluginRepositories>
    <pluginRepository>
      <id>ops4j-snapshots</id>
      <url>http://repository.ops4j.org/mvn-snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-obr-plugin</artifactId>
        <version>1.2.0-SNAPSHOT</version>
      </plugin>
    </plugins>
  </build>


> Incorrect URI generated by obr-plugin:deploy
> --------------------------------------------
>
>                 Key: FELIX-457
>                 URL: https://issues.apache.org/jira/browse/FELIX-457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
>            Reporter: I-Ann Chen
>            Assignee: Stuart McCulloch
>             Fix For: 1.2.0
>
>
> When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
> I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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


[jira] Commented: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561208#action_12561208 ] 

Stuart McCulloch commented on FELIX-457:
----------------------------------------

Also, File.separatorChar is not used is because '\' does not represent a path separator for a URI, which is what PathFile expects...

> Incorrect URI generated by obr-plugin:deploy
> --------------------------------------------
>
>                 Key: FELIX-457
>                 URL: https://issues.apache.org/jira/browse/FELIX-457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
>            Reporter: I-Ann Chen
>            Assignee: Stuart McCulloch
>             Fix For: 1.0.1
>
>
> When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
> I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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


[jira] Commented: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561206#action_12561206 ] 

Stuart McCulloch commented on FELIX-457:
----------------------------------------

FYI, the change to extractFileName was introduced by FELIX-370 to fix problems with installing files on Windows. Changing it back will break the other goals in the maven-obr-plugin. Instead we should fix the deploy goal(s) so that they normalize the path passed to the PathFile class, as done by the install goal(s).

> Incorrect URI generated by obr-plugin:deploy
> --------------------------------------------
>
>                 Key: FELIX-457
>                 URL: https://issues.apache.org/jira/browse/FELIX-457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
>            Reporter: I-Ann Chen
>            Assignee: Stuart McCulloch
>             Fix For: 1.0.1
>
>
> When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
> I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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


[jira] Commented: (FELIX-457) Incorrect URI generated by obr-plugin:deploy

Posted by "I-Ann Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563694#action_12563694 ] 

I-Ann Chen commented on FELIX-457:
----------------------------------

It worked. Thank you.

> Incorrect URI generated by obr-plugin:deploy
> --------------------------------------------
>
>                 Key: FELIX-457
>                 URL: https://issues.apache.org/jira/browse/FELIX-457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>         Environment: Windows XP, Java 1.6.0_02, Maven 2.0.8, maven-obr-plugin-1.0.0 (release)
>            Reporter: I-Ann Chen
>            Assignee: Stuart McCulloch
>             Fix For: 1.2.0
>
>
> When I tried deploying to a remote repository, the URI generated by the maven-obr-plugin was './C:/MAVEN_REPO/foo.jar' instead of './foo.jar'
> I believe this is because the extractFileName method in the PathFile class is using '/' instead of File.seperatorChar because after I replaced that, it worked as expected.

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