How can I package a jar with Maven and include some dependencies in WEB-INF/lib?
I tried with assembly, but cannot be achieved easier?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try using the jar-with-dependencies feature of the maven-assembly-plugin:
This will incorporate all dependencies into your jar. Mark the dependencies that you don’t want included in your jar with
<scope>provided</scope>, eg: