How to play with 2 repositories ?

2013-02-27 Thread Gilles Scokart
I have a repository at work that is only accessible from our intranet. This repository is configured in my personal setting as a repository (for some company artefact) and as a mirror for all other repository. When I'm home, I use an other settings file without this repository and the mirror

Re: dynamically select resources and apply filtering

2013-02-27 Thread Jean-Noël Colin
so basically, what you recommend is to use Maven to build a 'standard' war, and then write my own scripts to customize the war to each distinct environment, is that right? Jean-Noël On 26 Feb 2013, at 17:50, Ron Wheeler rwhee...@artifact-software.com wrote: Since you want to support a lot

Re: How to play with 2 repositories ?

2013-02-27 Thread Anders Hammar
With Maven 3 you currently can't. The rational is that Maven tries to ensure that you're using the right artifact. So if the cached artifact is from a different repo than the one you're using now, it will re-download it. /Anders On Wed, Feb 27, 2013 at 9:00 AM, Gilles Scokart gscok...@gmail.com

Re: How to play with 2 repositories ?

2013-02-27 Thread Olivier Lamy
Read http://jira.codehaus.org/browse/MNG-5185 . So you will have a workaround with 3.1.0 . 2013/2/27 Gilles Scokart gscok...@gmail.com: I have a repository at work that is only accessible from our intranet. This repository is configured in my personal setting as a repository (for some company

Re: dynamically select resources and apply filtering

2013-02-27 Thread Stephen Connolly
Yes, though better is to have the customizations in a separate file and then the war picks up that file and applied the customizations to itself, thus removing the need to customize a war at all. For example, you could package up the customizations in a .jar file with a customization descriptor

Is there any generic Maven code generator?

2013-02-27 Thread christofer.d...@c-ware.de
I just posted this to Stackoverflow, but after posting I realized, that I should have come here first :-( I am currently working on a project, that makes intense usage of code generation for various purposes. One generator generates SQL scripts from jpa entities. Another generates DTOs from

Re: How to play with 2 repositories ?

2013-02-27 Thread Curtis Rueden
Hi Gillen, How can I configure my settings files so that when I switch the config I keep my entire local repository useable, independantly of the place from where I downloaded it. As a workaround, could you copy your work settings.xml to your home machine, and have a quick go offline script

Re: dynamically select resources and apply filtering

2013-02-27 Thread Jean-Noël Colin
Stephen, Many thanks for taking the time to write this long and valuable response; I'll follow your advise, and work sprint by sprint in trying to get into the maven way. Best regards Jean-Noël On 27 Feb 2013, at 10:25, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Yes, though

Re: How to play with 2 repositories ?

2013-02-27 Thread Wayne Fay
How can I configure my settings files so that when I switch the config I keep my entire local repository useable, independantly of the place from where I downloaded it. Another common solution to this problem is to simply run your own local MRM on the laptop that goes from work to home and

How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
My POM declared a dependency to a DLL: dependency groupIdnet.sf.jacob-project/groupId artifactIdjacob-runtime/artifactId typedll/type classifierx64/classifier version1.17-M2/version

Re: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Dan Tran
- Use maven profile to detect OS arch and set it into a maven property - Use maven-dependcy-plugin to down all requires dll. Make sure to take advantage of the property set in step 1 - Configure maven-surefire-plugin to set PATH env variable into the download directory Good luck -D On Wed,

Re: Is there any generic Maven code generator?

2013-02-27 Thread Jeff MAURY
First, the way to plug extra functionnality into Maven is to write a Maven plugin so I don't think you can find a Maven plugin to be generic enough to perform any kind of task. For you purpose, you can try a Java annotation processor which are supported by the Maven compiler plugin or a

Re: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Jörg Schaible
Hi Marcus, Markus Karg wrote: My POM declared a dependency to a DLL: dependency groupIdnet.sf.jacob-project/groupId artifactIdjacob-runtime/artifactId typedll/type classifierx64/classifier

RE: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
Dan, sounds reasonable. I think I'll do that! :-) Thanks a lot! -Markus -Original Message- From: Dan Tran [mailto:dant...@gmail.com] Sent: Mittwoch, 27. Februar 2013 17:41 To: Maven Users List Subject: Re: How to tell Maven to put DLL dependency into java.library.path? - Use

RE: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
Jörg, thank you for this interesting idea. I think this would be the most sophisticated (most mavenic) solution, but I have the feeling that Dan's to be simpler to set up in the short term for a Maven novice? Thanks! :-) Markus -Original Message- From: Jörg Schaible

Re: question about release:branch with CVS

2013-02-27 Thread Robert Scholte
Hi, you haven't specified the version of the maven-release-plugin you're using. If you haven't locked the version, it is probably 2.0, which is rather old. You should try 2.4. If remote tagging is not supported CVS yet, please create an for the SCM project[1], patches are always very

Re: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Wayne Fay
thank you for this interesting idea. I think this would be the most sophisticated (most mavenic) solution, but I have the feeling that Dan's to be simpler to set up in the short term for a Maven novice? Go with Dan's solution for now, but I think you'll change to the Nar plugin eventually.

Re: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Dan Tran
if you already have all you DLL loaded at your maven repo, Then it make sense to do so at this moment if you are required to build dll with maven, better look into NAR -D On Wed, Feb 27, 2013 at 12:35 PM, Wayne Fay wayne...@gmail.com wrote: thank you for this interesting idea. I think this

AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
Possibly. Because in fact, I need other tools to understand the need for java.library.path, too, mosty the m2e Eclipse plugin, which I doubt will understand any manual PATH changes in the surefire config (does it?). -Ursprüngliche Nachricht- Von: Wayne Fay [mailto:wayne...@gmail.com]

AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
I fact these are not my DLLs but are ready-to-use artifacts of the JACOCO project on SourceForge. So I will *never* build them on my own. But I need to have it working m2e. Do you think your solution will convince m2e to add lib to java.library.path? -Ursprüngliche Nachricht- Von: Dan

Re: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Dan Tran
I think that would work if you invoke 'maven install' using m2e. However, if you use eclispe's unit test, that may not possible since I too could not working. I basically configure eclispe or put the dlls in my system path -D On Wed, Feb 27, 2013 at 11:21 PM, Markus Karg k...@quipsy.de wrote:

Re: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Anders Hammar
Why not just use the EclEmma Eclipse plugin? It uses Jacoco from what I read on their web site, despite the emma in the name of the plugin. /Anders On Thu, Feb 28, 2013 at 8:48 AM, Dan Tran dant...@gmail.com wrote: I think that would work if you invoke 'maven install' using m2e. However, if