Forum Discussion

saurabhsharma09's avatar
saurabhsharma09
Contributor
11 years ago

Set Project level properties in pom.xml using external file

Hello,

I searched in the forum but couldn't figure out how to set project level properties through external .properties file in pom.xml
though I am able to set project level properties by directly specifying values in pom.xml as below and able to run the project successfully using Maven soap UI pro Plugin:-
<configuration>
......
<projectProperties>
<value>UserName=a</value>
<value>Password=b</value>
</projectProperties>
......
<configuration>

My .properties file have values like below:-
UserName=a
Password=b

Could you please help?

Regards,
Saurabh
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    I don't believe this functionality is currently available in the soapui pro plugin. There is a plugin for reading\writing properties for maven, but the setup of the properties looks different than how they are specified for soapui project properties.

    http://mojo.codehaus.org/properties-maven-plugin/


    Regards,
    Marcus
    SmartBear Support
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi, have a look on this post viewtopic.php?f=5&t=17522

    If your project is called MyProject, add the following to your plugin configuration

      <soapuiProperties>
    <property>
    <name>soapui.properties.MyProject</name>
    <value>path_to_your_properties_file</value>
    </property>
    </soapuiProperties>
    • Pritish_Panda's avatar
      Pritish_Panda
      Contributor

      Hi,

       

      <soapuiProperties>
          <property>
            <name>soapui.properties.MyProject</name>
            <value>path_to_your_properties_file</value>
          </property>
        </soapuiProperties>