A key element missing from the Getting Started guide between the sections
"How do I make my first Maven project?"
"http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20make%20my%20first%20Maven%20project?";

and 
"How do I compile my application sources?"
"http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20compile%20my%20application%20sources?";

Is that mvn needs to execute in the same folder that pom.xml resides.
So if you used -DartifactId=my-app in the archetype create command line..
Simply "cd my_app" before executing your "mvn compile" or "mvn site".

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 10, 2005 7:34 AM
To: [email protected]
Subject: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not 
exist or no valid version could be found


Hello, 
I'm trying to create a new project like the instruction "getting started". But 
there are some problems with the 'archetype' PlugIn! I'm using maven 2. Is 
there somebody who can help?

C:\Dokumente und Einstellungen\hauschel.fred>mvn archetype:create 
-DgroupId=com.mycompany.app -DartifactId=my-app -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not 
exist or no valid version could be found [INFO] 
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid 
version could be found
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1124)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1356)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:376)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The 
plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no 
valid version could be found
        at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
        at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095)
        ... 14 more
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Nov 10 16:24:00 CET 2005
[INFO] Final Memory: 1M/2M
[INFO] 
----------------------------------------------------------------------------




Informieren Sie sich jetzt über die faszinierenden Möglichkeiten des digitalen 
Fernsehens und über Kabel Digital HOME  - auf dem Kabel Deutschland Infokanal. 

Der Kabel Deutschland Infokanal ist neu in den Kabelnetzen von Bayern, Hamburg 
und Niedersachsen.
 
 
Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich 
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtümlich erhalten haben, benachrichtigen Sie bitte den Absender, indem 
Sie auf diese Nachricht antworten und vernichten Sie anschließend diese Mail 
und die Anlagen. Das unerlaubte Kopieren sowie die unbefugte Weitergabe und 
Verbreitung dieser Mail und den Anhängen ist nicht gestattet. Kabel Deutschland 
kann für durch Viren entstandene Schäden, die über diese Mail übermittelt 
worden sind, nicht haftbar gemacht werden.

This e-mail and its attachments may contain confidential and/or legally 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please immediately notify the sender by replying to this 
e-mail and then delete this e-mail and its attachments from your system / 
computer. Any unauthorised copying, disclosure, dissemination or distribution 
of the material in this e-mail is strictly prohibited. Kabel Deutschland 
accepts no liability for any damage caused by any virus transmitted by this 
email.

---------------------------------------------------------------------
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]

Reply via email to