简体   繁体   中英

How to have a proper "overlay" war deployed on Tomcat

We have a Maven project which use the overlay of war plugin in order to merge 2 wars.

With Eclipse, we have a Tomcat 8 installation (use tomcat installation property checked) in server view.

If we republish the project, only parent compiled files are deployed to Tomcat.

When we take a look in target directory, we have :

  • classes directory (of parent),
  • war directory (with compiled sources of the second war),
  • xxx directory of our project with ALL compiled files merged,
  • a xxx war file which is fine too.

It seems Eclipse just deploy "classes" directory into webapps directory of Tomcat.

How to solve it ?

Thank you

Eclipse Neon RC3, Tomcat 8, Maven 3.3.9. Same problem with Mars...

It is impossible to solve this problem.

Eclipse with his plugin doesn't build the project in Maven native way. We tried on Mars, Neon, Oxygen version with all update which were possible for m2e plugin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM