나는 "pom.xml"파일을 가지고있다.이 파일은 maven에 연결하고 코드를 체크 아웃하고 war 파일을 만든다. 이제 생성 된 war 파일을 JBoss Application Server 7에 배포해야합니다. 아래 내용은 pom.xml
입니다.Maven을 사용하여 JBoss AS 7 서버에 .war 파일을 배포하는 방법은 무엇입니까?
<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 (기본값) deploy-app : D : \에 goal deploy를 실행할 수 없습니다. Workspace \ deploy-app \ target \ deploy-app.war. 이유 : 오류가 작업을 실행할 수 없습니다 '{ [ERROR] "address"=> [], [ERROR] "작업"=> "읽기 속성", [ERROR] "name"=> "launch- [오류]} '. java.net.ConnectException : JBAS012144 : remote : // D-0190918 : 8080에 연결할 수 없습니다. 연결 시간이 초과되었습니다 Pls help me – Keerthana