Hi,
I am using the maven resolver as follows:
MavenResolverSystemImpl mrs = (MavenResolverSystemImpl) Resolvers.use(MavenResolverSystem.class, cl);
mrs.getMavenWorkingSession().useLegacyLocalRepository(true);
MavenResolvedArtifact[] artifacts = mrs.loadPomFromFile(pomFile)
.importDependencies(ScopeType.COMPILE, ScopeType.TEST, ScopeType.PROVIDED, ScopeType.RUNTIME)
.resolve().withTransitivity().asResolvedArtifact();
However, in order to resolve the dependencies appropiately, the user needs to set, when he is using maven, dynamic args like:
-Dversion=1.0 -Drelease=1.0.0
I haven't found a way to set it into the API. I have tried also modifying the System properties, but no success. In my opinion, the loadPomFromFile, should have an additional parameter for this purpose. What do you think?