Hi Srikanth,
Take a look on the latest one provided in the Karaf distribution:
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob_plain;f=assemblies/features/framework/src/main/resources/resources/etc/org.ops4j.pax.url.mvn.cfg;hb=karaf-3.0.x
Now, we changed to use a production like distribution meaning:
- all required bundles are in the system folder (no need to have access
to Internet to start Karaf)
- for .m2/repository, you can define
org.ops4j.pax.url.mvn.localRepository property to use /dev/null for
instance or empty
I gonna document this and add command to switch from production mode to
dev mode.
Regards
JB
On 12/14/2014 06:32 PM, 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
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
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com