JBoss Community

Re: maven and jboss hot deployment does not work correctly

created by Snjezana Peco in JBoss Tools - View the full discussion

For some reason your warSourceDirectory isn't set correctly.

Try to right-click the project and call Maven>Update Project Configuration.

If this doesn't help, probably there is a bug in the m2eclipse-wtp integration.

 

A workaround is to replace

<wb-resource deploy-path="/" source-path="/smsurbano-1.0-SNAPSHOT"/>

with

<wb-resource deploy-path="/" source-path="/src/main/webapp"/>

in the .settings/org.eclipse.wst.common.component.

 

BTW, since you are using Java EE 6 and JDK 6, you have to set the compiler target and source to 1.6.

...

<plugin>

     <artifactId>maven-compiler-plugin</artifactId>

     <configuration>

         <source>1.6</source>

         <target>1.6</target>

     </configuration>

</plugin>

...

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community