This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Try removing the <dependencyManagement> tags. That is, delete lines 13 and 42.
Because you are getting a compiler error, the problem you are having is not with downloading artifacts. Instead, the issue is that the compiler classpath doesn't include the JARs that you need. I think that the <dependencyManagement> tags are causing this, hence my suggestion to remove them. One way to check this is to use the -X option and observe what the compiler classpath gets set to.
The problem was fixed by removing the <dependencyManagement> tag. Somehow it was not allowing to download everything.
Thank YOU all for your help!
Joined: Mar 17, 2012
Eric Lopez-Fernandez wrote:
.. Somehow it was not allowing to download everything.
The explanation (which is always better than the solution) has already been given.
DependencyManagement doesn't state what your artifact depends on and so doesn't state what requires to be downloaded so no download was being done.
It specifies versions so that if you do add dependencies to your project then the project doesn't have to specify the versions since they are already in DependencyManagement.
When you add the actual dependencies the should not be under DependencyManagement.
Joined: Oct 13, 2011
Thank you very much for the explanation, I appreciate that!