We have a requirement to programmatically fetch a bundle from the Remote Repository. We are injecting the org.ops4j.pax.url.mvn.MavenResolver in the our java class. And whenever we want to fetch the bundle from repository we are calling mavenResolver.resolve(mvn:groupId/artifactId/1-SNAPSHOT); It is observed that in case of snapshot the bundle gets downloaded first time in the local repository ${user.home}/.m2/repository. But afterwards if the snapshot bundle is changed in the remote repository, it never gets updated when we call mavenResolver.resolve(mvn:groupId/artifactId/1-SNAPSHOT);
We are using karaf 4.1.7 and pax-url-aether-2.5.4.jar. Pid: org.ops4j.pax.url.mvn BundleLocation: ? Properties: felix.fileinstall.filename = file:/C:/tools/apache-karaf-4.1.7/etc/org.ops4j.pax.url.mvn.cfg org.ops4j.pax.url.mvn.connection.bufferSize = 8192 org.ops4j.pax.url.mvn.connection.retryCount = 3 org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote = false org.ops4j.pax.url.mvn.defaultRepositories = file:/C:/tools/apache-karaf-4.1.7/system@id=system.repository@snapshots, file:/C:/tools/apache-karaf-4.1.7/data/kar@id=kar.repository@multi@snapshots, file:/C:/tools/apache-karaf-4.1.7/system@id=child.system.repository@snapshots, file:C:\tools\apache-karaf-4.1.7/karafcustom@id=karafcustom_repository@snapshots org.ops4j.pax.url.mvn.globalUpdatePolicy = always org.ops4j.pax.url.mvn.repositories = http://remoteartifactorylocation.com/artifactory/all@snapshots@id=artifactory.mirror@snapshots org.ops4j.pax.url.mvn.socket.connectionTimeout = 5000 org.ops4j.pax.url.mvn.socket.keepAlive = false org.ops4j.pax.url.mvn.socket.linger = -1 org.ops4j.pax.url.mvn.socket.readTimeout = 30000 org.ops4j.pax.url.mvn.socket.reuseAddress = false org.ops4j.pax.url.mvn.socket.tcpNoDelay = true org.ops4j.pax.url.mvn.timeout = 5000 org.ops4j.pax.url.mvn.useFallbackRepositories = false service.pid = org.ops4j.pax.url.mvn -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html