On Sunday, 14 December 2014 at 17:32, Srikanth Hugar wrote:
>  
> I am using default org.ops4j.pax.url.mvn.cfg file comes with karaf 3.0.0.
> But i am facing lot of problems like, .m2 directory is created in user home 
> directory with all the bundles available there.
>  
> And if i update the bundles, bundle is not actually updating, if i replace in 
> system directory, it stills takes bundle from .m2 directory.
>  
> How can i configure to use only system directory as repository?  
>  
> I would like to avoid creating .m2 directory and i would like not to refer 
> any remote repo.
>  
> org.ops4j.pax.url.mvn.useFallbackRepositories=false
>  
> org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote=false
FYI if you want to disable this setting then comment this line out, as there’s 
a bug in pax-url where it assumes that if this is property is set at all (even 
if set to false) then treat it as true:

https://github.com/ops4j/org.ops4j.pax.url/blob/master/pax-url-aether/src/main/java/org/ops4j/pax/url/mvn/internal/config/MavenConfigurationImpl.java#L294

whereas if you comment out this line then the 
“org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote” property won’t be set, and 
pax-url will not add the local repository as a remote one
> org.ops4j.pax.url.mvn.repositories= \
>     http://repo1.maven.org/maven2@id=central, \
>     
> http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release,
>  \
>     
> http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external,
>  \
>     file:${karaf.home}/${karaf.default.repository}@id=system.repository, \
>     file:${karaf.data}/kar@id=kar.repository@multi
>  
>  
>  


Reply via email to