Clownfish works straight out of the box and deploys your artifact on your local machine with Glassfish running. However, you may change default properties as needed.
Below is an example of customised pom configuration:
<project ...>
...
<build>
<plugins>
<plugin>
<groupId>net.sourceforge.clownfish.mojo.glassfish</groupId>
<artifactId>clownfish-maven-plugin</artifactId>
<version>0.1.1-SNAPSHOT</version>
<configuration>
<deploymentFactoryManagerClassName>
com.sun.enterprise.deployapi.SunDeploymentFactory
</deploymentFactoryManagerClassName>
<deploymentManagerUri>
deployer:Sun:AppServer::localhost:4848
</deploymentManagerUri>
<targets>server</targets>
<username>admin</username>
<password>adminadmin</password>
<verbose>true</verbose>
<!-- autostart after deploy (used with clownfish:deploy) -->
<autostart>true</autostart>
</configuration>
...
</plugin>
</plugins>
</build>
...
</project>
Another example to override default properties when running Clownfish goals from the command line:
mvn clownfish:deploy -D<property1>=<value1> -D<property2>=<value2> ...
where property may be one or more of the following:
-
• Default deployment factory manager class name:
-Dclownfish.deploy.dfmclassname
Default Value: com.sun.enterprise.deployapi.SunDeploymentFactory
Required
-
• Deployment manager URI:
-Dclownfish.deploy.uri
Default Value: deployer:Sun:AppServer::localhost:4848
Required
-
• Admin username:
-Dclownfish.username
Default Value: admin
Required
-
• Admin password:
-Dclownfish.password
Default Value: adminadmin
Required
-
• Target servers:
-Dclownfish.targets
Default Value: server (comma-separated name of servers)
Required
-
• Configuration file
-Dclownfish.configurationFile
No default value
Not required
-
• Verbose:
-Dclownfish.verbose
Default Value: true
Not required
-
• To autostart after deploy (used with clownfish:deploy only):
-Dclownfish.autostart
Default Value: true
Not required