POM.XML | Selenium Forum
N
Nagajyothi Posted on 05/03/2020

Errors in pom.xml ...when i add dependencies  errors are countered.

Thankyou


A
Ashish Thakur Replied on 06/03/2020

There are no dependencies in your pom.xml

Please add dependencies first then we can analyse the issue.


N
Nagajyothi Replied on 06/03/2020

Hi Please check the attached file.

Thank you.


A
Ashish Thakur Replied on 09/03/2020

As i can see in the attcahed file. There are no dependencies added.

Please refer the videos again.


N
Nagajyothi Replied on 11/03/2020

Hi ,eve though I add dependencies its not working..

please check ..and also provide pom.xml file.

Thank you


A
Ashish Thakur Replied on 11/03/2020

As i can see there is a problem in your pom.xml. This is malformed XML. Please have a look into the shared pom.xml and try again. 

Please do not use this file as it is as the project information is removed from it. Copy the content you need only.


N
Nagajyothi Replied on 11/03/2020

Hi ,I tried copy dependencie fro your file its not working ..what does malformed xml..could you please help me to solve this.

Thank you.


A
Ashish Thakur Replied on 12/03/2020

Please analyze the below dependencies. Also, make sure that all the dependencies need to be specified in this pattern only.

Also, I would suggest you watch module 9 on an urgent note.

<dependencies>
		<!-- POI -->
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>4.1.1</version>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-ooxml-schemas</artifactId>
			<version>4.1.1</version>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-compress</artifactId>
			<version>1.19</version>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-ooxml</artifactId>
			<version>4.1.1</version>
		</dependency>
		<!-- Selenium -->
		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-java</artifactId>
			<version>3.141.59</version>
		</dependency>
		<!-- Extent Reports -->
		<dependency>
			<groupId>com.aventstack</groupId>
			<artifactId>extentreports</artifactId>
			<version>3.1.2</version>
		</dependency>
		<!-- Testng -->
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>6.10</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire</artifactId>
			<version>2.18.1</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
			<version>2.8.1</version>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.3.3</version>
		</dependency>
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>23.0</version>
		</dependency>
		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib</artifactId>
			<version>3.1</version>
		</dependency>
		<dependency>
			<groupId>commons-validator</groupId>
			<artifactId>commons-validator</artifactId>
			<version>1.4.1</version>
		</dependency>
		<!-- Java mail api -->
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.4</version>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>1.3.2</version>
		</dependency>
		<dependency>
			<groupId>net.sf.saxon</groupId>
			<artifactId>saxon</artifactId>
			<version>8.7</version>
		</dependency>
	</dependencies>


N
Nagajyothi Replied on 12/03/2020

Thank you,when installed Maven plugin it worked.


Related Posts