GithubHelp home page GithubHelp logo

maven-resolver-test's Introduction

Maven Resolver Test

What do I want to do?

  • Given a POM file on the local filesystem

  • I want to programmatically obtain the effective POM of that POM file. Specifically I want to do the following:

    • Resolve the POMs dependencies
    • Ensure that all parent POMs are processed
    • Obtain the list of dependencies of the fully resolved POM
    • And so on...
  • I don't need to obtain transitive dependencies.

What works?

I'm using Maven Resolver Provider which works. However I have to use a package private class org.apache.maven.repository.internal.DefaultModelResolver

There's an example program which does the following:

  • Downloads the latest spring boot POM from Maven Central.
  • Prints out it's direct dependencies (with parent deps included)

You can run the the program with: mvn exec:java -Dexec.mainClass="com.sahilm.maven_resolver_test.Test"

What I need help with?

  • I need help with understanding why I have to use a package private class to get stuff to work.
  • Is there another way to get the information I need?

maven-resolver-test's People

Contributors

sahilm avatar

Watchers

 avatar  avatar  avatar

Forkers

l-mh-95

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.