Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
211 views
by The go-to Tester (262 points)
retagged by
I am having a jetty server running in default port :8081 , where build pointing DB1.I want to run a jetty server using same build with different port, it should point to DB2.

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
If you are using Maven,
 
Replace the port number in pom.xml by a property variable like this:
 
<port>${jetty.port}</port>
 
Then run maven using the following command:
 
mvn jetty:run -Djetty.port=8081
 
To define a default port numer, add this default property to your pom file:
 
<properties>
    <jetty.port>8080</jetty.port>
</properties>
 
Hope that helps.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...