Skip to main content

Using the maven glassfish plugin to deploy war remotely

1 reply [Last post]
snobbles
Offline
Joined: 2011-09-08

Hi

Is it possible to use the maven glassfish plugin to deploy a war file remotely? I've tried adding the host property to the plugin configuration, but maven still tries to deploy the war file on the local machine.

<plugin>

<groupId>org.glassfish.maven.plugin</groupId>

<artifactId>maven-glassfish-plugin</artifactId>

<version>2.1</version>

<configuration>

<host>remote_host</host>

<glassfishDirectory>/glassfish/glassfish/glassfish/</glassfishDirectory>

<user>admin</user>

<adminPassword>admin</adminPassword>

<autoCreate>true</autoCreate>

<debug>true</debug>

<echo>false</echo>

<terse>true</terse>

<domain>

<host>remote_host</host>

<name>domain1</name>

<adminPort>4848</adminPort>

<httpPort>8080</httpPort>

<httpsPort>8443</httpsPort>

<iiopPort>3700</iiopPort>

<jmsPort>7676</jmsPort>

<reuse>false</reuse>

</domain>

<components>

<component>

<name>${project.artifactId}</name>

<artifact>

${project.build.directory}/${project.build.finalName}.war

</artifact>

</component>

</components>

</configuration>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vbkraemer
Offline
Joined: 2003-09-03

This question may get more attention in http://www.java.net/forums/glassfish/glassfish