Maven-在当前项目中找不到用于前缀"wildfly"的插件 [英] Maven - No plugin found for prefix 'wildfly' in the current project

查看:260
本文介绍了Maven-在当前项目中找不到用于前缀"wildfly"的插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Wildfly 8,我需要使用JSR 352中的Java批处理程序.我从

Am using Wildfly 8 and I need to use the java batch processor from JSR 352. I downloaded the examples from https://github.com/javaee-samples/javaee7-samples but can't get them to work.

在批处理文件夹中,我做了mvn clean package wildfly:deploy,但收到错误

On the batch folder I did mvn clean package wildfly:deploy but am getting the error

在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中找不到前缀"wildfly"的插件,可从存储库[本地(/home/krishnen/.m2/存储库),codehaus-snapshots( http://nexus.codehaus.org/snapshots/),中央( http://repo.maven.apache.org/maven2)]

No plugin found for prefix 'wildfly' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/krishnen/.m2/repository), codehaus-snapshots (http://nexus.codehaus.org/snapshots/), central (http://repo.maven.apache.org/maven2)]

任何想法可能有什么问题吗?

Any ideas what may be wrong?

推荐答案

您只需在settings.xml文件中添加以下内容:

You simply can add the following in your settings.xml file:

<pluginGroups>
  <pluginGroup>org.wildfly.plugins</pluginGroup>
</pluginGroups>

之后,您可以像这样使用它:

After that you can use it like this:

mvn wildfly:deploy

这篇关于Maven-在当前项目中找不到用于前缀"wildfly"的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆