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 werde...@yahoo.com

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: 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:

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. plugin !-- NOTE: We don't need a groupId specification because the group is org.apache.maven.plugins ...which is

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: pathconvert targetos=unix property=unix-path path location=${project.build.outputDirectory} / /pathconvert Now if there was a way to

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
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 run

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

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

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

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: artifactIdmaven-resources-plugin/artifactId configuration delimiters delimiter${*}/delimiter /delimiters useDefaultDelimitersfalse/useDefaultDelimiters /configuration Roland On 21.04.2011 13:38, Asmann, Roland wrote:

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 roland.asm...@adesso.at À: 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

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 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

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 roland.asm...@adesso.at À: 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

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

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

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?

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

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:

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

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 ssh...@gmail.com wrote: Some

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 instead ?

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

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. build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.5/version configuration aggregatetrue/aggregate /configuration

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:

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

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),

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

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): artifact:install file=${distdir.main}/${projectName}.jar pom refid=pom / attach

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 joerg.schai...@gmx.de wrote: Phillip Hellewell wrote: Oh, I just thought of something shorter that will work: -Dmyvar1=c:\test\${myvar2}\. Still seems kinda crazy though.  Anyone

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 project.version 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

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 ssh...@gmail.com wrote: This is on Windows from a command prompt, not

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 propertyproject.version 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

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: 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 sony.ant...@gmail.com 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