I have two projects and projectB depends projectA. I use Maven to do it:
parent  
|- pom.xml  // I use <modules> here to add two projects in.  
|- MyProjectA  
|   `- pom.xml  
|- MyProjectB  
    `- pom.xml  
Now I can import projectA to projectB java code and use the classes in projectA. But when I try to use spring for prokectB as below:
<bean id="test" class="com.company.common.util.PropertyUtils"/>  // The class is inside projectA.
Spring says ClassNotFoundException.
Any ideads?  Thanks.
 
     
    