package and deploy a Maven project with provided scope dependency jars

Hello everyone,

Suppose I have a Java Maven project on IntelliJ and there are dependency jars declared as "provided" scope in Maven pom.xml. Currently, I just manually copy the dependecy jars into classpath for runtime. What is the best way to automate packge the dependency jars for deployment? Thanks.

thanks in advance,
Lin

4 comments
Comment actions Permalink

Your question is not specific to IntelliJ IDEA. Try something like Maven Release plug-in and if it's not what you are looking for, ask this question at http://stackoverflow.com/ where you have a much better chance to get a good answer than here.

0
Comment actions Permalink

Hi Serge,

For Maven Release plug-in, do you mean something IntelliJ spefiically provides, or in general provided by Maven plug-in suits? Thanks.

regards,
Lin

0
Comment actions Permalink

IDEA doesn't provide anything automatic for that. It can create artifacts from your Maven model and you can adjust existing artifacts to include any additional dependencies, but this task would be easier to solve via standalone Maven, without IDEA.

0
Comment actions Permalink

Thanks all the same Serge!

0

Please sign in to leave a comment.