简体   繁体   中英

maven-jar-plugin repository layout combined with maven-dependency-plugin

So I am using the maven jar plugin to copy my projects dependencies to a lib folder in the target folder.

I set the classpathLayoutType to repository (repository) since some of the dependencies have the same name.

The manifest now states something like this: lib/some/group/id/artifact/version/artifact.jar

However the maven dependency plugin, which I use to copy the dependencies to the lib folder does not follow this layout. It just copies the dependencies to the base of the lib folder. How can I change this behavior to match that of the jar plugin?

假设您使用的是Maven依赖插件,并且将目标copy-dependencies设置为useRepositoryLayouttrue应该可以解决问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM