I have a mavne project installed a shaded jar into local repo. in the repo, there are jar and shaded jar :
myjar-1.0-shaded.jar
myjar-1.0.jar
myjar-1.0.pom
In another maven project, I want to add dependency to that shaded jar
how can I do it ?
I tried
<dependency>
<groupId>mygroup</groupId>
<artifactId>myjar</artifactId>
<version>1.0-shaded</version>
</dependency>
But it does not work, just can not find the jar.
Of cause directly use version 1.0 will find that jar but will cause some package conflict.
Not sure whether it is a good idea to have dependency to a shaded jar, but in my case, I have to do it. If anyone can figure out how to solve this, I will be very thankful.
Try:
<dependency>
<groupId>mygroup</groupId>
<artifactId>myjar</artifactId>
<version>1.0</version>
<classifier>shaded</classifier>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With