You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2008/08/08 13:48:53 UTC

[jira] Created: (SMX4KNL-70) Bundles in /system folder should take precendence over local Maven repository

Bundles in /system folder should take precendence over local Maven repository
-----------------------------------------------------------------------------

                 Key: SMX4KNL-70
                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-70
             Project: ServiceMix Kernel
          Issue Type: Bug
    Affects Versions: 1.0.0-rc2
            Reporter: Gert Vanthienen
             Fix For: 1.0.0


When a bundle is available in the /system folder and in the local Maven repo, the kernel takes the one from the local Maven repository.  While very convenient for development purposes, this is a problem for a user who can now unknowingly change the bundles used by ServiceMix.

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


[jira] Commented: (SMX4KNL-70) Bundles in /system folder should take precendence over local Maven repository

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45168#action_45168 ] 

Guillaume Nodet commented on SMX4KNL-70:
----------------------------------------

I guess this would mainly be a problem for snapshots.  The problem is that the local repo is always added as the first repository to check, unless a repository is explicitely specified in the maven url.  If the user wants to be sure which jar is deployed, there is still the possibility to drop it in the deploy folder.  Wdyt ?

> Bundles in /system folder should take precendence over local Maven repository
> -----------------------------------------------------------------------------
>
>                 Key: SMX4KNL-70
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-70
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>    Affects Versions: 1.0.0-rc2
>            Reporter: Gert Vanthienen
>             Fix For: 1.0.0
>
>
> When a bundle is available in the /system folder and in the local Maven repo, the kernel takes the one from the local Maven repository.  While very convenient for development purposes, this is a problem for a user who can now unknowingly change the bundles used by ServiceMix.

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


[jira] Resolved: (SMX4KNL-70) Bundles in /system folder should take precendence over local Maven repository

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SMX4KNL-70.
------------------------------------

      Assignee: Guillaume Nodet
    Resolution: Fixed

Sending        assembly/src/main/distribution/text/etc/org.ops4j.pax.url.mvn.cfg
Transmitting file data .
Committed revision 692484.

> Bundles in /system folder should take precendence over local Maven repository
> -----------------------------------------------------------------------------
>
>                 Key: SMX4KNL-70
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-70
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>    Affects Versions: 1.0.0-rc2
>            Reporter: Gert Vanthienen
>            Assignee: Guillaume Nodet
>             Fix For: 1.0.0
>
>
> When a bundle is available in the /system folder and in the local Maven repo, the kernel takes the one from the local Maven repository.  While very convenient for development purposes, this is a problem for a user who can now unknowingly change the bundles used by ServiceMix.

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


[jira] Commented: (SMX4KNL-70) Bundles in /system folder should take precendence over local Maven repository

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45473#action_45473 ] 

Guillaume Nodet commented on SMX4KNL-70:
----------------------------------------

I don't think we can easily change the order of the local repository.
However, we can do the following:

{code}
org.ops4j.pax.url.mvn.localRepository=file:${servicemix.home}/system@snapshots
org.ops4j.pax.url.mvn.repositories=file:${user.home}/.m2/repository@snapshots,http://repo1.maven.org/maven2
{code}

This means that the system folder would be used as the local repository, then the ~/.m2/repository is checked, last the central repo.
I think we would achieve the desired effect which is to look into the system folder first.

> Bundles in /system folder should take precendence over local Maven repository
> -----------------------------------------------------------------------------
>
>                 Key: SMX4KNL-70
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-70
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>    Affects Versions: 1.0.0-rc2
>            Reporter: Gert Vanthienen
>             Fix For: 1.0.0
>
>
> When a bundle is available in the /system folder and in the local Maven repo, the kernel takes the one from the local Maven repository.  While very convenient for development purposes, this is a problem for a user who can now unknowingly change the bundles used by ServiceMix.

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