我有一个“pom.xml”文件,它连接到maven并检出代码并创建一个war文件。现在我必须将创建的war文件部署到JBoss Application Server 7.下面是我的pom.xml
。如何使用Maven将.war文件部署到JBoss AS 7服务器?
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org /2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.deploy</groupId>
<artifactId>deploy-app</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>deploy-app Maven Webapp</name>
<url>http://maven.apache.org</url>
<scm>
<connection>scm:svn:http://d-113017553/svn/PRONTO/trunk/dev</connection>
<developerConnection>scm:svn:http://d-113017553/svn/PRONTO/trunk /dev</developerConnection>
<url>http://d-113017553/svn/PRONTO/trunk/dev</url>
</scm>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>deploy-app</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.8.1</version>
<configuration>
<connectionType>connection</connectionType>
<username>keerthana</username>
<password>keerthana</password>
<checkoutDirectory>${project.basedir}/co/src</checkoutDirectory>
<workingDirectory>${project.basedir}/co/src</workingDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<releaseProfiles>release</releaseProfiles>
<goals>scm:checkout</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.3.Final</version>
<configuration>
<jboss_Home>D:\Workspace\deploy-app\target</jboss_Home>
<serverName>default</serverName>
<fileName>target/deploy-app.war</fileName>
</configuration>
</plugin>
</plugins>
</build>
</project>
请给我将我的战争文件部署到Jboss服务器的步骤。
一旦检查下面的链接可能对你有用http://stackoverflow.com/questions/13376011/war-file-deployment-in-jboss-4-2-server-with-maven-repositories –
我得到以下错误, – Keerthana
无法执行目标org.jboss.as.plugins:jboss-as-maven-plugin:7.3.Final:在项目deploy-app上部署(默认):无法对D:\执行目标部署。工作区\部署,应用程序\目标\部署,app.war。原因:错误无法执行操作'ERROR]“address”=> [], [ERROR]“operation”=>“读取属性”, [ERROR]“name”=>“launch-type” [错误]}'。 java.net.ConnectException:JBAS012144:无法连接到remote:// D-0190918:8080。连接超时 请帮帮我 – Keerthana