jboss:harddeploy does not need a username/password/url. It simply
copies the files from the source/build directories in the hard drive
of the build machine the Jboss deploy folder, and depends on Jboss to
autodeploy it.

Take a look at the plugin page:
http://mojo.codehaus.org/jboss-maven-plugin/

"jboss:harddeploy => Hard deploys the file by copying it to the
$JBOSS_HOME/server/[serverName]/deploy directory "

Sounds like you are looking for jboss:deploy perhaps, which deploys
your EAR using JMX? You need to provide more details to that plugin
goal.

Wayne

On 4/21/06, RobJac <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>

Reply via email to