Rohnny Moland wrote:
> 
> On Sun, Mar 23, 2008 at 5:44 PM, davidkarlsen <[EMAIL PROTECTED]>
> wrote:
> Yes, after looking closer at the plugin, I agree. :) I actually think
> its difficult to do all the stuff this plugin does with cargo because
> it wraps the wsadmin task. For the record, I paste in the
> configuration that worked for me. It starts, stops the server, deploys
> and undeploys an ear file.
> 
>         <profile>
>             <id>was6x</id>
>             <build>
>                 <plugins>
>                     <plugin>
>                         <groupId>org.codehaus.mojo</groupId>
>                         <artifactId>was6-maven-plugin</artifactId>
>                         <executions>
>                             <execution>
>                                 <id>start-server</id>
>                                 <phase>pre-integration-test</phase>
>                                 <goals>
>                                     <goal>wsStartServer</goal>
>                                     <goal>wsDefaultBindings</goal>
>                                     <goal>installApp</goal>
>                                 </goals>
>                             </execution>
>                             <execution>
>                                 <id>stop-server</id>
>                                 <phase>post-integration-test</phase>
>                                 <goals>
>                                     <goal>wsUninstallApp</goal>
>                                     <goal>wsAdmin</goal>
>                                 </goals>
>                             </execution>
>                         </executions>
>                         <configuration>
>                            
> <wasHome>/usr/local/WebSphere/AppServer</wasHome>
>                             <host>rohnny-laptop</host>
>                             <applicationName>cargoear</applicationName>
>                             <username>system</username>
>                             <user>system</user>
>                             <password>...</password>
>                             <profileName>AppSrv02</profileName>
> 
> <earFile>/usr/local/src/testcargo/cargoear/target/cargoear.ear</earFile>
>                             <verbose>true</verbose>
>                             <updateExisting>false</updateExisting>
> 
> <strategy>${basedir}/src/test/resources/bindings.xml</strategy>
>                             <command>$AdminControl stopServer
> server1</command>
>                         </configuration>
>                     </plugin>
>                 </plugins>
>             </build>
>         </profile>
> 
> What I couldnt get working was to set the properties tag in the
> configuration. Maybe I just didnt understand it..but I would like to
> set jvm arguments like heap size and I also need to set a system
> property that my application uses. How should this file look like?
> 
> Thanks,
> Rohnny
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

The properties element is for properties to ws_ant:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks/InstallApplication.html

For setting properties on the appserver instance you will have to define
this in scripts executed by wsadmin:
http://mojo.codehaus.org/was6-maven-plugin/wsAdmin-mojo.html.
I'm no jython expert - but this talk could maybe send you in the right
direction:
http://www.websphereusergroup.org.uk/downloads/04oct/WebSphere%20Administration.pdf

-----
http://www.davidkarlsen.com
-- 
View this message in context: 
http://www.nabble.com/-ANN--was6-maven-plugin-1.0-alpha-1-release-tp16192936p16240157.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to