I’ve built my project successfully. My war is located in target dir and I try to run the war on the jboss here is the part of pom.xml that says jboss where to look for war..
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<jbossHome>C:\jboss-4.2.2.GA</jbossHome>
<serverName>all</serverName>
<fileName>target/0.0.1-SNAPSHOT.war</fileName>
</configuration>
</plugin>
</plugins>
</build>
Now I start it with maven here is the message :
[INFO] [jboss:start]
[INFO] Starting JBoss...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
But the localost isn’t working, what did I forget to do ?
I don’t see the
hard-deployandstartgoals in your pom (the latter is apparently there somewhere if you get this output, just missing from your post). Also, I use my own server configuration instead ofall– but that should not make a big difference in theory. And thefileNameproperty is not used by the plugin, you don’t need it. JBoss automatically finds your war file if it is deployed properly (that’s why you need thehard-deploygoal).My configuration looks like this:
Note that the JBoss maven plugin does only work properly if you bind your server to localhost and to the JNDI port 1099. I guess if you are using the
allserver configuration, you haven’t tampered with those settings, but it’s good to know nevertheless.If your server is still not running, you should check the log files in the
all/logdirectory to see what’s going on.