Hi, Could you pls let me know how this was acheived or send me you ear pom xml?. I too tried using java:hardDeploy but how to specify the remote server name/url/username/password using this plugin? Please take a look at my ear pom xml. when i tried using mvn jboss:harddeploy. It was trying to find the path in my local m/c itself and was failing. I was not sure where to provide details for the remote server. Please find below my ear pom xml? Am I missing something here? I want to deploy this ear to a remote server by providing server url,username and password. Where do you think i should be giving these details.
<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>DefinedBenefit_EA</groupId> <artifactId>DefinedBenefit_EA</artifactId> <packaging>ear</packaging> <version>1.0</version> <dependencies> <dependency> <groupId>DefinedBenefit_WEB</groupId> <artifactId>DefinedBenefit_WEB</artifactId> <version>1.0</version> <type>war</type> </dependency> </dependencies> <build> <directory>${basedir}</directory> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <configuration> <earSourceDirectory>${basedir}/src</earSourceDirectory> <generateApplicationXml>false</generateApplicationXml> <modules> <webModule> <groupId>DefinedBenefit_WEB</groupId> <artifactId>DefinedBenefit_WEB</artifactId> <bundleFileName>DefinedBenefit_WEB.war</bundleFileName> </webModule> </modules> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jboss-maven-plugin</artifactId> <configuration> <fileName>${project.build.directory}/${project.build.finalName}.${project.packaging}</fileName> <jbossHome>/opt/jboss403SP1</jbossHome> <serverName>default</serverName> </configuration> </plugin> </plugins> </build> </project> -- View this message in context: http://www.nabble.com/-M2-Deploy-question-t1134943.html#a4027397 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
