How can I export a FULL war file from eclipse that binds maven dependencies?

I have an Eclipse WTP application using the M2 plugin. I exported it and it works fine on my machine, but I believe that this is due to the fact that it refers to my local maven repo.

How can I get it to merge banks from maven repo into a war file?

Is there an easy way to do this in eclipse with the M2> plugin? I am afraid that if I ruin the pom.xml, which works so beautifully right now, that I will be dragged into the black hole of the maven mysteries ....

+3
source share
1 answer

Your pom.xmlshould contain:

<packaging>war</packaging>

maven *, WEB-INF/lib .

mvn:package, /target .

* , ,

+4

Source: https://habr.com/ru/post/1747126/


All Articles