java - maven 3.3 support for Websphere 8.5.5 - pom.xml -
i not find way deploy war file in websphere 8.5.5 using maven's pom.xml. see there plugin called was6-maven-plugin-1.2.1. , can support 6+, 7+, 8+ seems.
but not deploy war file using plugin. throws following error.
[error] failed execute goal org.codehaus.mojo:was6-maven-plugin:1.2.1:installapp (default-cli) on project test: bad archive: c:\test.war -> [help 1]
please comment on...
my pom.xml configuration fyr:
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>was6-maven-plugin</artifactid> <version>1.2.1</version> <executions> <execution> <id>integration-test</id> <phase>integration-test</phase> <goals> <goal>installapp</goal> </goals> </execution> </executions> <configuration> <washome>c:\program files (x86)\ibm\websphere\appserver</washome> <host>127.0.0.1</host> <server>server1</server> <node>localhostnode01</node> <virtualhost>default_host</virtualhost> <verbose>true</verbose> <conntype>soap</conntype> <port>8880</port> <earfile>test.war</earfile> <verbose>true</verbose> <updateexisting>true</updateexisting> <applicationname>${project.build.finalname}</applicationname> </configuration> </plugin>
for developing project websphere using maven, follow document setting environment maven configure environment.
especially 8.5.5 should use following entry in pom.xml
:
<dependency> <groupid>com.ibm.tools.target</groupid> <artifactid>was</artifactid> <version>8.5.5</version> <type>pom</type> <scope>provided</scope> </dependency>
for pom target, required use launch configuration scripts copy runtime libraries local maven repository.
see configuring dependency pom files emulate classpath of specific websphere runtime environments detailed instructions how copy these libraries.
Comments
Post a Comment