HermesJMSとMaven2を使用するSoapUIプロジェクトを自動化する必要があります。私が得る問題は、SoapUIがHermesJMSをそのクラスパスに統合できないことです。
2012-09-20 15:48:21,340 ERROR [SoapUI] An error occured [java.lang.NullPointerException], see error log for details
2012-09-20 15:48:21,465 ERROR [errorlog] java.lang.NullPointerException
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.addHermesJarsToClasspath(HermesUtils.java:120)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.getHermes(HermesUtils.java:74)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.hermesContext(HermesUtils.java:55)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.getHermes(HermesUtils.java:200)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.getHermes(HermesJmsRequestTransport.java:211)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.init(HermesJmsRequestTransport.java:102)
統合は思ったほどスムーズではないようです。
ここにプラグイン構成があります:
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.5.1</version>
<dependencies>
<!-- Start IBM DB2 Support -->
<dependency>
<groupId>com.ibm.db2</groupId>
<artifactId>db2jcc</artifactId>
<version>3.1.57</version>
</dependency>
<dependency>
<groupId>com.ibm.db2</groupId>
<artifactId>db2jcc_license_cu</artifactId>
<version>3.1.57</version>
</dependency>
<dependency>
<groupId>com.ibm.db2</groupId>
<artifactId>db2jcc_license_cisuz</artifactId>
<version>3.1.57</version>
</dependency>
<!-- End IBM DB2 Support -->
<dependency>
<groupId>hermesjms</groupId>
<artifactId>hermes</artifactId>
<version>1.14</version>
</dependency>
</dependencies>
<configuration>
<projectFile>src/test/resources/config/BATS-soapui.xml</projectFile>
<testSuite>BATS</testSuite>
<outputFolder>${basedir}/target/soapui</outputFolder>
<projectProperties>
<value>outputFileLocation=${outputFileLocation}</value>
<value>malpakke=${malpakke}</value>
<value>fagomrade=${fagomrade}</value>
<value>useDatabase=${useDatabase}</value>
</projectProperties>
</configuration>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
SoapUIはHermesを正しく検出しないと思いますが、どうすれば修正できますか?