How do I build a hello world class with maven?
- by httpinterpret
Now the source code is ready, how can I build it with maven?
Suppose the source file is hw.java
I've googled some time, all the solutions requires me to set the directory in a fixed manner.
But what I want to do is keep hw.java in current directory (.), and then:
vi pom.xml
...
mkdir build
cd build
maven ...
Can I have that kind of freedom with maven?