Properties
 
 
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:
 
  1.     Default deployment factory manager class name:
        -Dclownfish.deploy.dfmclassname
        Default Value: com.sun.enterprise.deployapi.SunDeploymentFactory
        Required
 
  1.     Deployment manager URI:
        -Dclownfish.deploy.uri
        Default Value: deployer:Sun:AppServer::localhost:4848
        Required
 
  1.     Admin username:
        -Dclownfish.username
        Default Value: admin
        Required
 
  1.     Admin password:
        -Dclownfish.password
        Default Value: adminadmin
        Required
 
  1.     Target servers:
        -Dclownfish.targets
        Default Value: server   (comma-separated name of servers)
        Required
 
  1.     Configuration file
        -Dclownfish.configurationFile
        No default value
        Not required
 
  1.     Verbose:
        -Dclownfish.verbose
        Default Value: true
        Not required
 
  1.     To autostart after deploy (used with clownfish:deploy only):
        -Dclownfish.autostart
        Default Value: true
        Not required