Re: dynamically select resources and apply filtering

2013-02-26 Thread Ron Wheeler
On 26/02/2013 2:34 AM, Jean-Noël Colin wrote: Hi Ron, Do you mean invoking the ant plugin from the pom.xml file? I was wondering whether this was a good practice, or something to be kept only for situations where you really can't avoid it It would probably not be described as a best practice b

Re: dynamically select resources and apply filtering

2013-02-26 Thread Ron Wheeler
On 26/02/2013 2:54 AM, Baptiste MATHUS wrote: I *think* Ron means: using maven to produce your standard artifacts (jar/war/ear ?), and then use pure ant somewhere in the process just before deploying for a specific customer to do the replacements you're talking about. (By the way, invoking ant f

use properties within settings.xml

2013-02-26 Thread Gunnar
Hi, I would like to setup profiles with username and password as properties. Then I would like to use the properties in the servers/server tags in the same file. Something like the following: profile> old-nexus true

Re: use properties within settings.xml

2013-02-26 Thread Thorsten Heit
Hi, > I would like to setup profiles with username and password as properties. > Then I would like to use the properties in the servers/server tags in the > same file. > Something like the following: > profile> > old-nexus > > true > > >

JAX-RS handling an exception in the middle of an output writer

2013-02-26 Thread Benson Margulies
So, I've absently-constructed the following problem. I've got a JAX-RS service that does, essentially, all of its work in a StreamingOutput object. It also has an error mapper that produces a Json body to go with the 400 status code in the error response. You can see where this goes: the code suc

Re: JAX-RS handling an exception in the middle of an output writer

2013-02-26 Thread Stephen Connolly
This is not a Maven problem... On 26 February 2013 14:08, Benson Margulies wrote: > So, I've absently-constructed the following problem. > > I've got a JAX-RS service that does, essentially, all of its work in a > StreamingOutput object. It also has an error mapper that produces a > Json body t

Re: dynamically select resources and apply filtering

2013-02-26 Thread Jean-Noël Colin
so your suggestion would be to have maven do the compile, and a kind of 'war:exploded', and then run ant to add the customized files and create the war file, is that correct? or should I write a plugin that does that for me? You write: "Separating run-time deployment from Maven is a best prac

Re: dynamically select resources and apply filtering

2013-02-26 Thread Wayne Fay
I don't want to speak for Ron, but I'll fill in my interpretation of his comments... > so your suggestion would be to have maven do the compile, and a kind > of 'war:exploded', and then run ant to add the customized files and create > the war file, is that correct? Not at all. I believe he is say

Re: Why is properties-maven-plugin still in alpha?

2013-02-26 Thread Wayne Fay
> Plugins are development time tools and not deliverables to the customer. So > customer should not care how(by which plugin versions) artifacts are build. > Therefore never reveal versions of the build tools to the customer :-) I expect that OP is working as a consultant to someone, to help them

Re: JAX-RS handling an exception in the middle of an output writer

2013-02-26 Thread Benson Margulies
That's true. I obviously wasn't awake. On Tue, Feb 26, 2013 at 9:15 AM, Stephen Connolly wrote: > This is not a Maven problem... > > > On 26 February 2013 14:08, Benson Margulies wrote: > >> So, I've absently-constructed the following problem. >> >> I've got a JAX-RS service that does, essential

Re: dynamically select resources and apply filtering

2013-02-26 Thread Jean-Noël Colin
again, many thanks for your valuable comments; but my issue is that if Maven packages the war file, it means that the config files have already been customized (think of the spring config files in WEB-INF for instance); so how can I mix both approaches? Cheers Jean-Noël On 26 Feb 2013, at 16:

Re: dynamically select resources and apply filtering

2013-02-26 Thread Wayne Fay
> again, many thanks for your valuable comments; but my issue is > that if Maven packages the war file, it means that the config files > have already been customized (think of the spring config files in > WEB-INF for instance); so how can I mix both approaches? Here's two solutions I can imagine:

Re: dynamically select resources and apply filtering

2013-02-26 Thread Jean-Noël Colin
this sounds easy :-) any CM tool to recommend? many thanks On 26 Feb 2013, at 16:22, Wayne Fay wrote: >> again, many thanks for your valuable comments; but my issue is >> that if Maven packages the war file, it means that the config files >> have already been customized (think of the spring co

Re: dynamically select resources and apply filtering

2013-02-26 Thread Stephen Connolly
I have an answer on Stack Overflow that might help your thought processes: http://stackoverflow.com/questions/14650468/whats-a-practicable-way-for-automated-configuration-versioning-and-deployment/14661186#14661186 On 26 February 2013 15:06, Jean-Noël Colin wrote: > so your suggestion would be

Re: dynamically select resources and apply filtering

2013-02-26 Thread Lyons, Roy
I say that you could just run a post-deployment command that performs any filtering. You could use ant, perl, java, whatever you wanted to... and perhaps have it pull down content from a centralized git repository or something to make it easy to maintain your properties/configs. The obvious mess

Re: dynamically select resources and apply filtering

2013-02-26 Thread Ron Wheeler
Since you want to support a "lot" of customers with different configurations, you may want something that is based on a simple CMS that provides a database and an editing tool and an API for extracting content. You script could then navigate the CMS picking up the right pieces to make up the wa

Re: dynamically select resources and apply filtering

2013-02-26 Thread Jean-Noël Colin
many thanks for this very useful reference /jnc On 26 Feb 2013, at 16:43, Stephen Connolly wrote: > I have an answer on Stack Overflow that might help your thought processes: > http://stackoverflow.com/questions/14650468/whats-a-practicable-way-for-automated-configuration-versioning-and-deploy

Re: Why is properties-maven-plugin still in alpha?

2013-02-26 Thread Matthew Adams
Correct. It's not really a big deal, I'll just have some 'splainin' to do if they ask. On Tue, Feb 26, 2013 at 9:16 AM, Wayne Fay wrote: > > Plugins are development time tools and not deliverables to the customer. > So > > customer should not care how(by which plugin versions) artifacts are >

Re: How to retrieve list of dependencies user added in the plugin's dependencies configuration

2013-02-26 Thread Robert Scholte
This explain it: http://jira.codehaus.org/browse/MPLUGIN-225 Robert Op Mon, 25 Feb 2013 00:45:34 +0100 schreef Dan Tran : I think MojoDecriptor can get me PluginDescriptor. but dont think ${mojo} would give me MojoDescriptor. Null is what I get. -D On Sun, Feb 24, 2013 at 2:25 PM, Dan Tran

Re: How to retrieve list of dependencies user added in the plugin's dependencies configuration

2013-02-26 Thread Dan Tran
Thanks, with this new info, I got it working now -D On Tue, Feb 26, 2013 at 10:07 AM, Robert Scholte wrote: > This explain it: http://jira.codehaus.org/browse/MPLUGIN-225 > > Robert > > Op Mon, 25 Feb 2013 00:45:34 +0100 schreef Dan Tran : > > >> I think MojoDecriptor can get me PluginDescripto

maven graph traversal in plugin

2013-02-26 Thread Alejandro . Endo
I'm writing a plugin that needs to combine a bunch of artifacts into a zip and create an XML file of it. I am currently working on creating the XML, for the rest i use the assembly plugin. To generate the XML i need a way (an api) to traverse the graph of maven dependencies Here is a normal hie

Re: Suppress multiple execution of mojos while creating site?

2013-02-26 Thread Mirko Friedenhagen
Hello Martin, of course I could redefine some plugins to be run in a different phase, enforcer could run during verify etc. However some (as buildnumber-version) are mostly useful for filtering resources, so delaying this to later phases makes no sense IMO :-). Regards Mirko On Mon, Feb 25, 2013

question about release:branch with CVS

2013-02-26 Thread Andras Nagy
Dear All, I have a question regarding the release plugin's branch goal. What I am trying to achieve (using CVS for scm) is this: -I have a release on the HEAD, let's call this 1.1, with release tag "REL_1_1" -I have new changes committed to HEAD (in 1.1-SNAPSHOT) -I have to fix a bug in 1.1 immedi