0

I have a project where i have added few dependencies.

Now I want to create a MVN build [Jar/Package] where I want to include few dependencies in my built jar and exclude few from my build jar.

Could you someone please guide me how I can do this.

Amit Parmar
  • 43
  • 1
  • 7
  • You can probably achieve what you want by declaring the "excluded" jars as provided. – J Fabian Meier Apr 03 '17 at 08:24
  • Hi @JFMeier, Sorry but I am new and doing it first time. So it would be really helpful if you could explain here step by step. Like doing from crash. – Amit Parmar Apr 03 '17 at 08:58
  • Possible duplicate of [Including dependencies in a jar with Maven](http://stackoverflow.com/questions/1729054/including-dependencies-in-a-jar-with-maven) – Adonis Apr 03 '17 at 09:11
  • Hi @asettouf, You suggested thread is only about the including dependencies. I also wish few dependencies to be excluded. So it would be helpful if you could place the example which covers the both include and exclude. – Amit Parmar Apr 03 '17 at 13:11
  • There is this example that might help: http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html – Adonis Apr 03 '17 at 13:15

0 Answers0