Fix maven JSTL 1.2.1 dependency so maven-war-plugin doesn't package JARs that offend Tomcat 7

后端 未结 2 1903
一向
一向 2021-01-19 12:02

My setup: jdk 7, Tomcat 7.0.29, ,Eclipse Juno (with m2e[Maven 3.0.4 embedded], m2eclipse-wtp)

I have a Dynamic Web Project with this JSTL dependency:



        
2条回答
  •  囚心锁ツ
    2021-01-19 12:44

    Figured it out, the jsp-api was sneaking into the WEB-INF\lib as a transative dependency of the jstl, the fix is to exclude like so.

    
        org.glassfish.web
        javax.servlet.jsp.jstl
        ${javax.jstl.version}
        
            
                javax.servlet
                servlet-api
            
            
                jsp-api
                javax.servlet.jsp
            
        
    
    

提交回复
热议问题