shrinkwrap/resolver — pull request #32 by jprante (2012-12-15 17:25:43+00:00)
Title: setting system properties to allow interpolation in "fromFile" config

Hi,

I'm using shrinkwrap resolver for a maven-based repo tool. It's fantastic, thanks for the great work!

Just one small fix. This pull request adds missing interpolation in a Maven settings file if configured with "fromFile", e.g. a variable ${user.home} is expanded in a repo URL file://${user.home}/myrepo.

Example call:

Maven.configureResolver()
.fromFile(mavenSettingsFile)
.addDependencies(dep)
.resolve()
.withMavenCentralRepo(useMavenCentral)
.using(new AcceptScopesStrategy(scopeType))
.asResolvedArtifact();

Cheers,

Jörg