Error while compiling Maven project | Selenium Forum
M
Munish Sandal Posted on 01/09/2020

Hello Sir,

I am getting below error while compiling the maven project as I have added new dependencies.

PFA. 


A
Ashish Replied on 01/09/2020

Delete the jars file folder of maven

And then try command again. Some cache issue is there


M
Munish Sandal Replied on 02/09/2020

Hello Sir,

If I understood correctly, do you want me to delete some jar files from lib folder.

/Users/nishu/Documents/Softwares/apache-maven-3.6.3/lib

I am attaching the screesnhot of files present.

Responsive image

M
Munish Sandal Replied on 02/09/2020

Hello sir,

Now I am getting below error.

 

Nishus-MacBook-Air:MavenProjectFromCMD nishu$ mvn compile

[INFO] Scanning for projects...

[INFO]

[INFO] ----------------< com.qtpselenium:MavenProjectFromCMD >-----------------

[INFO] Building MavenProjectFromCMD 1.0-SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

[WARNING] The POM for org.apache.poi:poi--ooxml-scehmas:jar:3.6 is missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  1.022 s

[INFO] Finished at: 2020-09-02T05:38:56+05:30

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project MavenProjectFromCMD: Could not resolve dependencies for project com.qtpselenium:MavenProjectFromCMD:jar:1.0-SNAPSHOT: Failure to find org.apache.poi:poi--ooxml-scehmas:jar:3.6 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

You have new mail in /var/mail/nishu


M
Munish Sandal Replied on 05/09/2020

Hello Sir my issue is resolved


Related Posts