If you have a look at the effective pom, which is what Maven uses, you will see a sourceDirectory element in the build section. The default path is defined in the Super-POM.
You can view the effective pom in m2e or with "mvn help:effective-pom". /Anders On Thu, Oct 24, 2013 at 10:08 PM, Paul Benedict <pbened...@apache.org>wrote: > You are likely not see "src/main/java" in POMs because that is the default > path. Unless you want to change the source directory, you can omit it > altogether. > > > On Thu, Oct 24, 2013 at 3:04 PM, Robert Dailey <rcdailey.li...@gmail.com > >wrote: > > > Hey everyone, > > > > I'm trying to understand something basic, I haven't been able to find > > the answer through Google surprisingly (maybe my searching abilities > > suck today). How is it that Maven is able to find source code to > > compile? What I would expect is the pom.xml to refer to some *.java > > path (something like <source>src/main/java/*</source>), but I don't > > see anything like that. > > > > How does maven know what java source code to compile? Thanks in > > advance for any help. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > -- > Cheers, > Paul >