I am working on a multi module project with m2eclipse. I set the maven to take care of resolving workspace dependencies. But when I make change on, say, service module, change is not visible on other modules immediately. If I make new method in Service layer, it is not visible in WebApp layer. Sometimes even Run/maven install and refresh and Project/clean and Maven/Update Dependencies doesn't work. Can someone give me an idea on this problem?
My project structure looks like as follows:
parent module
<groupId>com.myproject</groupId>
<artifactId>einvites-parent</artifactId>
<modules>
<module>myproject-common</module>
<module>myproject-domain</module>
<module>myproject-service</module>
<module>myproject-web</module>
</modules>
service module
<parent>
<artifactId>myproject-parent</artifactId>
<groupId>com.myproject</groupId>
<version>1.0</version>
</parent>
<groupId>com.myproject</groupId>
<artifactId>myproject-service</artifactId>
web module
<parent>
<artifactId>myproject-parent</artifactId>
<groupId>com.myproject</groupId>
<version>1.0</version>
</parent>
<groupId>com.myproject</groupId>
<artifactId>myproject-web</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<name>myproject-web</name>
<dependencies>
<dependency>
<groupId>com.myproject</groupId>
<artifactId>myproject-service</artifactId>
<version>1.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>