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: Adding comments to dependencies in POM

2015-04-17 Thread James Green
[ Dragging up a really old topic. ] https://issues.apache.org/jira/browse/MNG-5803 Incidentally I would vote against a different namespace as comments are likely to be of use to readers of Maven POMs even if they are used for visual purposes. On 27 August 2014 at 12:03, Robert Scholte

Re: Maven + Jenkins not packaging war with jars

2015-04-17 Thread Curtis Rueden
Hi Murthy, You might get a better response on a Jenkins mailing list: https://jenkins-ci.org/content/mailing-lists That said, I do have one question/suggestion: are you using the Maven-style job? Or Freestyle job? If you are using the Maven-style job, try switching to Freestyle, and use the

Re: Adding comments to dependencies in POM

2015-04-17 Thread Gary Gregory
+1 Gary Original message From: James Green james.mk.gr...@gmail.com Date: 04/17/2015 04:58 (GMT-08:00) To: Maven Users List users@maven.apache.org Subject: Re: Adding comments to dependencies in POM [ Dragging up a really old topic. ]

RE: Adding comments to dependencies in POM

2015-04-17 Thread Sander Verhagen
Hi, I'm wondering how useful it would be to have a (one) comment on a dependency. Would you rather not have commenting be an attribute of (yes, indeed) a dependency, but also more-specifically of an exclusion, a scope designation, etc.? What would be some of the actual comments that you are

Re: Adding comments to dependencies in POM

2015-04-17 Thread James Green
Actually I think comment ought to be possible within pretty much any instruction within the POM: A dependency management item A dependency A build profile A build plugin However the first two are probably the most useful and were my original desire. Now I can imagine this becoming the start of a

Maven + Jenkins not packaging war with jars

2015-04-17 Thread Gandikota, Murthy
Hi All Using Jenkins 1.596, the jar files are not included in the WAR by maven which is given the following goals: clean dependency:tree install -P component clover2:setup test clover2:aggregate clover2:clover When I run maven on the command line the WAR is built correctly by including all the

Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
I have recently downloaded and unzipped Maven 3.3.1 in Windows 7. I updated my path environment variable to include C:\Apache\Maven\apache-maven-3.3.1\bin. I also added a JAVA_HOME environment variable that points to my Java 8 JDK. And created both an M2_HOME and M2 environment variable.

RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
Here are the commands the batch file is executing: Do you see anything in here that indicates the cause of the problem? H:\mvn --version H:\if == (set HOME=H:\ ) H:\if not on == goto skipRcPre H:\set ERROR_CODE=0 H:\if not C:\Program Files\Java\jdk1.8.0_31 == goto OkJHome H:\if exist

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello, you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see the commands the batch are executing and make sure you have no old config laying around. What is your JAVA_HOME actually set to? Does it end in a \? I suspect it is related to the new .mvn\ directory handling. It should

RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
As does it fail when I try running it from C:\. But as I stated in my initial post, it does not fail if I run it in C:\Widows or C:\Windows\System32!!! I'm not sure why it should be failing from any directory from which it's started. Does Maven assume that the directory when you are launching

RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
Ah, I see. The problem is starting it in a root directory. Thanks. Michael Tarullo Contractor (Engility Corp) Enterprise Architect NSRR System Administrator FAA WJH Technical Center (609)485-5294 -Original Message- From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] Sent: Friday,

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello, hm, the problem is the \ in the .multiModuleProjectDirectory (caused by the fact that you run it in a toplevel directory I guess). I guess this could be fixed, but then again, does it work when you use a subdir of the h:\ drive? IS this really a project directory? I just tried it and can

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Am Fri, 17 Apr 2015 20:38:03 + schrieb michael.ctr.taru...@faa.gov: But as I stated in my initial post, it does not fail if I run it in C:\Widows or C:\Windows\System32!!! As I said it works in all directories if they are not the root of a drive.

Re: Problem Running Maven

2015-04-17 Thread Dan Tran
BTW, no need to configure M2_HOME env any more. the startup script does that for you -D On Fri, Apr 17, 2015 at 1:49 PM, michael.ctr.taru...@faa.gov wrote: Ah, I see. The problem is starting it in a root directory. Thanks. Michael Tarullo Contractor (Engility Corp) Enterprise Architect