ops4j / org.ops4j.pax.url

Custom URL stream handlers for OSGi
http://team.ops4j.org/wiki/display/paxurl
Other
25 stars 57 forks source link

Support ability to completely disable remote artifact resolution #395

Closed mattrpav closed 3 years ago

mattrpav commented 3 years ago

Use case:

All bundles and feature files are made available locally. During boot, if a bundle or feature definition is missing, the featuresBoot should fail, and no remote or local (.m2/repository) resolution should occur.

Attempted this configuration, and artifacts are still resolved from .m2/repository

org.ops4j.pax.url.mvn.globalUpdatePolicy = never           # should disable updating?
org.ops4j.pax.url.mvn.localRepository=local-repo-cache     # set to a relative path that is empty (should not resolve .m2/repository)
org.ops4j.pax.url.mvn.repositories=                        # empty no repositories listed (should not resolve any remote repos)
org.ops4j.pax.url.mvn.useFallbackRepositories=false        # don't use the wonky hard-coded fallback repositories
mattrpav commented 3 years ago

Resolved. Point to a settings.xml file with offline set to 'true'

jbonofre commented 3 years ago

Yeah, you just have to use offline in the aether/maven config.