2016-04-27 71 views

回答

0

您必須在插件配置中提供url
注意,Tomcat的8個實例(我還沒有在早期版本的Tomcat測試它),你需要domain:port/manager/text

 <plugins> 
     .. 
     <plugin> 
      <groupId>org.apache.tomcat.maven</groupId> 
      <artifactId>tomcat7-maven-plugin</artifactId> 
      <version>2.2</version> 
      <configuration> 
       <url>http://localhost:8080/manager/text</url> 
       <path>/examplePath</path> 
      </configuration> 
     </plugin> 
     .. 
     </plugins> 
+0

我已經給出了相同的。爲此,我需要手動啓動tomcat服務器.....我不想這樣做.....我想啓動遠程服務器並通過此maven配置部署戰爭只.....我剛纔也提到 \t \t \t \t \t \t \t \t \t \t \t \t \t Tomcat的運行 \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t 運行戰爭只 \t \t \t \t \t \t \t \t \t \t \t \t \t \t 預集成測試 \t \t \t \t \t \t \t \t \t \t \t