You should not mention the “clean and compile” phases of the maven life cycle, as the calling package will call them by default (do not harm them either). Even an even package is not required, as wildfly: deploy will call the package before executing itself.
Also check if the projcet configuration is correctly specified as -
<plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>1.0.2.Final</version> <configuration> <filename>${project.build.finalName}.war</filename> </configuration>
Now first make sure that you are in the same directory where your pom.xml is located and it displays: mvn wildfly: deploy
hardeep thakur
source share