I am trying to learn maven. So here is what I did.
1) Open eclipse.
2) New Project
3) create a package org.bar.foo;
4) Say thats all in my project and it has 3 files.. foo.java, bar.java and foobar.java
Now, when I look at my directory structure... it looks like
-src--org--bar--foo --all the files are here
Now.. on the top level next to src. I add a pom file..
I do mvn clean package.. Test passes..
But when I try to execute the jar, I get an error(class not found).
Turns out maven likes the directory structure to be
src--main--java--org--bar--foo.. and so on..
But now.. eclipse complains. change the package name from
org.bar.foo to main.java.org.bar.foo
I am trying to follow this example https://github.com/xamry/hadoop-examples