INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES
The error indicates you have a version of the app installed with a different certificate.
Before running mvn clean install
, uninstall both the apps:
adb uninstall com.my.app
adb uninstall com.my.app.test2