Maven fails to find local artifact

后端 未结 14 1601
Happy的楠姐
Happy的楠姐 2020-12-04 11:40

Occasionally maven complains that a particular dependency, which is built and packaged locally, cannot be found in the local repository while building another project that h

14条回答
  •  一生所求
    2020-12-04 12:30

    Even I faced this issue and solved it with 2 ways:

    1) In your IDE select project and clean all projects then install all the maven dependencies by right clicking on project -> go to maven and Update project dependencies select all projects at once to install the same. Once this is done run the particular project

    2) Else What you can do is check in the pom.xml for the dependencies for which you are getting error and "mvn clean install" those dependent project first and the install maven dependencies of the current project in which you facing issue. By this the dependencies of the local project will be build and jars will be created.

提交回复
热议问题