Maven Installation is failing. Where am I doing wrong? | Selenium Forum
M
Monika Reddy Posted on 18/01/2020

Choose a number: 8:
Define value for property 'groupId': com.qtpselenium.hybrid
Define value for property 'artifactId': HybridFramWork_December2019
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' com.qtpselenium.hybrid: :
Confirm properties configuration:
groupId: com.qtpselenium.hybrid
artifactId: HybridFramWork_December2019
version: 1.0-SNAPSHOT
package: com.qtpselenium.hybrid
Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: maven-archetype-quickstart:1.4
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.qtpselenium.hybrid
[INFO] Parameter: artifactId, Value: HybridFramWork_December2019
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.qtpselenium.hybrid
[INFO] Parameter: packageInPathFormat, Value: com/qtpselenium/hybrid
[INFO] Parameter: package, Value: com.qtpselenium.hybrid
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: com.qtpselenium.hybrid
[INFO] Parameter: artifactId, Value: HybridFramWork_December2019
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:16 min
[INFO] Finished at: 2020-01-18T12:16:17-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: java.io.IOException: The system cannot find the path specified -> [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/MojoFailureException

C:\Program Files\apache-maven-3.6.3>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


S
SENTHILKUMAR KK Replied on 20/01/2020

Please try this once, kindly find my installation screenshot attached of maven installation.

 

1. Download Maven from POI website


2. place the downloaded file in a separate folder (not in the working folder of SWD files)
namely, C:\UserName\WorkOfSWD\Maven

2a. Set the Environmental variable

C:\UserName\WorkOfSWD\Maven\bin\;
(enter this above directory in path at end)

2b.
C:\UserName\WorkOfSWD\Maven\; (create New)

2c. Click OK , OK

3. Then, Goto Dos Command Prompt

4. Navigate to path below
C:\UserName\WorkOfSWD>

Here, Please avoid navigating to the Maven directory

5. In DOS prompt enter the below command and hit enter

C:\UserName\WorkOfSWD>mvn

6. Build Failure will appear , its correct , you are in the right track

7. enter the below and hit enter

C:\UserName\WorkOfSWD>mvn archetype:generate

GroupID = com.qtpselenium.hybrid

artifact = HybridFramework_December2019

Hit enter

I have had the same issue once i set the Environmental variable, all have been ok.

Please follow the steps and let me know if its working fine.

Responsive image

A
Ashish Thakur Replied on 23/01/2020

Is the issue resolved?


M
Monika Reddy Replied on 31/01/2020

@Senthil. ty much. It worked.

 

@Instructor.. I still didn't understand how this POM xml will help the team to keep the versions in sync. I can have some versions specified in the POM.xml, but I can still download some other versions right?  Or would this POM.xml file blocks the team not to download any other versions apart from the versions specified in the POM.xml?

 


A
Ashish Thakur Replied on 03/02/2020

This automatically downloads the specified versions and configures them inside the project.

Even if the newer or older versions are present, it will use the specified version only.


Related Posts