facebook

pom.xml dependency

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #519841 Reply

    eugenejsn
    Participant

    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

    <dependency>
    <groupId>test</groupId>
    <artifactId>test</artifactId>
    <scope>test</scope>
    </dependency>

    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?

    Thanks.

    Eugene

    #519843 Reply

    support-swapna
    Moderator

    Eugene,

    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.

    –Swapna
    MyEclipse Support

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

You must be logged in to post in the forum log in