Hi,
I'm trying to install my application on a  Websphere Application Server, using 
the was6-maven-plugin. Running installApp works fine, after that I want to run 
a jython script, doing some post installation work (mapping module to different 
server, restarting app ...). 
I've create to instance of the was6-maven-plugin, running the first in the 
verify phase (installation on server) and the second in install phase (cause 
there is no "after-install" phase) and I found no way to make sure my script is 
running after the application installation when running both in the install 
phase.
Both configurations work fine when running separately (just installation or 
just script execution), but when using both together I get a strange error "You 
must provide password wheren providing username ...", although username and 
password are provided for both plugins.

Here is an excerpt from my pom.xml:

                                <plugins>
...
                                        <plugin>
                                                
<groupId>org.codehaus.mojo</groupId>
                                                
<artifactId>was6-maven-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                
<id>installApplication</id>
                                                                
<phase>verify</phase>
                                                                <goals>
                                                                        
<goal>installApp</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                                <configuration>
                                                        
<applicationName>myapp</applicationName>
                                                        
<wasHome>D:\rad75\runtimes\base_v61</wasHome>
                                                        
<host>myhost.server.net</host>
                                                        
<username>myuser</username>
                                                        
<password>mypassword</password>
                                                        
<conntype>SOAP</conntype>
                                                        <port>8880</port> <!-- 
First server in profile -->
                                                        <verbose>true</verbose>
                                                        
<updateExisting>true</updateExisting>
                                                </configuration>
                                        </plugin>
                                
                                                                
                                        <plugin>
                                                
<groupId>org.codehaus.mojo</groupId>
                                                
<artifactId>was6-maven-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                
<id>restartApp</id>
                                                                
<phase>install</phase>
                                                                <goals>
                                                                        
<goal>wsAdmin</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                                <configuration>
                                                        
<applicationName>myapp</applicationName>
                                                        
<wasHome>D:\rad75\runtimes\base_v61</wasHome>
                                                        
<host>myhost.server.net</host>
                                                        
<conntype>SOAP</conntype>
                                                        <port>8882</port> <!-- 
Third server in profie -->
                                                        <args>  
                                                                
<arg>-username</arg>
                                                                
<arg>myusername</arg>
                                                                
<arg>-password</arg>
                                                                
<arg>mypassword</arg>
                                                                <arg>-lang</arg>
                                                                
<arg>jython</arg>
                                                        </args>
                                                        
<script>${basedir}/src/main/resources/restartmyapp.jython</script>
                                                        <verbose>true</verbose>
                                                </configuration>
...


Anybody any Ideas?
Joerg


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

    http://xircles.codehaus.org/manage_email


Reply via email to