Re: OT - Maven woes

2006-09-19 Thread Steve Loughran
Kevin Jackson wrote: Hi Brett, Just to let you know that I have managed to get the tstamp value into the manifest as required. I've left a note on the jira as the guide[1], you pointed me to is actually wrong[2] Kevin, you are free to provide patches :) I'm sure they'd welcome you as a comm

Re: OT - Maven woes

2006-09-15 Thread Kevin Jackson
Hi Brett, Just to let you know that I have managed to get the tstamp value into the manifest as required. I've left a note on the jira as the guide[1], you pointed me to is actually wrong[2] Finally although I may not like maven much, I have nothing but respect for the developers. Thanks for y

Re: OT - Maven woes

2006-09-15 Thread Brett Porter
Instead of the manifest entries (which you are filtering from your own manifest file), you can use the configuration to the JAR plugin (or do both). http://maven.apache.org/guides/mini/guide-manifest.html On 15/09/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: Hi Brett, Thanks for taking the ti

Re: OT - Maven woes

2006-09-15 Thread Kevin Jackson
Hi Brett, Thanks for taking the time to trouble-shoot this - I *really* appreciate all the help so far. I've fixed the missing resource problem, but the Manifest file is still not being updated in the jar file. I have a Manifest.mf file in my src/main/resources dir, it is being updated with the

Re: OT - Maven woes

2006-09-15 Thread Brett Porter
I was able to add test resources without changing the POM and they were correctly copied (unfiltered). Do you have a element in the POM that might be interfering with it? On 15/09/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: > > Sorry, but I'm not sure I can help much more as that's inside the

Re: OT - Maven woes

2006-09-15 Thread Kevin Jackson
> Sorry, but I'm not sure I can help much more as that's inside the > custom test cases. > Hi, sorry to bother you again, The problem is related to a single image in the src/test/resources directory. When I use filters, it seems that this file is no longer copied to the correct location for wh

Re: OT - Maven woes

2006-09-14 Thread Kevin Jackson
Did you run a clean after the change to make sure the bogus filtered resources got copied again properly? not sure what you mean by bogus, but I did this: mvn clean package Sorry, but I'm not sure I can help much more as that's inside the custom test cases. The thing is that the problem d

Re: OT - Maven woes

2006-09-14 Thread Brett Porter
Did you run a clean after the change to make sure the bogus filtered resources got copied again properly? Sorry, but I'm not sure I can help much more as that's inside the custom test cases. - Brett On 15/09/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: > The example basically does "copy everyt

Re: OT - Maven woes

2006-09-14 Thread Kevin Jackson
The example basically does "copy everything from src/main/resources with filters". I assume you have images in there too. No, I just checked, it's a common library that is re-used for different web-apps, but it doensn't contain any images, but then with the filtering switched on, all the images

Re: OT - Maven woes

2006-09-14 Thread Brett Porter
The example basically does "copy everything from src/main/resources with filters". I assume you have images in there too. You should setup a separate resource directory for filtering - maybe replace the one in the example with src/main/filtered-resources. Or, you can add an includes or excludes t

Re: OT - Maven woes

2006-09-14 Thread Kevin Jackson
Here's a working example: http://jira.codehaus.org/browse/MNG-2561 Hi, thanks for the cookbook example. My problem now is that if I use filtering, I get exceptions thrown during testing, these exceptions aren't thrown if I remove the filter/resources sections from my pom. Is this a known issue

Re: OT - Maven woes

2006-09-14 Thread Brett Porter
On 15/09/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: And with the antrun plugin, ok I can get to generate the value I'm after, and I can use copy/replace to filter it into the file, but what phase/goal do I need to set so that ant will execute before the jar file is built? I thought process-cl

Re: OT - Maven woes

2006-09-14 Thread Kevin Jackson
On 15/09/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: > How the hell did anyone convince anyone else to use this crap?! Well, since you asked so nicely... :) Thanks for taking the abuse in the (semi) light-hearted manner it was dished out in! Truly I didn't want to cause too much upset, but I

Re: OT - Maven woes

2006-09-14 Thread Brett Porter
On 15/09/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: How the hell did anyone convince anyone else to use this crap?! Well, since you asked so nicely... :) I'm truly at my wit's end regarding such a simple task, here is what I currently have in my pom.xml: If you use ant tasks, you can only

OT - Maven woes

2006-09-14 Thread Kevin Jackson
How the hell did anyone convince anyone else to use this crap?! With that off my chest - I *have to* use mvn2 on my current project, anyone have experience getting maven to actually do anything useful? I don't know maven well and I'm happy to concede that I may be a witless luser, and if someone