Set Project level properties in pom.xml using external file
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
06:50 AM
04-07-2014
06:50 AM
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
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
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
09:00 AM
04-07-2014
09:00 AM
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
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2014
12:54 PM
04-10-2014
12:54 PM
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
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>
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2016
07:38 AM
06-13-2016
07:38 AM
Hi,
<soapuiProperties> <property> <name>soapui.properties.MyProject</name> <value>path_to_your_properties_file</value> </property> </soapuiProperties>
I am using this plugin in my Pom file, I have a doubt here the project name we have specified "MyProject " will it be same as our project xml file name or the project name what we have given in soapui ?
