Reputation: 882
I am trying to deploy a project to wildfly using the wildlfy-maven-plugin. I am trying to deploy using this command:
mvn -f nmedical-admin-api/pom.xml wildfly:deploy
If i run this directly in my shell everything works fine, but if i run this inside a gitlab pipeline (.gitlab-ci.yml file) then it does not work; it does not find the plugin
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/mono/.m2/repository), central (https://repo.maven.apache.org/maven2)]
Any ideas
Upvotes: 1
Views: 687
Reputation: 882
For some reason, i had to add this lines in my settings.xml
<pluginGroups>
<pluginGroup>org.wildfly.plugins</pluginGroup>
</pluginGroups>
After that, i worked fine
Upvotes: 1