Re: for maven-compiler-plugin

2015-04-17 Thread Lin Ma
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 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 midd

Re: for maven-compiler-plugin

2015-04-16 Thread Lin Ma
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:di

Re: for maven-compiler-plugin

2015-04-15 Thread Bernd Eckenfels
Am Wed, 15 Apr 2015 14:49:21 -0700 schrieb Lin Ma : > 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

Re: for maven-compiler-plugin

2015-04-15 Thread Lin Ma
> > > > > > > > looks like your pom reconfigures the default source ( ie > > > > > > > > build-->sourceDirectory) this may help > > > > > > > > https://maven.apache.org/pom.html > > > > > > > &g

Re: for maven-compiler-plugin

2015-04-15 Thread Bernd Eckenfels
? this may help > > > > > > > https://maven.apache.org/pom.html > > > > > > > > > > > > > > -D > > > > > > > > > > > > > > On Sat, Apr 11, 2015 at 10:06 PM, Lin Ma > > > > > > > > > wro

Re: for maven-compiler-plugin

2015-04-15 Thread Karl Heinz Marbaise
Dan On Sat, Apr 11, 2015 at 8:10 PM, Lin Ma 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

2015-04-15 Thread Lin Ma
gt; > > > > > > > >> 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 > > > 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 > > 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

2015-04-15 Thread Wayne Fay
> > > >> 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 > > > > >> s

Re: for maven-compiler-plugin

2015-04-15 Thread Lin Ma
> >> regards, > > > >> Lin > > > >> > > > >> On Sat, Apr 11, 2015 at 9:59 PM, Dan Tran > 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 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

2015-04-15 Thread Wayne Fay
dle of the path. > > >> > > >> regards, > > >> Lin > > >> > > >> On Sat, Apr 11, 2015 at 9:59 PM, Dan Tran wrote: > > >> > > >> > default main source is at src/main/java > > >> > > > >> &

Re: for maven-compiler-plugin

2015-04-12 Thread Lin Ma
"main" in the middle of the path. > > > >> > > > >> regards, > > > >> Lin > > > >> > > > >> On Sat, Apr 11, 2015 at 9:59 PM, Dan Tran > wrote: > > > >> > > > >&

Re: for maven-compiler-plugin

2015-04-11 Thread Dan Tran
ds, > > >> Lin > > >> > > >> On Sat, Apr 11, 2015 at 9:59 PM, Dan Tran wrote: > > >> > > >> > default main source is at src/main/java > > >> > > > >> > to add more sources, use build-hel

Re: for maven-compiler-plugin

2015-04-11 Thread Lin Ma
2015 at 9:59 PM, Dan Tran wrote: > >> > >> > default main source is at src/main/java > >> > > >> > to add more sources, use build-helper-maven-plugin > >> > > >> > -Dan > >> > > >> > On Sat, Apr 1

Re: for maven-compiler-plugin

2015-04-11 Thread Dan Tran
t;> >> regards, >> Lin >> >> On Sat, Apr 11, 2015 at 9:59 PM, Dan Tran wrote: >> >> > default main source is at src/main/java >> > >> > to add more sources, use build-helper-maven-plugin >> > >> > -Dan >> >

Re: for maven-compiler-plugin

2015-04-11 Thread Dan Tran
e sources, use build-helper-maven-plugin > > > > -Dan > > > > On Sat, Apr 11, 2015 at 8:10 PM, Lin Ma 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

2015-04-11 Thread Lin Ma
s 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 wrote: > > > Hi Maven masters, > > > > For maven-compiler-plugin, how to check what are the source > > files/director

Re: for maven-compiler-plugin

2015-04-11 Thread Dan Tran
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 wrote: > Hi Maven masters, > > For maven-compiler-plugin, how to check what are the source > files/directories it will scan for to compile? A

for maven-compiler-plugin

2015-04-11 Thread Lin Ma
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

Separate executions for maven-compiler-plugin

2010-12-10 Thread lilyevsky
an example of how this is done. -- View this message in context: http://maven.40175.n5.nabble.com/Separate-executions-for-maven-compiler-plugin-tp3300553p3300553.html Sent from the Maven - Users mailing list archive at Nabble.com.

RE: "always compile option" for maven-compiler-plugin?

2009-06-11 Thread Martin Gainty
: Thu, 11 Jun 2009 18:37:42 -0500 > Subject: Re: "always compile option" for maven-compiler-plugin? > From: l...@leemeador.com > To: users@maven.apache.org > > Or you could put an antrun task to run in generate-sources that would delete > all the class files in target/clas

Re: "always compile option" for maven-compiler-plugin?

2009-06-11 Thread Lee Meador
Or you could put an antrun task to run in generate-sources that would delete all the class files in target/classes and target/testclasses every time before compiling. (Oh and check my spelling there.) -- Lee On Wed, Jun 10, 2009 at 12:29 PM, Wayne Fay wrote: > > anyway to request maven-compiler

Re: "always compile option" for maven-compiler-plugin?

2009-06-10 Thread Wayne Fay
> anyway to request maven-compiler-plugin "always compile" > (instead of check source newer than class) If not, it would be pretty simple to add. Having said that, the recommended approach would be to always use "mvn clean ..." which will delete the files in /target, thus guaranteeing the "always

"always compile option" for maven-compiler-plugin?

2009-06-10 Thread Martin Gainty
Hi Folks currently using the maven-compiler-plugin d/l from http://maven.apache.org/plugins/maven-compiler-plugin anyway to request maven-compiler-plugin "always compile" (instead of check source newer than class) ? thanks! Martin Gainty __ Verzicht

Re: [Fwd: true is ignored for maven-compiler-plugin]

2008-09-25 Thread Wayne Fay
I saw this thread and figured this must be a simple bug. I dug into the sources (of Maven and Plexus) and found what I believe is the root of the problem. In short, while the Maven plugin supports the verbose configuration, the underlying plexus-compiler does not, so it never does anything no matte

Re: [Fwd: true is ignored for maven-compiler-plugin]

2008-09-24 Thread Sahoo
I filed http://jira.codehaus.org/browse/MNG-3764. As a work around, I am thinking of setting fork=true and passing -verbose as option to compiler. Sahoo Gabriel Garcia wrote: Count me in for someone that wanted to compile with more verbosity (e.g., to see warnings properly). The only thing th

Re: [Fwd: true is ignored for maven-compiler-plugin]

2008-09-24 Thread Gabriel Garcia
Count me in for someone that wanted to compile with more verbosity (e.g., to see warnings properly). The only thing that worked for me is seeing the deprecated classes (which is another parameter). Other than that, verbose=true didn't work. Gabriel 2008/9/24 Sahoo <[EMAIL PROTECTED]>: > Has anyo

[Fwd: true is ignored for maven-compiler-plugin]

2008-09-23 Thread Sahoo
Has anyone experienced this problem? --- Begin Message --- I don't see the effect of true. When I run with -X, I do see that verbose = true, but I don't see it being passed to javac. I tried with fork = true and the command line that was used to invoke javac did not have verbose option set. I

true is ignored for maven-compiler-plugin

2008-09-23 Thread Sahoo
I don't see the effect of true. When I run with -X, I do see that verbose = true, but I don't see it being passed to javac. I tried with fork = true and the command line that was used to invoke javac did not have verbose option set. I am using default compiler. Thanks, Sahoo ---

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-18 Thread Anders Hammar
t;>> >>>> Have all your projects with a common parent. >>>> >>>> In the common parent add a pluginManagement section that defines the >>>> defaults for the compiler plugin. >>>> >>>> On Fri, Aug 15, 2008 at 1:51 PM, monika7

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-17 Thread Benjamin Smith-Mannschott
parent. In the common parent add a pluginManagement section that defines the defaults for the compiler plugin. On Fri, Aug 15, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> wrote: I know that current default for maven-compiler-plugin is java 1.3 and that I can override it in pom.xml

RE: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Brian E. Fox
de it. -Original Message- From: Trent Rosenbaum [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 6:59 AM To: Maven Users List Subject: Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml) I use the pom approach suggested, but the sonatype book shows an examp

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread monika7
parent. >>> >>> In the common parent add a pluginManagement section that defines the >>> defaults for the compiler plugin. >>> >>> On Fri, Aug 15, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> >>> wrote: >>> >>>> >>>&g

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Stephen Connolly
projects with a common parent. In the common parent add a pluginManagement section that defines the defaults for the compiler plugin. On Fri, Aug 15, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> wrote: I know that current default for maven-compiler-plugin is java 1.3 and tha

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread monika7
rmanently >> without having to include the plugin in pom.xml. >> I don't see anything in the settings.xml that would allow me to do it. Is >> that possible and if yes, can someone suggest how to do it? >> -- >> View this message in context: >> http://www.nabble

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Trent Rosenbaum
; > > On 15/08/2008, Stephen Connolly <[EMAIL PROTECTED]> wrote: > > > > > > Have all your projects with a common parent. > > > > > > In the common parent add a pluginManagement section that defines the > > > defaults for the compiler plugin. &

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Stephen Connolly
> > > > Have all your projects with a common parent. > > > > In the common parent add a pluginManagement section that defines the > > defaults for the compiler plugin. > > > > On Fri, Aug 15, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> wrote: > >

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Trent Rosenbaum
t;> defaults for the compiler plugin. >> >> On Fri, Aug 15, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> wrote: >> >> > >> > I know that current default for maven-compiler-plugin is java 1.3 and >> that >> > I >> > can override it

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Trent Rosenbaum
5, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> wrote: > > > > > I know that current default for maven-compiler-plugin is java 1.3 and > that > > I > > can override it in pom.xml file by adding source and target attributes to > > the plugin configuration

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread Stephen Connolly
Have all your projects with a common parent. In the common parent add a pluginManagement section that defines the defaults for the compiler plugin. On Fri, Aug 15, 2008 at 1:51 PM, monika7 <[EMAIL PROTECTED]> wrote: > > I know that current default for maven-compiler-plugin is java

Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-15 Thread monika7
I know that current default for maven-compiler-plugin is java 1.3 and that I can override it in pom.xml file by adding source and target attributes to the plugin configuration. However I would prefer to override the default compiler version permanently without having to include the plugin in

Re: "compilerArguments" for maven-compiler-plugin

2007-10-01 Thread Wayne Fay
Maven does not really "like" passing things via arguments -- this is the exception rather than the norm. You could probably use -Dmy.arg="blah blah" and then in the m-compiler-p set ${my.arg}. But this is not the "right" way to use Maven. If you have a few different sets of arguments, you should

"compilerArguments" for maven-compiler-plugin

2007-10-01 Thread Yan Huang
Hello, Regarding maven-compiler-plugin, is there a way to pass compiler arguments on the command line rather than through pom.xml? I don't find "expression" defined in its manual page though. Thanks Yan

Re: [M2] Why is "debug" deprecated for maven-compiler-plugin?

2005-11-06 Thread Brett Porter
Appears to be a brain explosion on my part. Fixed. - Brett On 11/5/05, KC Baltz <[EMAIL PROTECTED]> wrote: > The documentation for the compiler plugin says that the "debug" parameter is > deprecated. Why is this and what's the recommended replacement? > > http://maven.apache.org/plugins/maven-c

[M2] Why is "debug" deprecated for maven-compiler-plugin?

2005-11-04 Thread KC Baltz
The documentation for the compiler plugin says that the "debug" parameter is deprecated. Why is this and what's the recommended replacement? http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html K.C.

Re: [m2] compilerId for maven-compiler-plugin

2005-11-01 Thread Brett Porter
Please file this in JIRA - it looks like it should work to me. - Brett On 11/2/05, Lars Trieloff <[EMAIL PROTECTED]> wrote: > Hi, > > according to the maven-compiler-plugin documentation I can set the > compiler to be used by adding the compilerId element to my pom.xml. > > However my small examp

[m2] compilerId for maven-compiler-plugin

2005-11-01 Thread Lars Trieloff
Hi, according to the maven-compiler-plugin documentation I can set the compiler to be used by adding the compilerId element to my pom.xml. However my small example POM which includes following build configuration is unable to work with maven. maven-compiler-plug