facebook

why maven dependencies include another project as dependent?

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

    mengmvn
    Member

    In the attached picture, you will see we have 2 project open in the workspace.
    one is sc project, another one is ohbsws.

    Not sure why and how that sc proejct is inside the ohbsws project’s Maven Dependencies config. would you please tell me why it is included and how
    to get it removed.

    Attachments:
    You must be logged in to view attached files.
    #348828 Reply

    support-swapna
    Moderator

    mengmvn,

    Please recheck the ohbsws project’s pom.xml to see if the sc project is added as a dependency. Right click on the project’s pom.xml > Open With > Maven POM Editor. Switch to Dependencies tab and remove the project which is added as dependency from the Dependencies list.

    Let us know if you see any issues.

    #348832 Reply

    mengmvn
    Member

    I did check ohbsws pom.xml, I did not see sc project is added as its dependent aproject.
    its jar is added as a dependent jar.
    — Would you please tell me how add a project as dependent project in MyEclipse?
    — so I can double confirmed

    Strange thing: If I change the version of sc to diffect version, it is gone. but when I add the 103.08 back, sc project becomes as the depentent of it.
    I really did not see any issues of these sc jar between these 2 versions

    See two picture I included here.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #348896 Reply

    support-swapna
    Moderator

    mengmvn,

    Here is the code snippet to add a project as dependent in the pom.xml :

    <dependency>
    <groupId>TestMaven2</groupId>
    <artifactId>TestMaven2</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    </dependency>

    You can get the <groupId>,<artifactId>,<version> for the project you want to add as dependent from the pom.xml of that project.

    Please switch to the Dependencies tab to see the list of dependencies added to your project’s pom.xml. If you still have issues, please send us the pom.xml files of both the projects to help us take a look.

    Let us know how it works for you.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: why maven dependencies include another project as dependent?

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