开发者

Maven assembly plugin and adding system dependencies to the classpath

开发者 https://www.devze.com 2022-12-25 01:36 出处:网络
I have some dependencies which I am providing myself.开发者_如何学JAVA The jars are in the resources directory. In my pom they are scoped as system and I include the path to them. However, when I jar

I have some dependencies which I am providing myself.开发者_如何学JAVA The jars are in the resources directory. In my pom they are scoped as system and I include the path to them. However, when I jar things up using the assembly plugin and use

<addClasspath>true</addClasspath>

It doesn't add the path of the system jars. How can I get them to be included automatically?

Thanks


Yeah, and that's why using system scope is a bad practice. Have a look at this previous answer (and also this one) for a solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号