|
|
@@ -211,48 +211,32 @@
|
|
|
<target>1.7</target>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
- <!-- <plugin>
|
|
|
- <groupId>org.jboss.as.plugins</groupId>
|
|
|
- <artifactId>jboss-as-maven-plugin</artifactId>
|
|
|
- <version>7.6.Final</version>
|
|
|
+ <!-- <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId>
|
|
|
+ <version>7.6.Final</version> <executions> <execution> 下面部分是让执行 mvn install
|
|
|
+ 时 自动执行jboss-as:deploy <phase>install</phase> <goals> <goal>deploy</goal>
|
|
|
+ </goals> 远程服务器的相关配置 <configuration> <hostname>60.host</hostname> <port>9999</port>
|
|
|
+ 用户名和密码为jboss as 中添加的用户名和密码 <username>administrator</username> <password>select111***</password>
|
|
|
+ </configuration> </execution> </executions> </plugin> -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.tomcat.maven</groupId>
|
|
|
+ <artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
+ <version>2.2</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
- 下面部分是让执行 mvn install 时 自动执行jboss-as:deploy
|
|
|
<phase>install</phase>
|
|
|
<goals>
|
|
|
<goal>deploy</goal>
|
|
|
</goals>
|
|
|
- 远程服务器的相关配置
|
|
|
<configuration>
|
|
|
- <hostname>60.host</hostname>
|
|
|
- <port>9999</port>
|
|
|
- 用户名和密码为jboss as 中添加的用户名和密码
|
|
|
+ <url>http://60.host:9090/manager/text</url>
|
|
|
<username>administrator</username>
|
|
|
<password>select111***</password>
|
|
|
+ <path>/platform-b2b</path>
|
|
|
+ <update>true</update>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
- </plugin> -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.tomcat.maven</groupId>
|
|
|
- <artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
- <version>2.2</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <phase>install</phase>
|
|
|
- <goals>
|
|
|
- <goal>deploy</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <url>http://60.host:9090/manager/text</url>
|
|
|
- <username>administrator</username>
|
|
|
- <password>select111***</password>
|
|
|
- <path>/platform-b2b</path>
|
|
|
- <update>true</update>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|