Hi,
I've never used the was-plugin, but looking at the documentation and
source code, it seems that the default assumption of the 'installAp'
goal is that it is running as part of a maven build.
The 'earFile' parameter is automatically populated with the current
projects main artifact [1], which is obviously not available when you
invoke the goal standalone. What should work, is that you specify the
ear file explicitly on the command line:
mvn -Dwas6.earFile=/path/to/my.ear was6:installApp
Hope this helps
-Tim
[1] http://mojo.codehaus.org/was6-maven-plugin/installApp-mojo.html#earFile
Lustig, Marc (Allianz Deutschland AG) schrieb:
mvn package
..
[INFO] BUILD SUCCESSFUL
..
mvn was6:installApp
...
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.mojo.was6.WsInstallAppMojo.configureBuildScript(WsInstallAp
pMojo.java:54)
the pom.xml look like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>was6-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>wsStopServer</goal>
<goal>installApp</goal>
<goal>wsStartServer</goal>
</goals>
</execution>
</executions>
<configuration>
<wasHome>c:/Programme/ibm/SDP70/runtimes/base_v61</wasHome>
<host>localhost</host>
<username>admin</username>
<password></password>
<!--
<targetCluster>nameOfCluster</targetCluster>
-->
<profileName>AppSrv01</profileName>
<!-- remember to import
certificate from remote site when deploying to a site with security
activated -->
<conntype>SOAP</conntype>
<port>8880</port>
<verbose>true</verbose>
<!-- need to be false first time it's
deployed to a server -->
<updateExisting>false</updateExisting>
</configuration>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]