Maven - No plugin found for prefix 'wildfly' in the current project

拜拜、爱过 提交于 2019-12-07 08:55:32

问题


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.

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

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?


回答1:


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



回答2:


<project>
    ...
    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <version>1.1.0.Alpha8</version>
            </plugin>
            ...
        </plugins>
        ...
    </build>
...
</project>

Use this updated plugin. I also had the same problem as since i added the wildfly dependency to my pom.xml rather than the plugin




回答3:


You need add this plugin to your pom.xml.

<build>
   <plugins>
      <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>1.0.2.Final</version>
        </plugin>
    </plugins>
</build>

And than call mvn wildfly:deploy, this should do the job :-)



来源:https://stackoverflow.com/questions/24405275/maven-no-plugin-found-for-prefix-wildfly-in-the-current-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!