+1

I always remove the repo from the repositories.list (by commenting it) but it would be really helpful to have an offline mode.

Regards
JB

On 12/16/2011 11:57 AM, Gert Vanthienen wrote:
L.S.,


Wouldn't it be a good idea to raise an enhancement JIRA for Pax Url to
allow switching it to offline mode (similar to what the -o flag does for
Maven itself) to make this a bit more straightforward to configure?


Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/


On Fri, Dec 16, 2011 at 11:27 AM, Guillaume Nodet<[email protected]>  wrote:

IIRC, if you remove all repositories from the
org.ops4j.pax.url,mvn.repositories, it will use its default list.
Try to set if a value such as
file:${karaf.home}/${karaf.default.repository}@snapshots which will
point to the system folder.

On Thu, Dec 15, 2011 at 23:48, Calvert, Zach (Zach)** CTR **
<[email protected]>  wrote:
I'm working on a ServiceMix stack and want to lock it down such that the
only repositories it will look for jars is in the local repository.  I have
configured the org.ops4j.pax.url.mvn.cfg file to have an empty value for
org.ops4j.pax.url.mvn.repositories, yet it still downloads.

Sadly, my google fu isn't strong enough to find the solution as
mvn|maven returns all kinds of build queries and questions, and
downloads|downloading gives me all kinds of nice info on downloading
servicemix, but not how to lock down the maven consumption.

We did find
http://fusesource.com/docs/esb/4.4/esb_deploy_osgi/Locate-RunTime.html,
but we still get downloads after making the above configuration.  I ran
tcpdump after removing the data directory and then re-start servicemix, and
then I get download activity like
GET
/content/groups/pax-runner/org/springframework/spring-context-support/3.0.5.RELEASE/spring-context-support-3.0.5.RELEASE.jar

The only two properties I have configured in
org.ops4j.pax.url.mvn.repositories are

org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/${karaf.default.repository}@snapshots
org.ops4j.pax.url.mvn.repositories=

I am using Apache ServiceMix 4.3.0 on a CentOS machine.

Any and all help would be greatly appreciated.



Happy Holidays and thanks for the help,
Zach Calvert



--
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com



--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to