Forum Discussion

nesharma's avatar
New Contributor
9 years ago

How to set SoapUI project properties via Maven command line

I have a few project properies in SoapUI project. I also have those project properties overridden in Maven pom.xml, for eg.










When running from command line using maven, SoapUI property values are overridden by the ones in Maven pom.xml, as expected.


I need to run SoapUI from command line using Maven but need to use the properties specified in SoapUI project, not Maven. Is there any way to specify these properties in Maven command line? If not, is there any other solution?



SoapUI Pro 5.1.2

maven-soapui-pro-plugin 4.5.1


I also found a related post ( and tried to use the flag -Dsoapui.projectProperties but have not been successful. Since exact syntax is not specified in the post, I tried many variations For eg: -



3 Replies

  • Heena_Sharma's avatar
    Occasional Visitor

    Project properties can be configured using command line as below:

    Add the following snippet to your pom




    Where 'Env' is the Project property name that would be set in SOAP UI project and '${soapUiEnv}' is the value that will be passed using maven test parameter as below:


    com.smartbear.soapui:soapui-pro-maven-plugin:test -DsoapUiEnv=qa


    This will create a project property named "Env" with value "qa" in your soap ui project.

  • TanyaYatskovska's avatar
    SmartBear Alumni (Retired)



    Please refer to this page explaining some tips you can find useful. Pay special attention to the Configuring properties from external file section. 

    • nesharma's avatar
      New Contributor

      Thanks Tanya. I tried the instructions in the page you provided and in other posts which are referenced and also tried many tweaks but have been unsuccessful.


      The command line options specified on this page are not for Maven command line. They are for SoapUI testrunner .bat/.sh which I am not using. Should these apply to Maven command line as well?


      Here is what my pom file looks like currently:





















      I have tried commenting out <projectProperties> block and added below instead:



      Created "" file in same path. Also, tried by providing full path of file.


      I have tried several other variations like providing property value from maven command line like so:







      Maven command line: 

      mvn eviware:maven-soapui-pro-plugin:test -DTestFile=soapui-project.xml


      My property values contain colons so I  have also tried after escaping them in I have given full permission for to all. I am running on Linux.


      I have also tried using <globalProperties> because that will work in my case as well.


      In every case, it is not loading properties from file, it is loading from SoapUI. If I uncomment <projectProperties>, then those are loaded.