maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Trying to understand how maven finds source
Date Thu, 24 Oct 2013 20:24:05 GMT
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 <pbenedict@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.lists@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-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Cheers,
> Paul
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message