Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Prashant Neginahal
Hi All, We are starting new web project. But, it has to be built on some proprietary web framework which is NOT mavenised and comes with its own bunch of libraries. I am thinking of using maven for this application development. But, just wondering how to ensure maven uses this proprietary

Re: How to package context.xml based on regions

2011-09-29 Thread Stephen Connolly
if local builds are being run using jetty:run there are some tricks to allow jetty to add the file to the effective webapp so that the war never needs context.xml and there is just one and only one war built (thus avoiding the nasty profile produces different artifact complaint that people make

RE: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Yuvaraj Vanarase
Prashant, If those libraries are standard and well known then should be available at some maven repository. You can try http://mvnrepository.com to find it out. Generally, you should setup your own repository may be using artifactory and put all dependencies there. Requirement is maven should

Re: correct section for plugins-definitons

2011-09-29 Thread codingplayer
Hi Dennis, thx for the poiner to the JIRA issue. br Roman -- View this message in context: http://maven.40175.n5.nabble.com/correct-section-for-plugins-definitons-tp4849832p4852030.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Prashant Neginahal
Thanks for reply,Yuvaraj. I understand the maven repository and we will be having nexus repository. But, we are asked to use that proprietary web framework which comes with its own jars. I dont think we have possibility to mavenize all those jars and put them into repository. I just want to keep

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Guillaume Polet
I am looking at fix to use that framework in maven way. Then, your only option is to install all those jars in your Nexus repository. Guillaume Le 29/09/2011 09:31, Prashant Neginahal a écrit : Thanks for reply,Yuvaraj. I understand the maven repository and we will be having nexus

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Prashant Neginahal
Is that the only option? Those jars are required only for web project. Other application java projects DO NOT require those jars. I was thinking to put them in web lib folder and maven can include them in classpath. Some thing like this works? Thanks, Prashant On Thu, Sep 29, 2011 at 1:07 PM,

Re: Looking for free wrapper_windows_x86_64_exe version 3.2.3

2011-09-29 Thread Brett Porter
As far as I recall, the x86_64 Windows wrapper has only been available since 3.3.0, and has always been commercial. You will have to contact Tanuki Software. - Brett On 29/09/2011, at 1:03 PM, Dan Tran wrote: Hi the opensource version of java service wrapper ( JSW ) used by

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Wayne Fay
No, that does NOT work. Put them in Nexus as you've been told. Wayne On Thursday, September 29, 2011, Prashant Neginahal prashu.n...@gmail.com wrote: Is that the only option? Those jars are required only for web project. Other application java projects DO NOT require those jars. I was thinking

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Stephen Connolly
Rule of thumb: If you feel like you are fighting Maven then either: 1. You are doing it wrong, do it the Maven way and you won't be fighting; or 2. You maybe should be using a different build tool that does not have its own way. -Stephen On 29 September 2011 09:59, Wayne Fay wayne...@gmail.com

Parent Dependencies

2011-09-29 Thread Kiren Pillay
Hi All We have a project with multi-level modules. Main core--dao +---business From what I've read, if I've defined the dependency in the Main module, I don't need to repeat the defintion the dao module. Is this correct, because it doesn't seem to work for me? Regards Kiren

Re: Parent Dependencies

2011-09-29 Thread Guillaume Polet
I am not sure I understood you correctly but here is what I can tell: Let's say you have a Main project which contains two modules: dao and business: * Main o dao o business If in your Main pom.xml, you have defined the following: groupIda.b.c/groupId artifactIdMain/artifactId

Re: Parent Dependencies

2011-09-29 Thread Kiren Pillay
Thanks for the explanation Guillame...this works as you've stated. However my question is, is the inheritance transitive, i.e, the child pom would inherit the dependencies of the grandparent pom? From what I'm seeing this is not the case. Regards On Thu, Sep 29, 2011 at 11:43 AM, Guillaume

Re: Skip Pom deployment

2011-09-29 Thread Guillaume Polet
You must then configure the following property in the maven-deploy-plugin: http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#skip If you want to be able to choose that from the CLI, add a property (let's say skipDeploy) in your parent pom.xml with the value 'true', bind that

Re: Skip Pom deployment

2011-09-29 Thread Guillaume Polet
Small errata, by default you should of course set the skipDeploy to 'false' of course so that by default your pom is deployed. G. Le 29/09/2011 13:01, Guillaume Polet a écrit : You must then configure the following property in the maven-deploy-plugin:

Re: Skip Pom deployment

2011-09-29 Thread Nazia Ghawte
Thanks for your reply. i have tried putting the following into the parent POM properties skipDeploytrue/skipDeploy /properties but it still doesnt work and the pom gets deployed. -- View this message in context:

Re: Skip Pom deployment

2011-09-29 Thread Guillaume Polet
I just tested with the following pom and it works like a charm: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;

Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Schrecker, Wolfgang
You can put your libs into Nexus without 'mavenizing' them. Lot less to do ... Wolfgang -Ursprüngliche Nachricht- Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Gesendet: Donnerstag, 29. September 2011 11:09 An: Maven Users List Betreff: Re: Using Maven with custom

Re: Parent Dependencies

2011-09-29 Thread Guillaume Polet
Sure, the inheritance is transitive. You can have as many levels as you want: If you have a hierarchy like this: * A o B + C All dependencies declared in A will also be available for B and C and all dependencies declared in B will also be available for C. Guillaume Le

Re: Skip Pom deployment

2011-09-29 Thread Nazia Ghawte
i have tried again but with no success. the main reason for the POM not to be deployed because it is only needed when i run the parent project,where as the child modules are independant of each other and can be built on their own as well.the parent module is only needed to be built if we want all

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Kathryn Huxtable
And a single Nexus instance can have multiple repositories. You can manually install your custom libraries in a repository in Nexus that is only used by this one project. -K On Sep 29, 2011, at 6:56 AM, Schrecker, Wolfgang wrote: You can put your libs into Nexus without 'mavenizing' them.

Re: Skip Pom deployment

2011-09-29 Thread Guillaume Polet
Ok, I guess I am missing something here, but if you run 'mvn deploy' from one of your child module, then only that module (and its child modules, if any) is build and deployed. The parent pom is deployed only if you run 'mvn deploy' from the parent or one of its ancestor. Can you post your

Re: Skip Pom deployment

2011-09-29 Thread Nazia Ghawte
ok, one revelation here. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId version2.7/version configuration skip${skipDeploy}/skip /configuration

Re: Skip Pom deployment

2011-09-29 Thread Stephen Connolly
Rule of thumb: If you feel like you are fighting Maven then either: 1. You are doing it wrong, do it the Maven way and you won't be fighting; or 2. You maybe should be using a different build tool that does not have its own way. In your case you are probably trying to double-use the deploy

Re: maven metadata files downloaded over and over again (3.0.3)

2011-09-29 Thread Paul French
Thanks Mark for the reply. I will take a look when my boss is not looking. Do you know if I can I get my current maven install 3.0.3 to use the later version of aether 1.12 instead of 1.11 ? I've googled and cannot find an approximate release date for 3.0.4, any ideas? Plus I've seen some

Re: Skip Pom deployment

2011-09-29 Thread Guillaume Polet
You mean that if you run twice the exact same command, you get two different results? Then there is something really wrong with your project. Anyway, let's say you have a project with the following structure: * Root o A o B o C in Root, you declare the 3 modules A,B,C

Re: Skip Pom deployment

2011-09-29 Thread Nazia Ghawte
Yep absolutely thats the case.. -- View this message in context: http://maven-users.828.n2.nabble.com/Skip-Pom-deployment-tp6843439p6843746.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe,

Re: Skip Pom deployment

2011-09-29 Thread Nazia Ghawte
Follwoing is the output on running the deploy command First when i chnage the version from 2.4 to 2.6 [INFO] Uploading repository metadata for: 'artifact commons.adapter:pricing-ra' [INFO] [INFO] Building Resource Adapter

Re: Skip Pom deployment

2011-09-29 Thread Guillaume Polet
Sorry but you got me lost there. I really don't know how you get very two different results running the same command with the same parameters and without changing the pom.xml's. Do you run those with a command line or do you use an IDE? Maybe somebody else has a better understanding than I am

release plugin flat multi module

2011-09-29 Thread Abid Hussain
Hi, I know the issue of using the release plugin in a multi module project with a flat directory structure has been discussed many times. I'm using maven 2.2.1 and I couldn't determine if it has been solved or not. Trying to prepare a release fails with svn: 'D:\eclipse-workspaces\test' is

customisation of path in pom

2011-09-29 Thread sandy
Dear friends I am successful in integrating selenium html tests using maven on my local machine. In my pom.xml i give the local path for firefox to run the html test. how should i do to customise my firefoxpath. -- View this message in context:

Re: customisation of path in pom

2011-09-29 Thread Guillaume Polet
Simply use properties properties firefox.path/usr/share/bin/firefox/firefox.path /properties and wherever you need that value, just replace by ${firefox.path} Cheers, Guillaume Le 29/09/2011 16:16, sandy a écrit : Dear friends I am successful in integrating selenium html tests using maven on

Re: Parent Dependencies

2011-09-29 Thread Kiren Pillay
Thanks. Will try it again. Regards On Sep 29, 2011 2:02 PM, Guillaume Polet guillaume.po...@gmail.com wrote:

Re: customisation of path in pom

2011-09-29 Thread Wayne Fay
I am successful in integrating selenium html tests using maven on my local machine. In my pom.xml i give the local path for firefox to run the html test. how should i do to customise my firefoxpath. I don't use this plugin but it appears that Selenium simply uses the Firefox binary it finds

Re: Using Maven with custom libraries which are not in repository.

2011-09-29 Thread Manfred Moser
On Wed, September 28, 2011 11:43 pm, Prashant Neginahal wrote: Hi All, We are starting new web project. But, it has to be built on some proprietary web framework which is NOT mavenised and comes with its own bunch of libraries. I am thinking of using maven for this application development.

Help!

2011-09-29 Thread GustavoR
Hi to everyone. That's is my first post.. I have a big multi-module project Suppose that project structure: MainModule |_ Module1 | |_ SubModule1 |_ Module 2 |_SubModule2 And SubModule2 has a dependency with SubModule1. Is there any way to run mvn test in Submodule2

Re: Help!

2011-09-29 Thread Wayne Fay
And SubModule2 has a dependency with SubModule1. Is there any way to run mvn test in Submodule2 forcing the generation of SubModule1 and its dependents if it have. I dont have SubModule1 installed in my local repository.. so mvn test in Submodule2 fails. Not if you run mvn test from

Re: Help!

2011-09-29 Thread GustavoR
Thanks for your quick reply That is what i supposed :( . Let me ask you another question if i run mvn test in MainModule it will compile and run all child modules and their tests. If it possible to run only one submodule's tests? Thanks again -- View this message in context:

Re: Help!

2011-09-29 Thread Wayne Fay
if i run mvn test in MainModule it will compile and run all child modules and their tests. If it possible to run only one submodule's tests? Not that I am aware of. I would use TestNG and groups to accomplish this task. See the second answer here from tunaranch:

Re: Deployment of REAL source and single file artifacts

2011-09-29 Thread Jörg Schaible
Hi Jason, Jason Winnebeck wrote: I didn't think it moved the file into target. I tried that and ran mvn package and it didn't happen. However, I checked my .m2 local repository after mvn install and it DOES appear in there. I just don't think it works. [snip] All I can say, that we us it

RE: How to package context.xml based on regions

2011-09-29 Thread Andy Hahn
Thanks Steven. I agree - I didnt want to get into profile kludge. I've decided to just remove context.xml all together from the project and have developers cvongiure the datasource manually. Thanks! Date: Thu, 29 Sep 2011 07:48:20 +0100 Subject: Re: How to package context.xml based on

Re: Looking for free wrapper_windows_x86_64_exe version 3.2.3

2011-09-29 Thread Dan Tran
I am hoping Sonatype, took the windows x86 for version 3.2.3 source, enhance, and rebuild for x64. Is it the case? -Dan On Thu, Sep 29, 2011 at 12:45 AM, Brett Porter br...@apache.org wrote: As far as I recall, the x86_64 Windows wrapper has only been available since 3.3.0, and has always

RE: How to package context.xml based on regions

2011-09-29 Thread Andy Hahn
Ok I figured it out. Here is my working solution: profiles profile idlocal/id properties regionlocal/region /properties activation activeByDefaulttrue/activeByDefault /activation build plugins

Tomcat plugin: Logging

2011-09-29 Thread Mike Janson
Hi folks, Sorry if this has been asked before but I've searched far/wide and have been unable to find any information to help me solve my problem. Basically, no matter what I try I am unable to affect default tomcat logging when executing my webapp via the tomcat:run target. I have tried adding

Re: Help!

2011-09-29 Thread Barrie Treloar
On Fri, Sep 30, 2011 at 12:42 AM, GustavoR rodriguezgustavoand...@gmail.com wrote: Hi to everyone. That's is my first post.. I have a big multi-module project Suppose that project structure: MainModule   |_ Module1   |     |_ SubModule1   |_ Module 2         |_SubModule2 And