Re: access password in settings.xml

2012-08-24 Thread Olivier Lamy
Maybe with : /** * The Maven Wagon manager to use when obtaining server authentication details. */ @Component private WagonManager wagonManager; AuthenticationInfo info = wagonManager.getAuthenticationInfo( server ); server is the serverId String. or using /** *

Re: access password in settings.xml

2012-08-24 Thread Mirko Friedenhagen
Hello Michael, reading your Agile ALM book right now :-): Here is an example how to get all servers with password decrypted: public class MyMojo extends AbstractMojo { /** * Maven settings. */ @Component private Settings settings; /** * The decrypter for

Maven/Nexus metadata interaction question

2012-08-24 Thread Laird Nelson
I fear this is a stupid question, but I can't find any information anywhere about Maven metadata. :-( I have the world's simplest Jenkins/Maven/Nexus setup. I have a job on Jenkins that (today only, never before) began failing because it claims it cannot resolve various SNAPSHOT artifacts from

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread David Hoffer
I haven't seen that exact problem but I feel your pain. I too spent the better part of today trying to figure out why my build was failing. We have been having nothing but trouble with Nexus and Maven3 with the time-stamped snapshots and all the various metadata files that Nexus spits out (which

Any way to combine plugin settings between pom and parent pom?

2012-08-24 Thread KARR, DAVID
I'm investigating what abilities I have for integrating plugin configurations between a project pom and its parent. For instance, in the Surefire configuration in my project pom there are some settings that I would want for all Java projects, but there are some that are specific to a project

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread Laird Nelson
On Fri, Aug 24, 2012 at 1:31 PM, Laird Nelson ljnel...@gmail.com wrote: I fear this is a stupid question, but I can't find any information anywhere about Maven metadata. :-( Always like to correct myself when I say something that isn't true. It turns out there is some documentation on the

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread Laird Nelson
On Fri, Aug 24, 2012 at 1:52 PM, David Hoffer dhoff...@gmail.com wrote: We have been having nothing but trouble with Nexus and Maven3 with the time-stamped snapshots and all the various metadata files that Nexus spits out (which confuse Maven and IDEs). Oh, so this whole thing is a Nexus

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread David Hoffer
I can't say the whole problem is with Nexus. I can say that the requirement in Maven3 to always use timestamped snapshots has not be addressed in a complete way with tools like Nexus and my beloved IDE IntelliJ. We have hundreds if not thousands of builds happening every day and they should be

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread Brian Fox
On Fri, Aug 24, 2012 at 5:27 PM, Laird Nelson ljnel...@gmail.com wrote: On Fri, Aug 24, 2012 at 1:52 PM, David Hoffer dhoff...@gmail.com wrote: We have been having nothing but trouble with Nexus and Maven3 with the time-stamped snapshots and all the various metadata files that Nexus spits out

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread Brian Fox
On Fri, Aug 24, 2012 at 5:43 PM, David Hoffer dhoff...@gmail.com wrote: I can't say the whole problem is with Nexus. I can say that the requirement in Maven3 to always use timestamped snapshots has not be addressed in a complete way with tools like Nexus and my beloved IDE IntelliJ. We have

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread David Hoffer
There are several metadata files...the one I was referring to is maven-metadata-nexus.xml. Yeah I don't know for sure who generated this Maven/Nexus...I just assumed Nexus because of the file name. Yes in our builds we will sometimes run lesser important builds once a day, or at night, javadocs

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread David Hoffer
Now that I think about this...I think the metadata file that was confusing IntelliJ might have been a different one, i.e. w/o Nexus in the name. I can't be sure since I have since deleted my local repo to try to solve this problem. I know there was a metadata file in that folder that just had

Creating one big jar in Maven?

2012-08-24 Thread jpyork
Hello I am a bit new to Maven and have taken over a build from a departed employee that uses Maven. The issue is that he over complicated it with vb scripts and other items, but I have finally got the project to build with just executing a parent POM file. The issue I have now is that I have 6

Re: access password in settings.xml

2012-08-24 Thread Manfred Moser
On Fri, August 24, 2012 2:36 am, Michael Hüttermann wrote: Hello, how can I (e.g. programmatically, in an own Maven plugin) access the serverpassword element of settings.xml, to re-use the value. Is there any chance to do so? Btw. you can also access collections from settings or pom

Re: Creating one big jar in Maven?

2012-08-24 Thread Barrie Treloar
On Sat, Aug 25, 2012 at 5:44 AM, jpyork john-paul.y...@dhltd.com wrote: Hello I am a bit new to Maven and have taken over a build from a departed employee that uses Maven. The issue is that he over complicated it with vb scripts and other items, but I have finally got the project to build with