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

0 like 0 dislike
258 views
by Contributing Tester (92 points)
retagged by
My selenium framework is complete and I am developing Test Cases for 4-5 different applications.

I want separate POM.XML for each for each application.

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

You can create child pom.xml by specifying parent.

Sample parent pom.xml file

<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-module</artifactId>
<version>1</version>
</project>

Sample child pom.xml

<project>
<parent>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-module</artifactId>
<version>1</version>
</project>
 
In above example, you can see that your child pom.xml file is specifying parent pom.xml file's groupId, aftifactId and version.
 
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

...