You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lin Ma <li...@gmail.com> on 2015/04/12 05:10:56 UTC

for maven-compiler-plugin

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

Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
Hi Dan,

Are there any message in your last reply? Looks like your message is
truncated. Thanks.

regards,
Lin

On Sat, Apr 11, 2015 at 11:34 PM, Dan Tran <da...@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 11:10 PM, Lin Ma <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Dan Tran <da...@gmail.com>.
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 11:10 PM, Lin Ma <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
BTW, I am using JDK 1.8 on Mac. Not sure if anything special did by Apple.
:)

regards,
Lin

On Thu, Apr 16, 2015 at 3:43 PM, Lin Ma <li...@gmail.com> wrote:

> Thanks Gruss for the details,
>
> I tried   mvn -U help:effective-pom -Doutput=epom.xml, and find
> sourceDirectory is without "main" directory in the middle, which conform to
> what compiles actually when I execute mvn package.
>
> Then I tried mvn -U org.apache.maven.plugins:maven-dependency-plugin:2.10:display-ancestors,
> here are the output, looks no super POM for me? Any further thoughts are
> appreciated.
>
> I am using IntelliJ 14 Community edition, not sure if any thing did by
> IntelliJ to change sourceDirectory? Thanks.
>
> [INFO] No Ancestor POMs!
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 14.085 s
> [INFO] Finished at: 2015-04-16T15:36:57-08:00
> [INFO] Final Memory: 13M/245M
> [INFO]
> ------------------------------------------------------------------------
>
> regards,
> Lin
>
> On Wed, Apr 15, 2015 at 3:25 PM, Bernd Eckenfels <ec...@zusammenkunft.net>
> wrote:
>
>> Am Wed, 15 Apr 2015 14:49:21 -0700
>> schrieb Lin Ma <li...@gmail.com>:
>>
>> > The document is very helpful. Any thoughts how to check why
>> > src/java/com/foo/goo works is great. Is there some other files like
>> > super POM or other files to check? Thanks.
>>
>> You can print out the effective pom and check if sourceDirectory is
>> set or if the compiler plugin has a modified configuration:
>>
>>   mvn -U help:effective-pom -Doutput=epom.xml
>>
>> The completely resolved pom is in epom.xml. If you want to know what
>> parent poms (up to the root) have been visited, you can use:
>>
>>   mvn -U
>> org.apache.maven.plugins:maven-dependency-plugin:2.10:display-ancestors
>>
>> Gruss
>> Bernd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
Thanks Gruss for the details,

I tried   mvn -U help:effective-pom -Doutput=epom.xml, and find
sourceDirectory is without "main" directory in the middle, which conform to
what compiles actually when I execute mvn package.

Then I tried mvn -U
org.apache.maven.plugins:maven-dependency-plugin:2.10:display-ancestors,
here are the output, looks no super POM for me? Any further thoughts are
appreciated.

I am using IntelliJ 14 Community edition, not sure if any thing did by
IntelliJ to change sourceDirectory? Thanks.

[INFO] No Ancestor POMs!
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14.085 s
[INFO] Finished at: 2015-04-16T15:36:57-08:00
[INFO] Final Memory: 13M/245M
[INFO]
------------------------------------------------------------------------

regards,
Lin

On Wed, Apr 15, 2015 at 3:25 PM, Bernd Eckenfels <ec...@zusammenkunft.net>
wrote:

> Am Wed, 15 Apr 2015 14:49:21 -0700
> schrieb Lin Ma <li...@gmail.com>:
>
> > The document is very helpful. Any thoughts how to check why
> > src/java/com/foo/goo works is great. Is there some other files like
> > super POM or other files to check? Thanks.
>
> You can print out the effective pom and check if sourceDirectory is
> set or if the compiler plugin has a modified configuration:
>
>   mvn -U help:effective-pom -Doutput=epom.xml
>
> The completely resolved pom is in epom.xml. If you want to know what
> parent poms (up to the root) have been visited, you can use:
>
>   mvn -U
> org.apache.maven.plugins:maven-dependency-plugin:2.10:display-ancestors
>
> Gruss
> Bernd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: for maven-compiler-plugin

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Am Wed, 15 Apr 2015 14:49:21 -0700
schrieb Lin Ma <li...@gmail.com>:

> The document is very helpful. Any thoughts how to check why
> src/java/com/foo/goo works is great. Is there some other files like
> super POM or other files to check? Thanks.

You can print out the effective pom and check if sourceDirectory is
set or if the compiler plugin has a modified configuration:

  mvn -U help:effective-pom -Doutput=epom.xml

The completely resolved pom is in epom.xml. If you want to know what
parent poms (up to the root) have been visited, you can use:

  mvn -U org.apache.maven.plugins:maven-dependency-plugin:2.10:display-ancestors

Gruss
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
Thanks Karl and Bernd,

The document is very helpful. Any thoughts how to check why
src/java/com/foo/goo works is great. Is there some other files like super
POM or other files to check? Thanks.

regards,
Lin

On Wed, Apr 15, 2015 at 2:42 PM, Bernd Eckenfels <ec...@zusammenkunft.net>
wrote:

> Hello,
>
> you can see here a documentation, it is also contained in the POM
> refernece and finally it is the default if you try it (which is most
> authoritative anyway :)
>
>
> https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>
> Gruss
> Bernd
>
>  Am Wed, 15 Apr 2015 14:26:05 -0700 schrieb Lin
> Ma <li...@gmail.com>:
>
> > Thanks Wayne,
> >
> > Are there any document mentioning  src/main/java is default source?
> > Appreciate if you could point me to. Thanks.
> >
> > regards,
> > Lin
> >
> > On Wed, Apr 15, 2015 at 2:05 PM, Wayne Fay <wa...@gmail.com> wrote:
> >
> > > 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 <li...@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 <wa...@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 <li...@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 <da...@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
> > > > > > > <da...@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
> > > > > > > > <li...@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
> > > > > > > >> <da...@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
> > > > > > > >> > <li...@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
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: for maven-compiler-plugin

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Hello,

you can see here a documentation, it is also contained in the POM
refernece and finally it is the default if you try it (which is most
authoritative anyway :)

https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

Gruss
Bernd

 Am Wed, 15 Apr 2015 14:26:05 -0700 schrieb Lin
Ma <li...@gmail.com>:

> Thanks Wayne,
> 
> Are there any document mentioning  src/main/java is default source?
> Appreciate if you could point me to. Thanks.
> 
> regards,
> Lin
> 
> On Wed, Apr 15, 2015 at 2:05 PM, Wayne Fay <wa...@gmail.com> wrote:
> 
> > 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 <li...@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 <wa...@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 <li...@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 <da...@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
> > > > > > <da...@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
> > > > > > > <li...@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
> > > > > > >> <da...@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
> > > > > > >> > <li...@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
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: for maven-compiler-plugin

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,

https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

Kind regards
Karl Heinz Marbaise

On 4/15/15 11:26 PM, Lin Ma wrote:
> Thanks Wayne,
>
> Are there any document mentioning  src/main/java is default source?
> Appreciate if you could point me to. Thanks.
>
> regards,
> Lin
>
> On Wed, Apr 15, 2015 at 2:05 PM, Wayne Fay <wa...@gmail.com> wrote:
>
>> 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 <li...@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 <wa...@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 <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
Thanks Wayne,

Are there any document mentioning  src/main/java is default source?
Appreciate if you could point me to. Thanks.

regards,
Lin

On Wed, Apr 15, 2015 at 2:05 PM, Wayne Fay <wa...@gmail.com> wrote:

> 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 <li...@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 <wa...@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 <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Wayne Fay <wa...@gmail.com>.
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 <li...@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 <wa...@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 <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
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 <wa...@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 <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Wayne Fay <wa...@gmail.com>.
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 <li...@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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
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 <da...@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 <da...@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 <li...@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 <da...@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 <li...@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
> >> > >
> >> >
> >>
> >
> >
>

Re: for maven-compiler-plugin

Posted by Dan Tran <da...@gmail.com>.
try mvn -X compile, it will give you lots of hints too

-D

On Sat, Apr 11, 2015 at 10:11 PM, Dan Tran <da...@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 <li...@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 <da...@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 <li...@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
>> > >
>> >
>>
>
>

Re: for maven-compiler-plugin

Posted by Dan Tran <da...@gmail.com>.
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 <li...@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 <da...@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 <li...@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
> > >
> >
>

Re: for maven-compiler-plugin

Posted by Lin Ma <li...@gmail.com>.
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 <da...@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 <li...@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
> >
>

Re: for maven-compiler-plugin

Posted by Dan Tran <da...@gmail.com>.
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 <li...@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
>