eclipse+maven+tomcat7+hot deploy

    xiaoxiao2025-11-15  4

    pom.xml

    < build > < plugins > < plugin > < groupId >org.apahce.tomcat.maven</ groupId > < artifactId >tomcat7-maven-plugin</ artifactId > < version >2.2</ version > < configuration > < url >http://localhost:8080/manager/text</ url > < server >tomcat</ server > <path>/web</path> </ configuration > </ plugin > </ plugins > </ build >

    tomcat-user.xml

    <user username="admin" password="password" roles="admin,manager,manager-script"/>

    setting.xml

    <servers> <server> < id >tomcat</ id > < username >admin</ username > < password >password</ password > <server> <servers>

    deploy:

    tomcat7:redeploy -Dmaven.test.skip=true

    转载请注明原文地址: https://ju.6miu.com/read-1304212.html
    最新回复(0)