Skip to content

Instantly share code, notes, and snippets.

@behrangsa
Created June 27, 2011 12:37
Show Gist options
  • Save behrangsa/1048776 to your computer and use it in GitHub Desktop.
Save behrangsa/1048776 to your computer and use it in GitHub Desktop.
maven-glassfish-plugin configuration
<plugin>
<groupId>org.glassfish.maven.plugin</groupId>
<artifactId>maven-glassfish-plugin</artifactId>
<version>2.1</version>
<configuration>
<glassfishDirectory>${glassfish.home}</glassfishDirectory>
<user>${domain.username}</user>
<passwordFile>${glassfish.home}/domains/${project.build.finalName}/master-password</passwordFile>
<autoCreate>true</autoCreate>
<debug>true</debug>
<echo>false</echo>
<terse>true</terse>
<components>
<component>
<name>${project.artifactId}</name>
<artifact>${project.build.directory}/${project.build.finalName}.war</artifact>
</component>
</components>
<domain>
<name>${project.build.finalName}</name>
<adminPort>4848</adminPort>
<httpPort>8080</httpPort>
<httpsPort>8443</httpsPort>
</domain>
</configuration>
</plugin>
@dileepnaduvinamani
Copy link

Trying to deploying war file into glassfish server using maven script, getting error like :

CreateProcess error=193, %1 is not a valid Win32 application.

image
GitHub link : https://github.com/dileepnaduvinamani/Glassfish-Mvn-Plugin.git

@behrangsa
Copy link
Author

I'm afraid I've not used Glassfish (and Windows) for years. Try asking on the Maven and Glassfish forums.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment