Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I place the pom.xml file?

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 ?

like image 448
user3730244 Avatar asked Oct 20 '22 06:10

user3730244


1 Answers

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 enter image description here

like image 131
ug_ Avatar answered Oct 23 '22 11:10

ug_