I have been going through this tutorial and got maven installed, created my environment variables, created a new android project but i do not know where to place the pom.xml file ?
also, how do I run my maven build so a new .apk file is created ?
Maven commands that execute on a POM need to be executed in the current working directory of your project. Say your project is in c:\myproject
. That means your pom file would be located at c:\myproject\pom.xml
. When you run a maven command in the command line you need to set your current working directory to c:\myproject
.
In windows if you hold down shift
then right click on the open folder, you will see an additional menu item called Open command window here
.
Alternatively you can always open your command window and type in cd <path to your project>
.
Once there type in your maven commands such as mvn3 clean install
Heres a screenshot of the drop down for windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With