But this didnt solve the error .. Its throwing the same error. 



You need to specify what archetype to use. I'd guess you want to use
maven-archetype-simple or maven-archetype-quickstart.

Here's a list:
http://maven.apache.org/plugins/maven-archetype-plugin/
and
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List

Here's the full command:
mvn archetype:create                                    \
  -DarchetypeGroupId=<archetype-groupId>                \
  -DarchetypeArtifactId=<archetype-artifactId>          \
  -DarchetypeVersion=<archetype-version>                \
  -DgroupId=<my.groupid>                                \
  -DartifactId=<my-artifactId>

Wayne

On 12/14/07, Aneena <[EMAIL PROTECTED]> wrote:
>
> I'm getting the following error please help me to solve this
>
> D:\Annhunts>mvn archetype:create -DgroupId=com.mycompany.app
> -DartifactId=my-app
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [INFO] org.codehaus.mojo: checking for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> for up
> dates from central
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
> ype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom
> 4K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
> etype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom
> 3K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
> etype-parent/2/maven-archetype-parent-2.pom
> 2K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven
> -parent-5.pom
> 14K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
> 3K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
> ype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar
> 2K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '9eaf6ba99d
> 12f776fb14d486ab2942887dfcc55a'; remote =
> 'b0280b2e376542c692104f38b14a4892e509a
> 379' - RETRYING
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
> ype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar
> 2K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '009aa04756
> a4faf583ae3f70bac15f780ba10a11'; remote =
> 'b0280b2e376542c692104f38b14a4892e509a
> 379' - IGNORING
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The PluginDescriptor for the plugin Plugin
> [org.apache.maven.plugins:mave
> n-archetype-plugin] was not found.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalStateException: The PluginDescriptor for the plugin
> Plugin
> [org
> .apache.maven.plugins:maven-archetype-plugin] was not found.
>        at
> org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginM
> anager.java:321)
>        at
> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
> faultPluginManager.java:208)
>        at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
> inManager.java:172)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1257)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:1522)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
> AggregationNeeds(DefaultLifecycleExecutor.java:386)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:138)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15 seconds
> [INFO] Finished at: Thu Dec 13 20:06:36 IST 2007
> [INFO] Final Memory: 1M/3M
> [INFO]
> ------------------------------------------------------------------------
> --
> View this message in context:
> http://www.nabble.com/Errror-while-running-the-target-mvn%3Aarchetype-tp14331395s177p14331395.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


:working:
-- 
View this message in context: 
http://www.nabble.com/Errror-while-running-the-target-mvn%3Aarchetype-tp14331395s177p14370143.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to