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

风流意气都作罢 提交于 2019-12-05 16:39:34

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

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 :-)

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