0 Replies Latest reply on Oct 16, 2015 2:43 PM by dchesterman

    Exclude maven central in transitive dep resolution

    dchesterman

      I am trying to resolve dependencies strictly from a private repo.

       

      This is my MavenResolverSystem definition :

      Maven.configureResolver().withMavenCentralRepo(false).fromClassloaderResource("settings.xml")

       

      The issue is that Aether, without setting DefaultRepositorySystemSession.setIgnoreArtifactDescriptorRepositories(true), it seems it will pull the default Maven POM in the absence of another defined parent pom and merge it, adding central back to the repository list.

       

      Am I missing something here or would I need an option to set that in MavenRepositorySystem.getSession()?

       

      I can't control or update all the poms to have a custom parent pom.