________________________________ I have created a simple web application. And I have configured my pom.xml in following way:
<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.sonatype.maven.ch05</groupId> <artifactId>simple-webapp</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>simple-webapp Maven Webapp</name> <url>http://maven.apache.org</url> <build> <finalName>simple-webapp</finalName> <plugins> <!--Adding jboss server plugin--> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jboss-maven-plugin</artifactId> <configuration> <serverName>default</serverName> <jbossHome>F:\Program Files\jboss-4.0.5.GA</jbossHome> <outputDirectory>F:\Program Files\jboss-4.0.5.GA\server</outputDirectory> <port>8080</port> <deployDir>${basedir}/jboss-4.0.5.GA/deploy</deployDir> </configuration> </plugin> </plugins> </build> <!--For jboss server--> <distributionManagement> <!-- use the following if you're not using a snapshot version. --> <repository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>repo</id> <name>Repository Name</name> <url>scp://host/path/to/repo</url> </snapshotRepository> </distributionManagement> </project> I m able to execute following command: mvn jboss:start mvn jboss:configure But when I execute mvn jboss:deploy it gives following error: [INFO] [jboss:deploy] [INFO] Deploying F:\Documents and Settings\rvgupta\MavenProjects\JBOSS-Trial\simple-webapp\target/simple-webapp.war to JBoss. [INFO] No server specified for authentication - using defaults [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Mojo error occurred: Connection refused: connect Can anyone help me out in this?????????? Thanks & Regards, Renu
