Compiling the maven project

I have a maven project that I'm working on, I made sure that there are no errors, and when I try to compile and deploy using this command “mvn clean compile package wildfly: deploy”, it does nothing and the blinking cursor just remains there. while my other projects are working. What could be the problem? Please, help

+7
java maven-2 build deployment wildfly
source share
3 answers

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

+3
source share

Just use wildfly: expand, it will do the same. ls to verify that your project contains pom and the src folder. Also ensure that the machine is not interrupted by any other process. If this does not work, just restart your computer.

+2
source share

Try to launch each goal separately and see what happens. Your pom may have gone bad

+1
source share

All Articles