maven中出错:找不到前缀'get'的插件

时间:2012-07-09 00:14:40

标签: maven glassfish maven-3

我正在运行以下命令让我的项目运行

mvn gwt:run >> D:\client.log 2>&1

它给了我以下错误:

  

[错误]在当前项目和插件组中找不到前缀'get'的插件[org.apache.maven.plugins,org.codehaus.mojo]可从存储库[local(C:\ Users \)获取name.m2 \ repository),nexus(https://nexus.companyname.com/nexus/content/groups/public/)] - > [帮助1]   org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException:在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中找不到前缀'get'的插件,可从存储库[local]获取(C:\ Users \ RahulJ.m2 \ repository),nexus(https://nexus.companyname.com/nexus/content/groups/public/)]       在org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:94)       在org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:262)       在org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:222)       在org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)       at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)       在org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98)       在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)       在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)       在org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)       在org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)       在org.apache.maven.cli.MavenCli.main(MavenCli.java:141)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)       在java.lang.reflect.Method.invoke(Method.java:597)       在org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)       在org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)       在org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)       在org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)   [错误]   [错误]   [错误]有关错误和可能解决方案的更多信息,请阅读以下文章:   [错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

1 个答案:

答案 0 :(得分:-1)

您编写的命令似乎没有绑定到您提供的日志。

错误No plugin found for prefix 'get' in the current project and in the plugin groups表示您未在构建部分中声明获取插件。

我认为您尝试了mvn get:run而不是mvn gxt:run ...您是不是混合了E和W字母(在您的QWERTY键盘上?)