Re: Issue with maven-dependency-plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Issue with maven-dependency-plugin

rfscholte
This is a typical question for the maven users list or stack overflow, but I'll give it a shot:

plugin configuration is based on inheritence through parents.
If ../third-project/other-project doesn't inherit this parent, and it probably doesn't because of its path, it won't have its configuration.

thanks,
Robert
On 10-10-2020 09:41:57, Ram Pandey <[hidden email]> wrote:
Hello Experts,

I am using the maven dependency plugin in parent pom.xml to copy the
dependency of all subprojects.

It does not copy dependencies for the project, which is outside parent
project directory.

For an example, It does not copy the dependency of project "
third-project/other-project " in below mentioned module.



my-project
another-project
../third-project/other-project


Below, I have mentioned the dependency plugin, that, I have used


org.apache.maven.plugins
maven-dependency-plugin
3.1.2


copy-dependencies-main
prepare-package

copy-dependencies


${maven.libs}/${project.module}
runtime
true





Suggestions will be highly appreciated

Thanks,
Ram