Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 450
Kevin Joymungol Avatar asked Jun 25 '14 09:06

Kevin Joymungol


3 Answers

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
like image 61
khmarbaise Avatar answered Nov 08 '22 08:11

khmarbaise


<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

like image 29
Ndirangu Avatar answered Nov 08 '22 10:11

Ndirangu


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

like image 6
Petr Mensik Avatar answered Nov 08 '22 09:11

Petr Mensik