<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.tripod.demo</groupId>
<artifactId>Karthik-project</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Karthik-project Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<jboss-as.deploy.hostname>localhost</jboss-as.deploy.hostname> <!-- Where to deploy. -->
<jboss-as.deploy.user>admin</jboss-as.deploy.user>
<jboss-as.deploy.pass>admin</jboss-as.deploy.pass>
<plugin.war.warName>target/Karthik-project.war</plugin.war.warName>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
<warName>target/Karthik-project.war</warName>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.3.Final</version>
<configuration>
<hostname>localhost</hostname>
<username>admin</username>
<password>admin</password>
<jbossHome>/home/smadugula/jboss-eas-5.2</jbossHome>
<serverName>Standalone</serverName>
<targetDir>target</targetDir>
<fileName>target/Karthik-project.war</fileName>
</configuration>
</plugin>
</plugins>
</build>
</project>
我已經提到了各種關於谷歌和我創建這個文件的stackoverflow和其他鏈接的例子。當我使用mvn jboss:deploy時,儘管我得到了Build-Success消息,但我得到如下消息: [INFO]沒有配置爲部署/取消部署的文件。 如何配置war文件?任何人都可以幫助我嗎? 在此先感謝如何使用maven pom.xml在jboss中部署war文件?
嘗試使用maven貨物插件。 – Hrishikesh
你在獨立模式或域模式下使用jboss嗎? –