Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling maven project

I have a maven project that am working on,I have ensured there are no errors and when I try to compile and deploy using this command "mvn clean compile package wildfly:deploy" it does not do anything and the blinking cursor just stays there. while my other projects the command works. What might be the problem? Please help

like image 360
J.Oginga Avatar asked Jun 25 '16 05:06

J.Oginga


2 Answers

You need not to mention 'clean and compile' maven life cycle phases as invoking package will invoke these by default(no harm calling them as well).OR even package isn't required as wildfly:deploy will invoke package prior to executing itself.

Also please check if you have specified projcet configuration properly 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 at first make sure that you are in the same directory where your pom.xml is placed and issue: mvn wildfly:deploy

like image 177
hardeep thakur Avatar answered Sep 22 '22 12:09

hardeep thakur


Just use wildfly:deploy it will do the same. ls to check that your project have pom and the src folder. Also make sure that the machine is not interrupted by any other process. If this does not work just restart your machine.

like image 25
S. Kiragu Avatar answered Sep 24 '22 12:09

S. Kiragu