Estimated Time:less than a minute

    Managing local jars with maven

    Maven has for me a non user friendly documentation, with 80% of xml content. For long time I have been stuck in how easily manage both dependency from maven central and from local jars.

    I finally got something quite general and functional. Here is how to make this working fine:

    The pom.xml file:

    <!-- Add the manifest -->
    <!-- Make a standalone build -->
    <!--  import your local jar-->
    <!-- create a local respository  -->

    By the way one can add dependency jars by such command line. This will populate the repos folder:

    mvn org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file

    As a result, the compilation will result as a standalone jar, containing both local and central dependencies.

    React ?

    This page was last modified: