How to run a Maven Project In Tomcat From Eclipse

前端 未结 4 1913
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 12:42

I am running a multi level maven project. It has webapps packaged as WAR, which depend on components packaged as JAR files

Most of the code changes that i do belong

4条回答
  •  伪装坚强ぢ
    2020-12-12 13:24

    I use the eclipse webtools plugin, and run my Tomcat from it. It has a republish method that publishes the jars as well (if not, you just clean the directory and republish).

    In the pom file, you should have the following lines so that the webtools will be supported automatically

    
        ...
        
            
                maven-eclipse-plugin
                
                    1.5
                    ...
                
            
            ...
        
        ...
     
    

提交回复
热议问题