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 lin...@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

Re: for maven-compiler-plugin

2015-04-16 Thread Lin Ma
] regards, Lin On Wed, Apr 15, 2015 at 3:25 PM, Bernd Eckenfels e...@zusammenkunft.net wrote: Am Wed, 15 Apr 2015 14:49:21 -0700 schrieb Lin Ma lin...@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

Re: for maven-compiler-plugin

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

Re: for maven-compiler-plugin

2015-04-15 Thread Lin Ma
14:26:05 -0700 schrieb Lin Ma lin...@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 wayne...@gmail.com wrote: As Dan said before

Re: for maven-compiler-plugin

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

Re: for maven-compiler-plugin

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

Re: for maven-compiler-plugin

2015-04-12 Thread Lin Ma
://maven.apache.org/pom.html -D On Sat, Apr 11, 2015 at 11:10 PM, 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

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

Re: for maven-compiler-plugin

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

Re: deployment in runtime for provided scope jars

2015-04-07 Thread Lin Ma
Thanks Jörg! regards, Lin On Tue, Apr 7, 2015 at 12:48 AM, Jörg Schaible joerg.schai...@swisspost.com wrote: Hi Lin, Lin Ma wrote: Thanks Ron, I see Maven has phase like install and deploy, but I never used them before. Are the two phases suppose to do deployment work, which copy

Re: deployment in runtime for provided scope jars

2015-04-07 Thread Lin Ma
for deployment. This leads to a lot of unhappy people. Ron On 06/04/2015 11:28 PM, Lin Ma wrote: Thanks Christopher, I am packaging a standalone console application so your suggestion below is more suitable. Is there an example to refer to how to configure maven-assembly-plugin

Re: for maven short-cut command like mvn clean and mvn package

2015-04-06 Thread Lin Ma
Thanks MK. regards, Lin On Mon, Apr 6, 2015 at 2:01 AM, MK Tan mktan...@gmail.com wrote: On Mon, Apr 6, 2015 at 3:26 PM Lin Ma lin...@gmail.com wrote: Thanks MK, The command is very helpful. I tried package command as well, here are what I tried and output, want to confirm my

deployment in runtime for provided scope jars

2015-04-06 Thread Lin Ma
Hi Maven expert, I think Maven is good for build, and not sure if cover runtime deployment well. Wondering what is the best practices for deploy provided scope jars? Currently, I either build a fat jar, or manual copy external dependencies jars into class path. And better solutions is

Re: deployment in runtime for provided scope jars

2015-04-06 Thread Lin Ma
Thanks Jörg, It makes sense. How about for compile scope? What is the best practices to deploy them into runtime along with application code? Thanks. regards, Lin On Mon, Apr 6, 2015 at 6:09 PM, Jörg Schaible joerg.schai...@gmx.de wrote: Lin Ma wrote: Hi Maven expert, I think Maven

Re: deployment in runtime for provided scope jars

2015-04-06 Thread Lin Ma
in bin/ which sets up the CLASSPATH and executes java. -- Christopher L Tubbs II http://gravatar.com/ctubbsii On Mon, Apr 6, 2015 at 9:21 PM, Lin Ma lin...@gmail.com wrote: Thanks Jörg, It makes sense. How about for compile scope? What is the best practices to deploy them into runtime

Re: for maven short-cut command like mvn clean and mvn package

2015-04-06 Thread Lin Ma
On Sun, Apr 5, 2015 at 11:22 PM, MK Tan mktan...@gmail.com wrote: When you run mvn help:describe -Dcmd=clean -Ddetail You can see that clean is a lifecycle that run 3 phases: - pre-clean - clean - post-clean On Mon, Apr 6, 2015 at 2:17 PM, Lin Ma lin...@gmail.com wrote: Thanks MK

Re: for maven short-cut command like mvn clean and mvn package

2015-04-06 Thread Lin Ma
-mojo.html On Mon, Apr 6, 2015 at 12:37 PM, Lin Ma lin...@gmail.com wrote: Hello Maven experts, Comparing to full format command like mvn plugin:goal, for command like mvn clean and mvn package, how to find which is the exact goal to execute for a plug-in? thanks in advance, Lin

for maven short-cut command like mvn clean and mvn package

2015-04-05 Thread Lin Ma
Hello Maven experts, Comparing to full format command like mvn plugin:goal, for command like mvn clean and mvn package, how to find which is the exact goal to execute for a plug-in? thanks in advance, Lin

Re: orders of plug-in

2015-04-05 Thread Lin Ma
. Cheers 2015-04-05 22:45 GMT+02:00 Lin Ma lin...@gmail.com: Thanks Karl, Does it mean compiler plug-in have two defined goals in the plug-in, compile goal and testCompile goal. Compile goal binds to compile phase of default lifecycle, and testCompile goal binds to test-compile phase

Re: orders of plug-in

2015-04-05 Thread Lin Ma
target1.5/target /configuration /plugin regards, Lin On Sun, Apr 5, 2015 at 7:04 AM, Karl Heinz Marbaise khmarba...@gmx.de wrote: Hi, On 4/5/15 1:52 AM, Lin Ma wrote: Hi Karl, I am testing below plug-in, for example, I tried put it as the first/last element of plugins

Re: orders of plug-in

2015-04-05 Thread Lin Ma
, Karl Heinz Marbaise khmarba...@gmx.de wrote: Hi Lin, On 4/5/15 9:32 PM, Lin Ma wrote: Thanks Karl for the patience for descriptions, Wondering how to see in which phase a plug-in bound to? For example, in the below plug-in, it does not have any phase element. In this case I know

orders of plug-in

2015-04-04 Thread Lin Ma
Hello everyone, I tried to manipulate orders of plug-in in pom.xml and always get the same results. Wondering if any impact for order or plug-in, and any best practices? Thanks. regards, Lin

Re: orders of plug-in

2015-04-04 Thread Lin Ma
...@gmx.de wrote: Hi, On 4/5/15 1:09 AM, Lin Ma wrote: Hello everyone, I tried to manipulate orders of plug-in in pom.xml and always get the same results. Of which plugins would you like to change the execution order? And for what purpose? Wondering if any impact for order or plug

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
2015 at 16:46, Lin Ma lin...@gmail.com wrote: Hello Maven masters, For maven-compiler-plugin(a sample below), have a quick question. I read this document (http://maven.apache.org/plugins/maven-compiler-plugin/), and confused what means source and target 1.5 here, it seems

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
exchange / negotiation) 2) My post had been to short and thus confusing. Yes you are right. I meant that if using a Java 1.6 feature you will not be able to compile this with a source level of 1.5. Regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 07:46 An: Maven Users List Betreff: about source and target in maven-compiler-plugin Hello Maven masters, For maven-compiler-plugin(a sample below), have a quick question. I read

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
not mistaken compiler will not fail in this case BUT the application will fail in runtime (in case Java 1.5 is used) due to StringBuilder class is missing in JDK On Mon, Mar 30, 2015 at 1:20 PM, Lin Ma lin...@gmail.com wrote: Thanks Sebastian, 1. I am using JDK 1.7/1.8 for both development

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
documentation. Furthermore details about setting the compiler level can be found for example in the Sun Certified Java Programmer Study Guide. With regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:38 An: Maven Users List

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
is the report: https://groups.google.com/d/msg/red5interest/EbVFdFkEGWE/1N_eqcz5K-UJ Somehow class was missing in runtime after building with Java8 rebuilding with Java7 fixes the problem On Mon, Mar 30, 2015 at 1:38 PM, Lin Ma lin...@gmail.com wrote: Hi Maxim, Why compiler will not fail

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the Animal Sniffer Maven Plugin to verify your code doesn't use unintended APIs. With regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
but using features such as assertions not supported does really cause a compiler error (the maven installation used as JDK 1.6) With regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:56 An: Maven Users List Betreff

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
if not added / overwritten by you. Newer versions of Maven have Java 1.6 as default. With regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:56 An: Maven Users List Betreff: Re: about source and target in maven-compiler

about source and target in maven-compiler-plugin

2015-03-29 Thread Lin Ma
Hello Maven masters, For maven-compiler-plugin(a sample below), have a quick question. I read this document (http://maven.apache.org/plugins/maven-compiler-plugin/), and confused what means source and target 1.5 here, it seems it is an internal version number of Maven, independent of JDK? plugin

Re: java import package and maven dependencies

2015-03-24 Thread Lin Ma
. -Original Message- From: Lin Ma [mailto:lin...@gmail.com] Sent: Montag, 23. März 2015 23:05 To: Maven Users List Subject: Re: java import package and maven dependencies Thanks Markus, Do you know on IntelliJ, how to see Maven update Classpath and settings in IntelliJ how Classpath

Re: java import package and maven dependencies

2015-03-24 Thread Lin Ma
Eckenfels e...@zusammenkunft.net wrote: Am Tue, 24 Mar 2015 16:23:23 -0700 schrieb Lin Ma lin...@gmail.com: How to find Maven updated Classpath and its priority over existing Classpath in Eclipse? I use both and Eclipse is less. :) Not sure I understand the question, but in Eclipse you can see

Re: java import package and maven dependencies

2015-03-23 Thread Lin Ma
match automatically, or provides a list of possible matches for the user to pick from. That's all. Pretty simple and straightforward, and everything but magic. Regards -Markus -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 23. März 2015 06:24

Re: java import package and maven dependencies

2015-03-23 Thread Lin Ma
is performing the 'organize import' functionality or its various variants. -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 23. März 2015 08:59 An: Maven Users List Betreff: Re: java import package and maven dependencies Thanks Markus, For at runtime

java import package and maven dependencies

2015-03-22 Thread Lin Ma
Hi Maven masters, It is magic when we add dependencies in Maven pom.xml, IDE like IntelliJ could resolve it for java import package statement at the beginning of each .java file. Want to learn a bit more how Maven or IDE will use dependencies in Maven pom.xml file to resolve import package in

how to find group/artifactId for org.apache.http.client.methods.HttpPost

2015-03-16 Thread Lin Ma
Hello everyone, A newbie question, how to find how to find group/artifactId for org.apache.http.client.methods.HttpPost. http://mvnrepository.com looks does not support for search for Class and Java package name? Thanks. regards, Lin

Re: how to find group/artifactId for org.apache.http.client.methods.HttpPost

2015-03-16 Thread Lin Ma
Thanks everyone, It is very helpful. regards, Lin On Mon, Mar 16, 2015 at 2:47 AM, Dirk Olmes d...@xanthippe.ping.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/16/2015 10:39 AM, Lin Ma wrote: Hello everyone, A newbie question, how to find how to find group/artifactId