The goal “copy-dependencies” does not copy the parent pom

亡梦爱人 提交于 2019-12-11 02:46:12

问题


My project structure is like this:

* Foo
  - API
  - Core
  - OSGi

All child projects define Foo as their parent (parent has dependencyManagement).

Another team is going to use my project. They only need my API layer and they cannot access my maven repository.

I need to give them all the dependencies of my API so I executed the following maven command:

mvn dependency:copy-dependencies -DincludeScope=compile -Dmdep.copyPom
-Dmdep.useRepositoryLayout

The dependency-plugin copies everything just fine except for the parent pom. How can I add the parent pom.xml to the output folder?


回答1:


see the addParentPoms option here http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html



来源:https://stackoverflow.com/questions/15131527/the-goal-copy-dependencies-does-not-copy-the-parent-pom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!