我需要自動化一個使用HermesJMS和Maven2的SoapUI項目。我得到的問題是,SoapUI在將HermesJMS集成到其Classpath中失敗。結合Maven,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不能正確找到愛馬仕 - 但我怎麼解決這個問題?