As Dan said before, the default is src/main/java for java sources. If src/java/com… is working, then I'd assume there is a configuration coming in somewhere in your project (pom, parent pom, etc) to change it from src/main/java. Or I'd expect Maven to complain a little.
Wayne On Wed, Apr 15, 2015 at 3:52 PM, Lin Ma <lin...@gmail.com> wrote: > Thanks Wayne for the correction, :)) > > Is there any default values for source if I do not use the parameter > explicitly? > > I tried it compiles fine with sub-folder src/java/com/foo/goo/zoo.java > > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.3.2</version> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > > > regards, > Lin > > > On Wed, Apr 15, 2015 at 9:04 AM, Wayne Fay <wayne...@gmail.com> wrote: > > > Your link is to the m-javadoc-p. You want m-compiler-p as seen here. Look > > for the "source" parameter. > > > > http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html > > > > Wayne > > > > On Sun, Apr 12, 2015 at 1:10 AM, Lin Ma <lin...@gmail.com> wrote: > > > > > Thanks Dan, > > > > > > Followed your advice tried mvn -X compile and output is very verbose, > > which > > > items should I look at? > > > > > > I refer the document for compiler plug-in as well ( > > > http://maven.apache.org/plugins/maven-javadoc-plugin/plugin-info.html > ), > > > and > > > not found it is mentioned where is source directory to search for for > > > compiler plug-in? Thanks. > > > > > > regards, > > > Lin > > > > > > On Sat, Apr 11, 2015 at 10:12 PM, Dan Tran <dant...@gmail.com> wrote: > > > > > > > try mvn -X compile, it will give you lots of hints too > > > > > > > > -D > > > > > > > > On Sat, Apr 11, 2015 at 10:11 PM, Dan Tran <dant...@gmail.com> > wrote: > > > > > > > > > looks like your pom reconfigures the default source ( ie > > > > > build-->sourceDirectory) ???? this may help > > > > > https://maven.apache.org/pom.html > > > > > > > > > > -D > > > > > > > > > > On Sat, Apr 11, 2015 at 10:06 PM, Lin Ma <lin...@gmail.com> wrote: > > > > > > > > > >> Hi Dan, > > > > >> > > > > >> I have this question since I tried it compiles fine with sources > in > > > > >> src/java/com/foo/..., are they default location as well? I do not > > find > > > > >> sub-directory "main" in the middle of the path. > > > > >> > > > > >> regards, > > > > >> Lin > > > > >> > > > > >> On Sat, Apr 11, 2015 at 9:59 PM, Dan Tran <dant...@gmail.com> > > wrote: > > > > >> > > > > >> > default main source is at src/main/java > > > > >> > > > > > >> > to add more sources, use build-helper-maven-plugin > > > > >> > > > > > >> > -Dan > > > > >> > > > > > >> > On Sat, Apr 11, 2015 at 8:10 PM, Lin Ma <lin...@gmail.com> > wrote: > > > > >> > > > > > >> > > Hi Maven masters, > > > > >> > > > > > > >> > > For maven-compiler-plugin, how to check what are the source > > > > >> > > files/directories it will scan for to compile? And add other > > > source > > > > >> file > > > > >> > > directories? Thanks. > > > > >> > > > > > > >> > > thanks in advance, > > > > >> > > Lin > > > > >> > > > > > > >> > > > > > >> > > > > > > > > > > > > > > > > > > > >