Maven Eclipse Plugin won’t add Android support-v4 to build path

I’m working on a project using RoboGuice with Eclipse ADT, m2e and android-maven-plugin.

I’m using RoboListFragment class which depends on, for this reason I’ve added the following dependency to pom.xml


Nevertheless eclipse does not add that library to build path. When I build my project from command line everything is ok, but in eclipse I get this error message:

The type cannot be resolved. It is indirectly referenced from required .class files

The only workaround I found is adding it to the build path as an external jar, but then .classpath refers to my own home directory.


Try to remove


In Maven, this means support-v4 will be in the classpath (see

Source: stackoverflow
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .