0

I need to use external dependencies for tomcat. I add them to project structures and project build fine. Compiler doesn't show any errors

project structure

The project works fine when i run it on IDE.

The problem starts when I try to build WAR file using Maven package :

package org.apache.catalina does not exist

package org.apache.catalina.connector does not exist

package org.apache.coyote does not exist

I've try with all different scope settings but jars aren't found

  • Please check this discussion on how to add external jars to maven build: https://stackoverflow.com/questions/10665096/how-to-add-external-jar-to-maven-webapp-project – y.bedrov Jan 05 '21 at 10:58
  • Does this answer your question? [how to add external jar to maven webapp project](https://stackoverflow.com/questions/10665096/how-to-add-external-jar-to-maven-webapp-project) – William Baker Morrison Jan 05 '21 at 11:06
  • All dependencies need to be listed in the `pom.xml` as ``. – J Fabian Meier Jan 05 '21 at 13:41

0 Answers0