Exclude servlet-api from test scope Maven

后端 未结 8 996
刺人心
刺人心 2021-02-13 04:43

I have the following dependency in my pom.xml so that my IDE (IntelliJ) has the servlet-api classes available during compilation, but not provided in the build.



        
8条回答
  •  感情败类
    2021-02-13 05:02

    I use the following sbt project setting to fix a similar problem:

      "any dependency program that includes servlet-api java library code" %  excludeAll ExclusionRule(organization = "org.eclipse.jetty.servlet-api"),
      "org.mortbay.jetty" % "servlet-api" % "3.0.20100224"
    

提交回复
热议问题