Exclude Ivy Dependencies in WAR File

I use Eclipse and the Ivy IvyDE plugin.

I am currently creating a WAR file using the Eclipse export to WAR. I do not use the ANT build file - I let Eclipse handle this.

When I export to war, all dependencies in ivy.xml are copied to the bin directory of the war file. I want to exclude one (or more) of them. How should I do it?

What is the easiest way to do this? If possible, I would like not to create my own ANT build files and continue to use the Eclipse export tool and the IvyDE plugin.

+1
source share
2 answers

For me, the following trick:

  • copy the ivy.xml file for example. ivy-nodeploy.xml
  • / , , ivy.xml
  • / , ivy-nodeploy.xml
  • ivy- , -nodeploy.xml

, , , ivy.xml, .

+1

ivy.xml " ".

, , , conf (.. runtime). Ant, . , , .

+1

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


All Articles