Created
August 5, 2011 11:43
-
-
Save Riduidel/1127365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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