Maven Resolver allows to control resolution via following methods:
- withCentralRepo(...)
- offline(...)
- withRemoteRepo(...)
- withClasspathResolution(...)
However, with an exception of offline(...) call, all these method can be called in phase where pom.xml resolution was already done if user call loadPomFrom* method.
This means for example that resolver will touch Maven Central to resolve dependencies in pom.xml file user is loading.
In order to fix that, these methods should be callable only in configureResolver() phase, before pom.xml is touched.
- relates to
-
SHRINKRES-5 Make it easier to add a maven repository with the maven resolvers
- Closed