Forum Discussion
mlenosgrande
15 years agoContributor
i'm assuming that the *-listeners.xml file
needs to be placed under some directory for the maven plugin to pick it up ?
Yes, but i dont know as much as you bout know.
I can give you the direct solution but it will be more effective to give you for my heuristic search pattern reusable many times

According to you the *-listener.xml have to be in the /bin/listeners. But how Soapui can know that ? Black Magic >:D , hard coded in the java code or a parameter ?
We know that the Gui one is launched by a script adding differents variables.
So let see the content of soapui.bat
if "%SOAPUI_HOME%" == "" goto START
set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext"
set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners"
Youpi ! Dsoapui.ext.listeners is a parameter.
Just to be sure let apply a double check with Google Source Code
By the way, this tool is most effective tool to search for real example and able to apply easily my favourite copy/paste pattern
) Back to Soapui, the response is
here :
System.getProperty( "soapui.ext.listeners" );
Now we have to find a way to tell to maven eviware plugin to apply the mirror instruction:
System.setProperty("soapui.ext.listeners", myValue) portion of code.I havent test ot but this may make it.
...
<configuration>
<soapuiProperties>
<property>
<name>soapui.ext.listeners</name>
<value>${project.build.testOutputDirectory}/soapui/myListener.xml</value>
</property>
</soapuiProperties>
And how to be sure it will loaded ? maybe like usual they have a log added
And the answer is yes according to this line of code. You will read on the console :
"Adding listeners from your_Path_Specify_inMaven
Omar elmandour