Maven - No plugin found for prefix 'wildfly' in the current project
Solution 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
Solution 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
Solution 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 :-)
![Kevin Joymungol](https://i.stack.imgur.com/6Xex1.jpg?s=256&g=1)
Kevin Joymungol
A software developer with more than 10 years experience. Conversant with both open source and microsoft technologies.
Updated on July 21, 2022Comments
-
Kevin Joymungol almost 2 years
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 errorNo 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?
-
Kevin Joymungol about 10 yearsSeems to have solved the issue but I get another error - Error executing FORCE_DEPLOY: /home/krishnen/Dropbox/javaee7-samples/batch/target/batch-samples.maven-project (No such file or directory) Any ideas? U can reproduce it if you get the example on github. Thanks!
-
Mfuon Leonard about 8 yearsyou acan as well read on the documentation at docs.jboss.org/wildfly/plugins/maven/latest