I am trying to use RobolectricSample application for unit testing Android application.
In the instruction for installation of application with Maven the first step is
ant maven-setup. I could not understand why is this command required and what it will do?
Any explanation will be great help.
According to the Ant build file build.xml,
ant maven-setupdoes two things:maven-install-jars:
Install 2 required jar libraries (guice-2.0-no_aop.jar & maps.jar) into Maven local repository.
maven-set-android-sdk:
Reset Android SDK path in pom.xml iff <path> is defined in android-maven-plugin.
This is not a elegant solution, ideally all those tasks should be handled purely by Maven. However, as this project provide both Ant and Maven build, it reuse the script from Ant in Maven build lifecycle for convenience.