Re: Retrieving "attached" files.

2011-04-21 Thread Stephen Connolly
in a dependencies section in a pom, type defaults to jar and classifier defaults to "" (ie none) you would need to add deps for each of the secondary artifacts. you could probably handle it with the xslt task - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense

Re: Can you make an http server, the local repository ?

2011-04-21 Thread Justin Edelson
On Apr 21, 2011, at 3:20 PM, Sony Antony wrote: > Assuming this is an internal web server with write permission ( PUT > allowed ), is it possible to point to a web server for the local > repository ? No. > 2. Is there any scenario at all wherein something gets written to the > remote reposito

Re: Advantages of using a Repository Manager

2011-04-21 Thread Sony Antony
David : Great writeup. Many thanks. "Is that one copy per project built? Or do all builds on Hudson use that private repo" there is only one private repo for hudson, which was created only once in teh beginning of hudson setup, by copying from teh "master repository" ( We have multiple independent

Re: How to stop maven to check the dependency's pom.xml

2011-04-21 Thread Ron Wheeler
On 21/04/2011 7:48 PM, Zhao Binbin wrote: There're project A and many other projects A1, A2 ... A10. A is the parent of all other A[n] projects.. I used a property in all the pom files so when I need to change the version number, I only need to change it in A's pom.xml. Actually it works well.

Re: Variables interpolated on the command-line

2011-04-21 Thread Sony Antony
I think %myvar2% will result in windows shell doing teh substitution I dont think maven will use system variables set using -D as pom variables ( maybe I m wrong ) --sony On Thu, Apr 21, 2011 at 7:24 PM, Phillip Hellewell wrote: > This is on Windows from a command prompt, not Linux. > > Phillip >

How to stop maven to check the dependency's pom.xml

2011-04-21 Thread Zhao Binbin
There're project A and many other projects A1, A2 ... A10. A is the parent of all other A[n] projects.. I used a property in all the pom files so when I need to change the version number, I only need to change it in A's pom.xml. Actually it works well. pom.xml of A A ${project.version}

Re: Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
This is on Windows from a command prompt, not Linux. Phillip On Thu, Apr 21, 2011 at 12:21 PM, Jörg Schaible wrote: > Phillip Hellewell wrote: > >> Oh, I just thought of something shorter that will work: >> >> -Dmyvar1=c:\test\${myvar2}\. >> >> Still seems kinda crazy though.  Anyone want to she

Retrieving "attached" files.

2011-04-21 Thread Dave Wolf
Hi, I've attached a couple of property files to my installed jar artifact, using the artifact:install task (we're using maven-ant-tasks v2.1.2): The files end up as expected in the local repository. So far, so good. The prob

Can you make an http server, the local repository ?

2011-04-21 Thread Sony Antony
Assuming this is an internal web server with write permission ( PUT allowed ), is it possible to point to a web server for the local repository ? 2. Is there any scenario at all wherein something gets written to the remote repository ( if you use the file:// type URL for remote repository, which I

Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
BTW: when invoking "mvn clean install cobertura:cobertura site" I do see the aggregated report in the workspace (http://huschteguzzel.de/hudson/job/test-multimodule/ws/target/site/cobertura/index.html or http://huschteguzzel.de/hudson/job/test-multimodule/ws/core/target/site/cobertura/index.html),

Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
I tried this as well (had a look in the integration test). I now put the report plugins into the reportPlugins-Element as suggested in https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration and enabled aggregation in a seperate section for the corbertura

Build a project twice with different classifier in one run

2011-04-21 Thread maxime.lem
Hello all, Everything is in the title. I would like to run a clean deploy twice for deploying 2 artifacts with different classifier (compiled with different sdk), in only one maven run. How can I do this ? Thx -- View this message in context: http://maven.40175.n5.nabble.com/Build-a-project-twi

Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Benson Margulies
>From the integration test, I see this in the top-level pom. org.codehaus.mojo cobertura-maven-plugin 2.5 true On Thu, Apr 21, 2011 at 3:58 PM, Mirko Friedenhagen wrote: > Hello, > > I am trying to use cobertura 2

Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
Hello, I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's reports to be aggregated in a multi-module build What am I doing wrong? Looking at http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java it seems to me

Re: Variables interpolated on the command-line

2011-04-21 Thread Jörg Schaible
Phillip Hellewell wrote: > Oh, I just thought of something shorter that will work: > > -Dmyvar1=c:\test\${myvar2}\. > > Still seems kinda crazy though. Anyone want to shed some light on why > it works this way? This is with Maven 3.0.1. Maybe you should have a look into the bash manual instea

Re: Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
Oh, I just thought of something shorter that will work: -Dmyvar1=c:\test\${myvar2}\. Still seems kinda crazy though. Anyone want to shed some light on why it works this way? This is with Maven 3.0.1. Phillip On Thu, Apr 21, 2011 at 11:51 AM, Phillip Hellewell wrote: > Some more interesting e

Re: Advantages of using a Repository Manager

2011-04-21 Thread Brian Smith
Hi there, We have a slightly more open setup than you do where developers can add libraries _provided_ they're licensed under pre-approved business friendly licenses. Artifactory works excellently for us in that respect as it allows us to handle permissions at the right level, I also personally f

Re: Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
Some more interesting examples: xyz${myvar2} => xyznull ${myvar2}xyz => ${myvar2}xyz xyz${myavr2}xyz => xyz${mvar2}xyz so as long as I add something after, I can get it to not interpolate like I want So this is really ridiculous, but I've come up with something that works: -Dmyvar1=c:\test\$

Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
I'm having trouble running a plugin I wrote and setting a variable to another variable that I want to interpolate later. I've had success inside pom files by escaping the $ as $$, but from the command-line that is not working. What's weird is that it is inconsistent about when it will interpolate

shade plugin doesn't create dependency reduced pom

2011-04-21 Thread Willem van Engen
Hello, When using maven-shade-plugin to create an uberjar I'm missing the dependency reduced pom, even when createDependencyReducedPom is set to true. I want to use this to create a java web start project it. Is this a bug or am I missing something? https://github.com/wvengen/jGridstart/blob/mast

Re: Advantages of using a Repository Manager

2011-04-21 Thread Ron Wheeler
Great note. Thanks for taking the time to put this together. It has some great ideas that even experienced Nexus users will find helpful. We are not nearly this sophisticated but we found that the free version of Nexus (competitors might do just as well) made our use and understanding of Maven

RE: Advantages of using a Repository Manager

2011-04-21 Thread David Bruley
Want to make sure I understand your current setup correctly. You have a local repository on a file system somewhere that contains all the artifacts approved for use in your builds. Then you create a copy of that repository and point Hudson to that private copy. Is that one copy per project bu

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
Could be a solution, i'll give it a try. - Mail original - De: "Roland Asmann" À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 13:17:38 Objet: Re: Only partial filtering of .bat with assembly The way I would do it, is create a directory called 'src/main/filter-resources' (or somet

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Marc Rohlfs
I just checked it once more. With the plugin version 2.2, filtering didn't work when there was an '@' character somewhere in the document. My problem was solved with version 2.2.1, but in my case there wasn't an '@' character in the same line. BTW: Your workaround is not bad! Another idea woul

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Asmann, Roland
The way I would do it, is create a directory called 'src/main/filter-resources' (or something similar, just NOT the default 'src/main/resources'!) and then configure the resource-plugin to run 'resources:copy-resources' to eg 'target/filtered-resources'. With filtering turned on of course. :-)

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
well, if i mark them as "ressource" they will be put in the jar file, no? - Mail original - De: "Roland Asmann" À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 12:38:44 Objet: Re: Only partial filtering of .bat with assembly How about you don't let the assembly-plugin copy your re

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Asmann, Roland
You might want to configure it to work around a bug though: maven-resources-plugin ${*} false Roland On 21.04.2011 13:38, Asmann, Roland wrote: > How about you don't let the assembly-plugin copy your resources, but > have the resources-plugin do it? > > Roland > > > On 21.04.2

NullKnownHostProvider class not found during site deployment

2011-04-21 Thread Marcin Kuthan
Hi, I could not configure site deployment with NullKnownHostProvider as known host provider. Class NullKnownHostProvider is not found :-( Actually NullKnownHostProvider class is bundled in the "wagon-ssh-common" library. The library is a transitive dependency of "wagon-ssh" which is declared as m

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Asmann, Roland
How about you don't let the assembly-plugin copy your resources, but have the resources-plugin do it? Roland On 21.04.2011 13:31, David Delbecq wrote: > Thanks for the hint, but not an option. The bat does not only call the > jar file, it actually does some logic on parameters, call several > a

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
Thanks for the hint, but not an option. The bat does not only call the jar file, it actually does some logic on parameters, call several applications, manage temporary files. We are migrating to maven an application that mixes together .bat/.sh, java jars and perl scripts.. We will later migrat

Re: java file path in exec:java

2011-04-21 Thread Asmann, Roland
It seems gmaven might be able to help you out here: http://maven.40175.n5.nabble.com/Exporting-Ant-properties-to-Maven-td510023.html#a510117 http://pastebin.com/XsAdbbcY Roland On 21.04.2011 12:14, Asmann, Roland wrote: > I see your problem now. > > Would it be a problem for you to use ant to r

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Karl Heinz Marbaise
Hi, it looks like you are trying to build a BAT file which will call your java code...But for this purposes i would take a deeper look into the maven-appassembler-plugin which produces such kind of batch-file automatically... http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ Kind

Re: java file path in exec:java

2011-04-21 Thread Asmann, Roland
I see your problem now. Would it be a problem for you to use ant to run the program instead of the exec-plugin? Then you could have Ant convert the path: Now if there was a way to have this property available in Maven, you could use the exec-plugin, but I believe you can't access this p

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
am using 2.2.1 Your report say that the fil is not filtered it it contains an @ My problem is that lines started with an @ are not filtered other ones are fine. maven-assembly-plugin 2.2.1 ${basedir}/filter.properties

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Marc Rohlfs
Which version of the plugin do You use? I filed a bug report for this problem and it was solved with the plugin version 2.2.1. See: http://jira.codehaus.org/browse/MASSEMBLY-528 - To unsubscribe, e-mail: users-unsubscr...@maven

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
The documentation of assembly plugin does not says anything about changing delimiter. Moreover, it does not use maven resource plugin. I tried to change my version of m-r-p to a recent one that fixes the @ issue, but assembly does not seem to use it. The only workaround i found is to replace all

Re: Release plugin: release project from within subdirectory

2011-04-21 Thread Stephen Connolly
fyi that is a hack and may not work in future versions when the bug is fixed - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 20 Apr 2011 15:36, "werdex" wrote: > Hi, > The