Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created August 5, 2011 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Riduidel/1127365 to your computer and use it in GitHub Desktop.
Save Riduidel/1127365 to your computer and use it in GitHub Desktop.
<!-- Execute some random code, but disabled due to weird interaction between amven and glassfish asadmin command.
Question asked on StackOverflow : http://stackoverflow.com/questions/6942759/batch-creation-of-domain-working-in-command-line-but-not-through-exec-maven-plug -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>create start and configure domain</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>true</skip>
<executable>${glassfish.asadmin}</executable>
<arguments>
<argument>--echo</argument>
<argument>true</argument>
<argument>--interactive</argument>
<argument>false</argument>
<argument>--user</argument>
<argument>"${glassfish.user}"</argument>
<argument>--passwordfile</argument>
<argument>"${glassfish.passwordFile}"</argument>
<argument>multimode</argument>
<argument>--printprompt=false</argument>
<argument>--file</argument>
<argument>"${user.glassfish.config.path}/create-domain.txt"</argument>
</arguments>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment