I know in eclipse maven can copy dependencies to WEB-INF/lib dir by setting 'Deployment Assembly' and 'Build Path'
, but how can I achieve this with Intellij IDEA?
Ok, I find a solution:
In Intellij IDEA
, a Web application archive (WAR) is called an artifact.
And you can achieve adding libraries automatically by setting the artifact:
Project Structure
setting windowProject Settings --> Artifacts --> **war exploded --> Output Layout --> WEB-INF
Add Copy of-
option.Library Files
and add the libraries you want. [Tips: Ctrl + A
can work here to add all files] 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