How do I build a hello world class with maven?
Posted
by httpinterpret
on Stack Overflow
See other posts from Stack Overflow
or by httpinterpret
Published on 2010-05-15T18:02:22Z
Indexed on
2010/05/16
8:40 UTC
Read the original article
Hit count: 313
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?
© Stack Overflow or respective owner