Hello Bharath,
The only suspicious thing is the backslashes in your command. You might want to re-try
without them:
mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.example -DartifactId=simple-service-webapp -Dpackage=com.example -DarchetypeVersion=2.6
Does it work? If not, what if you add the debug option: -X?
I presume you have another repositories defined, but you should see the maven-archetype-plugin:generate mentioned in your output somewhere
(like in the following quote):
—8<—
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: org.apache.maven:standalone-pom:1
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [internal-glassfish-nexus (
http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus/, releases+snapshots)]
[DEBUG] Repositories (plugins) : [internal-glassfish-nexus (
http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus/, releases+snapshots)]
[DEBUG] --- init fork of org.apache.maven:standalone-pom:1 for org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) ---
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] --- exit fork of org.apache.maven:standalone-pom:1 for org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) ---
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
—>8—
~Jakub
On 24 Feb 2014, at 05:51, Bharath C <Bharath.C_at_lnties.com> wrote:
> Hi All,
>
> I’m new to Jersey 2.6 (earlier had worked on jersey 1.17) , tried to download skeleton project using
>
> mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp \-DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false \-DgroupId=com.example -DartifactId=simple-service-webapp -Dpackage=com.example \-DarchetypeVersion=2.6
> using maven, but it gives an error
>
>
> [ERROR] The goal you specified requires a project to execute but there is no POM
> in this directory (E:\newProj123). Please verify you invoked Maven from the cor
> rect directory. -> [Help 1]
>
> Do I need to download POM file? From where I’m not getting any links
>
> Pls help me, this is very lame but I’m not able to find any help
>
>
> Larsen & Toubro Limited
>
> www.larsentoubro.com
>
> This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>