Hi there,
Have you installed your plugin? try to command "mvn install
-DupdateReleaseInfo=true" before you execute your plugin.
-allan
Pleines, Karsten (III A 6) wrote:
I tryed to creat my first maven 2 plugin. As sample I used the tutorial of
the apache website:
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
<http://maven.apache.org/guides/plugin/guide-java-plugin-development.html>
But the problem I get if I try to call my plugin I got this error:
D:\java\workspace_maven\m2plugins>mvn -e
m2bvaplugins:m2plugins:1.0-SNAPSHOT:sayhi
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Cannot find mojo descriptor for:
'm2bvaplugins:m2plugins:1.0-SNAPSHOT:sayhi' - Treating as non-aggregator.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [m2bvaplugins:m2plugins:1.0-SNAPSHOT:sayhi]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check
that the goal name is correct: Unable to downl
oad the artifact from any repository
m2bvaplugins:m2plugins:maven-plugin:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
m2bvaplugins:m2plugins:maven-plugin:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: A required plugin was not found:
Plugin could not be found - check that the goal
name is correct: Unable to download the artifact from any repository
m2bvaplugins:m2plugins:maven-plugin:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
m2bvaplugins:m2plugins:maven-plugin:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:460)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.jav
a:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
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:585)
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.PluginNotFoundException: Plugin could not
be found - check that the goal name is corr
ect: Unable to download the artifact from any repository
m2bvaplugins:m2plugins:maven-plugin:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
m2bvaplugins:m2plugins:maven-plugin:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl
uginManager.java:246)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManag
er.java:182)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1174)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
tLifecycleExecutor.java:1436)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:484)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:455)
... 14 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWag
onManager.java:260)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:124)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:63)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl
uginManager.java:209)
... 19 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jan 26 10:39:55 CET 2006
[INFO] Final Memory: 1M/3M
[INFO]
----------------------------------------------------------------------------
Can somebody help me solving my (I think for someone simple) problem?
Thank you
Karsten
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/240 - Release Date: 1/25/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]