users@glassfish.java.net

Re: Am I using maven-glassfish-plugin right?

From: Jane Young <jane.young_at_oracle.com>
Date: Thu, 29 Dec 2011 14:30:30 -0800

I think you should use maven-embedded-glassfish-plugin. See:
http://embedded-glassfish.java.net/\
The maven-glassfish-plugin assumes that you have GlassFish installed and
allows you to manages GlassFish via Maven.

HTH,
Jane


On 12/23/11 9:23 AM, forums_at_java.net wrote:
> Hi,
>
> I hope this is the right forum for this post. Please let me know if
> there is
> a better place.
>
> I want to make Maven run a Selenium test on an embedded Glassfish.
> Is maven-glassfish-plugin the right plugin or should it be
> maven-embedded-glassfish-plugin?
>
> Assuming maven-glassfish-plugin is right...
>
> Does my setup below run glassfish embedded or not? (Asking because the
> server
> coninues to run after being started in a failed build.)
>
> Is there a way to tell 'deploy' to use '--force=true''? (Asking because
> failed builds leave the deployed app but successful builds also
> 'undeploy',
> so neither 'deploy' nor 'redeploy' are reliable. I'd think truely
> embedded
> would solve this too since the server setup would not persist between
> builds.)
>
> [code]
>
> <plugin>
>
> <groupId>org.glassfish.maven.plugin</groupId>
>
> <artifactId>maven-glassfish-plugin</artifactId>
>
> <version>2.1</version>
>
> <configuration>
>
> <glassfishDirectory>${glassfish.home}</glassfishDirectory>
>
> <debug>true</debug>
>
> <echo>true</echo>
>
> <user>admin</user>
>
> <!-- Note: Glassfish does not require an admin password but this tool
> does. Set your admin password to 'changeit' in the admin console. -->
>
> <adminPassword>changeit</adminPassword>
>
> <!-- Note: So far, I have not been able to get the passwordFile to
> work. -->
>
>
> <!--<passwordFile>${glassfish.home}/glassfish/domains/domain1/config/domain-passwords</passwordFile>-->
>
>
> <components>
>
> <component>
>
> <name>${project.artifactId}</name>
>
>
> <artifact>${project.build.directory}/${project.build.finalName}.war</artifact>
>
>
> </component>
>
> </components>
>
> <domain>
>
> <name>domain1</name>
>
> <adminPort>4848</adminPort>
>
> <httpPort>8080</httpPort>
>
> </domain>
>
> </configuration>
>
> <executions>
>
> <execution>
>
> <goals>
>
> <goal>start-domain</goal> <!-- this will run during
> pre-integration-test phase -->
>
> <goal>deploy</goal> <!-- this will run during
> pre-integration-test phase -->
>
> <goal>undeploy</goal> <!-- this will run during
> post-integration-test phase -->
>
> <goal>stop-domain</goal> <!-- this will run during
> post-integration-test phase -->
>
> </goals>
>
> </execution>
>
> </executions>
>
>
>
> [/code]
>
> Thanks in advance!
> ,boz
>
>
>
>
> --
>
> [Message sent by forum member 'boz']
>
> View Post: http://forums.java.net/node/877176
>
>