tomcat7-maven-plugin 端口

不知道有沒有人像我這樣,在pom配置了下面這段以後,apache

<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<path>/</path>
<port>8090</port>
</configuration>
</plugin>
</plugins>tomcat

下一步右鍵maven build,寫上clean tomcat:run以後,發現啓動的端口並非配置的端口8090,maven

而且路徑也不是 /  ,而是 Running war on http://localhost:8080/xxxx。ui

怎麼search 8080 都沒有,其實問題出在clean tomcat:run,改爲clean tomcat7:run,OK,大家問題解決沒有?io

相關文章
相關標籤/搜索