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.
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.