pom.xml dependency

This topic contains 1 reply, has 2 voices, and was last updated by  support-swapna 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #519841 Reply


    ME 2017 on Windows 7.

    I created a Maven project which depends on a jar file (test.jar) to run. So in the pom.xml I added


    Where and how should I add the test.jar file to the Maven project, so that later in the compiling process, the Maven can download the jar automatically and put it into its (Maven) local repository?



    #519843 Reply



    Right-click the utility project’s pom.xml file, and select Run As>Maven Install to install the file into the local repository. Once the build is successful, theproject is now available for reference by other projects.

    Please refer to this tutorial about creating a maven dependency project for consumption by other maven projects : https://www.genuitec.com/products/myeclipse/learning-center/maven/java-maven-dependency-project-tutorial/

    Hope this helps. Let us know if you have any questions.

    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: pom.xml dependency