修改Maven Tomcat插件的端口号[mvn tomcat:run -Dmaven.tomcat.port=8081]

原文:http://stackoverflow.com/questions/13212365/mvn-tomcatrun-change-default-maven-tomcat-port

 

You can use:

mvn tomcat:run -Dmaven.tomcat.port=8081

to start it on a different port (8081 in this case).

Alternatively, define a pluginMangement section in your pom that configures the 'port' configuration on the tomcat plugin.

猜你喜欢

转载自aigo.iteye.com/blog/2057144