"Failed to complete target" error when trying to create a project using JSF

I was unable to complete the goal org.apache.maven-dependency-plugin:2.8:tree

.

I am using the command in my cmd:

mvn archetype:create-DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp

      

I followed many solutions but couldn't find a solution for this.

enter image description here

+3


source to share


2 answers


The solution to the problem is to use the command below with quotes:



mvn archetype:generate "-DarchetypeGroupId=org.apache.maven.archetypes" "-DgroupId=com.tutorialspoint.test" "-DartifactId=helloworld"

      

+1


source


Maven could not find target create-DgroupId = com.tutorialspoint.test

Try adding a space after create



mvn archetype:create -DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp

      

+1


source







All Articles