Re: Tycho and m2 artefact

2009-06-18 Thread Jason van Zyl
On 17-Jun-09, at 10:41 AM, Brice wrote: Hi I actually use Tycho for a RCP bundle development with the 0.3.0- DEV-1819 release. I use it in the manifest-first mode (of course) but I'd like to add a dependency to another m2 module which is NOT an OSGI bundle. As pom files are generated by T

Parameter substitution in installed poms

2009-06-18 Thread Lance Walton
Hi all. I apologise for reposting this; I messed up my earlier posting, and since there has been a lot of activity on the list and nobody has answered my question, I wondered whether my screw up had caused people to ignore the posting. I am relatively new to Maven and I have recently started

Re: eclipse plugin 2.7: link project instead of repository jar

2009-06-18 Thread Daniele Dellafiore
this is exactly what I understood. I have, in the same folder, two projects, A and B. A uses B as dependancy. I expect that when I mvn eclipse:eclipse A it uses B as a link, in eclipse, rather than pointing to the jar in M2 repo. This is actually not happening For both projects, the name of the

Augmenting from parent POM

2009-06-18 Thread Andreas Sewe
Hi, is there any way to *augment* or selectively override some entries inherited from the parent POM? In particular, I would really like to keep all contact information (, , , and the URLs) in one place only, namely the parent POM, and then augment the entry with, e.g., the (if any) in that pa

Artifact with classifier

2009-06-18 Thread Aleksey Didik
Hello all. I have met a situation which confuse me a little. Let's imagine we have two assembly for one maven module: full version (for example server part of application) and brief version (client part for remote call). Will use maven-assembly-plugin for build them. Full (server):

Re: Artifact with classifier

2009-06-18 Thread Anders Hammar
Yes, this is an issue when using classifiers to create more than one artifact for a project. Create two separate Maven projects to solve it. /A On Thu, Jun 18, 2009 at 13:00, Aleksey Didik wrote: > Hello all. > > I have met a situation which confuse me a little. > > Let's imagine we have two asse

Re: How to create many jars in package phase?

2009-06-18 Thread David Weintraub
If I was doing this, I would have either a single JAR that contains all the customer's classes (After all, the classes are packaged as com.solbright.adinventory.etlf.customer, so they won't interfere with each other), or simply create separate packages for the core jar, and for each customer, and h

Artifacts with classifier

2009-06-18 Thread Aleksey Didik
Hello all. I have met a situation which confuse me a little. Let's imagine we have two assembly for one maven module: full version (for example server part of application) and brief version (client part for remote call). Will use maven-assembly-plugin for build them. Full (server):

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-18 Thread John Casey
As long as everyone is thinking of trying something out, you might as well try the version of Maven 2.2.0 that we're currently voting on: https://repository.apache.org/content/repositories/maven-staging-022/ This version may not be the final solution to Robert's issues with proxying...since I

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-18 Thread John Casey
Sorry I missed you previously. It seems like we're just not quite syncing up, but I'll try to stay on gtalk all day today to see if I can catch you. Robert Glover wrote: Ok, I located a DSL line that does not go through the proxy. Tomorrow I'll bring in my personal laptop to work and us

Re: How to create many jars in package phase?

2009-06-18 Thread Anders Hammar
I don't know what you produced before, so I don't know what you need to be compatible with. And I don't know what compatibility constraints you have (or think you have). I'm merely suggesting a better Maven approach and informing you of issues you could run into. /A On Thu, Jun 18, 2009 at 15:46,

Re: Augmenting from parent POM

2009-06-18 Thread Stephen Connolly
there is a "magic" attribute that you add the the tag... not sure what it is called... I think it's but I think you'll have to google for the exact attribute name 2009/6/18 Andreas Sewe : > Hi, > > is there any way to *augment* or selectively override some > entries inherited from the parent

Re: Augmenting from parent POM

2009-06-18 Thread Stephen Connolly
it might be 2009/6/18 Stephen Connolly : > there is a "magic" attribute that you add the the tag... > not sure what it is called... I think it's > > > > but I think you'll have to google for the exact attribute name > > 2009/6/18 Andreas Sewe : >> Hi, >> >> is there any way to *augment* or se

Re: problem upgrading to Maven 2.1.0

2009-06-18 Thread Kiss Tibor
While upgrading from Maven 2.0.10 to 2.1.0 it seems that I cannot deploy the most simple artifact to my nexus repo if I am using IBM jdk 1.4.2. In Maven 2.1.0 running on the following IBM jdk On Linux I have java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Class

Conflicting Versions Of Same JAR

2009-06-18 Thread Timothy Orme
Hello, I have a JAR and a WAR. My JAR file is used to render PDF files using the Flying Saucer Project. When used in this way, flying saucer requires iText 2.0.8 to be included. So the POM file for my JAR has 2 dependencies: org.xhtmlrenderer : core-renderer :

how to specify dependencies between test classes

2009-06-18 Thread Gul Onural
Hi, In the project I am working on, there is a need to specify dependencies between the test source directories. The project tree looks like similar to this : - componentA - src - main - test - aCommonComponent - src - main - test In the JUNIT test cases defined u

Re: eclipse plugin 2.7: link project instead of repository jar

2009-06-18 Thread Barrie Treloar
On Thu, Jun 18, 2009 at 7:42 PM, Daniele Dellafiore wrote: > this is exactly what I understood. > > I have, in the same folder, two projects, A and B. A uses B as dependancy. > I expect that when I mvn eclipse:eclipse A it uses B as a link, in eclipse, > rather than pointing to the jar in M2 repo.

change outputfile name

2009-06-18 Thread huser
Hi, I have a maven module which builds moduleA-1.0-SNAPSHOT.jar. I need the output file name to be moduleA.jar. How can I do this via CLI or POM change ? Thanks -- View this message in context: http://www.nabble.com/change-outputfile-name-tp24095098p24095098.html Sent from the Maven - Users ma

Re: how to specify dependencies between test classes

2009-06-18 Thread Tony Chemit
Le Thu, 18 Jun 2009 11:19:56 -0400, "Gul Onural" a écrit : > > Hi, > > In the project I am working on, there is a need to specify > dependencies between the test source directories. > > The project tree looks like similar to this : > > - componentA >- src > - main > - test > -

RE: how to specify dependencies between test classes

2009-06-18 Thread Damon Silver
Specify a test-jar goal in the section of aCommonComponent's pom (see documentation for maven-jar-plugin), invoke mvn jar:test-jar on that project, then try this in the componentA pom: foo.bar aCommonComponent 1.0 test-jar test - Damon -Original Messa

Re: Problem with servicegen

2009-06-18 Thread Jesfre
Thanks Wayne... I made the changes in my pom.xml, now it look like this: maven-antrun-plugin 1.1

Re: Conflicting Versions Of Same JAR

2009-06-18 Thread Stephen Connolly
what you probably need to do is shade flying saucer and it's iText dependency into a different package tree. That way it will be separated from the iText your app is using... The other solution is to run inside a OSGi container, as you could define in the bundle manifests that Flying Saucer must

Testing a Tomcat deployed servelet instance

2009-06-18 Thread Tanner Perrien
I have a web application that I would like to be able to test once it's deployed and running on Tomcat. Is there a way to embed all of this inside a maven build? The process would go like this: 1. Start maven 2. Maven would deploy WAR to Tomcat 3. Tomcat would be told to initialize the new WAR fi

Re: Testing a Tomcat deployed servelet instance

2009-06-18 Thread Mick Knutson
Yes. Do a search for Cargo plugin. I have created a few blogs on this http://www.baselogic.com/blog/archives/tag/tomcat But so has Wendy, and Matt Raible has several as well. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p

Re: change outputfile name

2009-06-18 Thread Tony Chemit
Le Thu, 18 Jun 2009 08:44:59 -0700 (PDT), huser a écrit : > > Hi, > > I have a maven module which builds moduleA-1.0-SNAPSHOT.jar. I need > the output file name to be moduleA.jar. How can I do this via CLI or > POM change ? > > Thanks override the property project.build.finalName will works :

RE: change outputfile name

2009-06-18 Thread Todd Thiessen
I believe changing the finalname property only changes the name of the artifact packaged in the target directory. The artifacts installed/deployed to the local/remo repos still has the version appended. --- Todd Thiessen > -Original Message- > From: Tony Chemit [mailto:che...@codeluti

Re: change outputfile name

2009-06-18 Thread Tony Chemit
Le Thu, 18 Jun 2009 13:14:31 -0400, "Todd Thiessen" a écrit : > I believe changing the finalname property only changes the name of > the artifact packaged in the target directory. The artifacts > installed/deployed to the local/remo repos still has the version > appended. > and your're wright :)

Re: Conflicting Versions Of Same JAR

2009-06-18 Thread Timothy Orme
Great, thanks for the tips! However, I'm unfamiliar with what you mean by shading and moving it into a different tree and googling for it seems to be difficult. Can you elaborate on what this means or point me to an article? Thanks, Tim O Stephen Connolly wrote: what you probably need to do is

Re: Testing a Tomcat deployed servelet instance

2009-06-18 Thread Stephen Connolly
you can do this with jetty using the failsafe maven plugin to run the tests Sent from my [rhymes with myPod] ;-) On 18 Jun 2009, at 17:54, Tanner Perrien wrote: I have a web application that I would like to be able to test once it's deployed and running on Tomcat. Is there a way to embed

Re: Conflicting Versions Of Same JAR

2009-06-18 Thread Stephen Connolly
maven-shade-plugin after that I have no clue Sent from my [rhymes with myPod] ;-) On 18 Jun 2009, at 18:23, Timothy Orme wrote: Great, thanks for the tips! However, I'm unfamiliar with what you mean by shading and moving it into a different tree and googling for it seems to be difficul

Re: Testing a Tomcat deployed servelet instance

2009-06-18 Thread Mick Knutson
I prefer to start with Jetty wen I want to run the application manually, but use Tomcat through my automated build and test through Cargo. This way I can easily test against 2 different containers. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring

Re: Testing a Tomcat deployed servelet instance

2009-06-18 Thread Stephen Connolly
yes, but you should use failsafe-maven-plugin so that you can ensure the container is stopped correctly if you have failing tests On 18/06/2009, Mick Knutson wrote: > I prefer to start with Jetty wen I want to run the application manually, but > use Tomcat through my automated build and test thr

Re: Augmenting from parent POM

2009-06-18 Thread Andreas Sewe
Stephen Connolly wrote: > it might be > > > Yes, it is, but I couldn't get it to work. The parent POM's get always overwritten, attribute or not. :-( FWIW, m2eclipse (rightly) complains that combine.children isn't defined in the POM's XML schema. I wonder why it was left out. (Which is too ba

Re: Problem with servicegen

2009-06-18 Thread Wayne Fay
> java.lang.NullPointerException >        at org.apache.tools.ant.Task.log(Task.java:346) >        at > weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.setupClasspath(ServiceGenTask.java:640) >        at > weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTas

Re: POM verbosity

2009-06-18 Thread Zac Thompson
>                                     >                                         >                                            trainCorpus >                                            ${en.trainCorpus} >                                         >                                         >              

issue with maven-remote-resources-plugin

2009-06-18 Thread akash agrawal
Hi, I am compiling my maven project and it is giving me error related to maven-remote-resources-plugin. It is looking for 1.0.1-SNAPSHOT version of maven-remote-resources-plugin. In my repository I have 1.0 released version. Below is the error log. Any idea as how to fix it? Thx. Akash C:\Me

Re: POM verbosity

2009-06-18 Thread Benson Margulies
It can't, sadly. The underlying property in the plugin is a Properties, not a Map. Properties won't take that syntax. I've opened a JIRA asking for it. On Thu, Jun 18, 2009 at 5:07 PM, Zac Thompson wrote: >>                                     >>                                         >>        

Re: POM verbosity

2009-06-18 Thread Stephen Connolly
It's your plugin, change it to a Map and then convert the map to a Properties 2009/6/18 Benson Margulies : > It can't, sadly. The underlying property in the plugin is a > Properties, not a Map. Properties won't take that syntax. I've opened > a JIRA asking for it. > > On Thu, Jun 18, 2009 at 5:07

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-18 Thread Zac Thompson
Robert, this is just a guess: is the proxy defined in your user-specific (~/.m2/) settings.xml, but the proxy credentials are only supplied in your 2.0.9 install's $M2_HOME/conf/settings.xml? I don't even know if this is possible, so pardon me if you've already looked into this. You may want to p

Re: POM verbosity

2009-06-18 Thread Benson Margulies
I know, I know. I plead terminal sloth. On Thu, Jun 18, 2009 at 6:27 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > It's your plugin, change it to a Map and then convert the map to a > Properties > > 2009/6/18 Benson Margulies : > > It can't, sadly. The underlying property in th

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-18 Thread Robert Glover
I appreciate the advice and support I've received here. Today I was finally able to work further on the issue via gmail chat with a maven developer. Under his tutelage I created a JIRA for this issue: http://jira.codehaus.org/browse/MNG-4211 Your question on whether I tried 2.0.1

mvn dependency:analyze missing dependency?

2009-06-18 Thread David Weintraub
I am converting yet another Ant build to a Maven build. This time, I purposefully laid out the directory tree, so when we do the conversion, it would be much simpler. I've finally found all of my dependencies, added them into the pom.xml, and got everything to compile and build the jar. (whether t

Re: mvn dependency:analyze missing dependency?

2009-06-18 Thread Olivier Dehon
You might be a victim of: http://jira.codehaus.org/browse/MDEP-124 -Olivier On Thu, 2009-06-18 at 21:18 -0400, David Weintraub wrote: > I am converting yet another Ant build to a Maven build. This time, I > purposefully laid out the directory tree, so when we do the > conversion, it would be much