我为maven编写了自己的库。我包括这样的jar文件: http://www.soapui.org/extension-plugins/old-style-extensions/developing-old-style-extensions.html 并且一切正常。将jar包含到SoapUI maven
但是,我想在maven中运行我的SoapUI项目。我可以如何包含这个库?
我为maven编写了自己的库。我包括这样的jar文件: http://www.soapui.org/extension-plugins/old-style-extensions/developing-old-style-extensions.html 并且一切正常。将jar包含到SoapUI maven
但是,我想在maven中运行我的SoapUI项目。我可以如何包含这个库?
你需要在你里面Maven项目的根,即在您的pom.xml是创建一个文件夹ext
。 把你的编译过的jar放到这个文件夹中(就像你已经在你的<SoapUI_installation_dir>\bin\ext
目录中完成的那样),以便这个jar在通过maven运行时可用于SoapUI运行器。
但是我怎么可以提示源代码? – miosz
检查[你的其他问题](http://stackoverflow.com/questions/30320647/) – AlexandrosD
更新:
要包括肥皂UI项目在Maven中包括在你的POM的插件,并与soapUI的项目文件进行配置(见下文)
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.3</version>
<configuration>
<projectFile>simple-test-soapui-project.xml</projectFile>
</configuration>
</plugin>
貌似这个插件不适在Maven的中央,所以你必须包括像这样的插件库(在你的POM或settings.xml中)
<pluginRepository>
<id>smartbear-sweden-plugin-repository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
更多信息可以在这里找到 - Soap UI maven plugin
还有另一个线程here
请参阅:[肥皂UI maven插件](http://www.soapui.org/test-automation/maven/maven-2-x.html) – kenorb
相关:[如何在Maven的生命周期中执行2个SoapUI测试项目](http://stackoverflow.com/q/9907607/55075) – kenorb
完成此操作的唯一方法是使用您的扩展名重新打包SoapUI。从这里开始:https://github.com/SmartBear/soapui – SiKing