I have a simplified <strong>war</strong> project as below:<ul><li>my war project depends on project B</li> <li>project B has direct runtime dependency on google.guava library</li> </ul>
Now I have problem with resolving the dependency on the guava library<ol><li>when I do <em>mvn package</em>, the guava library <strong>is not</strong> included in the WEB-INF/lib directory</li> <li>when I do <em>mvn dependency:copy-dependencies</em>, the guava library <strong>is</strong> included in the dependency directory</li> <li>when I do <em>mvn dependency:tree</em> I can't see the guava library within the tree</li> </ol>
Does anyone know why the guava library is not packaged within the war file as expected? What is difference between copying dependencies and packaging them in war?. Any ideas?Answer1:
The Maven 3 do the trick. I've used Maven 2.2 until now.