Re: How to compile twice

2011-05-31 Thread Karl Heinz Marbaise
Hi, Speaking as someone who builds a gigantic production farm of C++ code into (amongst other things), JNI, I'll tell you that we don't use maven to build any C++ at all. We Just Use Make, and then we bring the appropriate native libs into the maven build for testing. The deploy plugin are our f

RE: How to compile twice

2011-05-31 Thread Claves Do Amaral
-Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar > >Possibly, but very much not the Maven way IMHO. You should never have to do >more than one build! If you were using a repo manager which correctly blocks >>redeploys, you w

Re: How to compile twice

2011-05-29 Thread Anders Hammar
On Fri, May 27, 2011 at 16:14, Claves Do Amaral wrote: > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > > > >if it is the exact same source producing multiple artifacts which all have > the exact same dependencies, then you can be ok... but getting

RE: How to compile twice

2011-05-27 Thread Claves Do Amaral
-Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > >if it is the exact same source producing multiple artifacts which all have the >exact same dependencies, then you can be ok... but getting the release >>deployed becomes tricky. But for JAR/WAR/EAR files

Re: How to compile twice

2011-05-25 Thread Stephen Connolly
On 25 May 2011 23:43, David McCabe wrote: > > -Original Message- > > From: Ron Wheeler [mailto:rwhee...@artifact-software.com] > > Sent: Wednesday, 25 May 2011 4:54 PM > > To: users@maven.apache.org > > Subject: Re: How to compile twice > > > >

Re: How to compile twice

2011-05-25 Thread Benson Margulies
Any time you all get tired of insulting each other's intelligence we can all try to find a solution. It's a simple fact, Maven was, indeed, designed to build Java. It was not designed to build C++ or any other native code language. The core model of what gets built is one output per module. Featu

RE: How to compile twice

2011-05-25 Thread David McCabe
> -Original Message- > From: Ron Wheeler [mailto:rwhee...@artifact-software.com] > Sent: Wednesday, 25 May 2011 4:54 PM > To: users@maven.apache.org > Subject: Re: How to compile twice > > On 25/05/2011 10:58 AM, David McCabe wrote: > > In that case, how does

Re: How to compile twice

2011-05-25 Thread Antonio Petrelli
2011/5/25 Ron Wheeler > On 25/05/2011 10:58 AM, David McCabe wrote: > >> In that case, how does one handle a single module build that produces >> multiple artefacts? Is this 'not the Maven way'? What about multi-platform >> builds? What about multiple output types (header files, DLLs, import >> l

RE: How to compile twice

2011-05-25 Thread Claves Do Amaral
-Original Message- From: Ron Wheeler [mailto:rwhee...@artifact-software.com] > >This is the Maven way. Ok I will use my copy of "Maven: The Definitive Guide" to light my next BBQ. You convinced me, I am back to the orthodoxy. Nested Modules. Thanks Claves The information contained in th

Re: How to compile twice

2011-05-25 Thread Ron Wheeler
On 25/05/2011 10:58 AM, David McCabe wrote: In that case, how does one handle a single module build that produces multiple artefacts? Is this 'not the Maven way'? What about multi-platform builds? What about multiple output types (header files, DLLs, import libraries and JNI JARs)? I'm getting v

RE: How to compile twice

2011-05-25 Thread Claves Do Amaral
-Original Message- From: Antonio Petrelli [mailto:antonio.petre...@gmail.com] > >Not much, Maven is very angry about it :-D Anyway, did you try, at least, to >see if you can do a multimodule build? We had multi-module builds but it turned out to be a bit messy. Now, we switched to profile

Re: How to compile twice

2011-05-25 Thread Stephen Connolly
> > > -Original Message- > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] > > On Behalf Of Anders Hammar > > Sent: Wednesday, 25 May 2011 3:49 PM > > To: Maven Users List > > Subject: RE: How to compile twice > > > > I

Re: How to compile twice

2011-05-25 Thread Antonio Petrelli
2011/5/25 Claves Do Amaral > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > > > >STOP FIGHTING MAVEN > > :) > > I will take the risky way, like Prometheus, and pay the consequences of my > hubris. I hope that Maven will have mercy on me. > Not much

RE: How to compile twice

2011-05-25 Thread Thiessen, Todd (Todd)
3 AM > To: Maven Users List > Subject: RE: How to compile twice > > -Original Message- > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On > Behalf Of Anders Hammar > >It will not. I can tell you that for sure. The person that ends du > maintain

RE: How to compile twice

2011-05-25 Thread David McCabe
ge- > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] > On Behalf Of Anders Hammar > Sent: Wednesday, 25 May 2011 3:49 PM > To: Maven Users List > Subject: RE: How to compile twice > > It will not. I can tell you that for sure. The person that ends du maintainin

RE: How to compile twice

2011-05-25 Thread Claves Do Amaral
-Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar >It will not. I can tell you that for sure. The person that ends du maintaining >your build setup will curse your name forever! I will comment it very well... What about usin

RE: How to compile twice

2011-05-25 Thread Anders Hammar
It will not. I can tell you that for sure. The person that ends du maintaining your build setup will curse your name forever! /Anders (mobile) Den 25 maj 2011 16.44 skrev "Claves Do Amaral" : > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] >> >>STOP F

RE: How to compile twice

2011-05-25 Thread Claves Do Amaral
-Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > >STOP FIGHTING MAVEN :) I will take the risky way, like Prometheus, and pay the consequences of my hubris. I hope that Maven will have mercy on me. The information contained in this email is strictly

Re: How to compile twice

2011-05-25 Thread Stephen Connolly
STOP FIGHTING MAVEN Multi-module is your only man anything else is torture On 25 May 2011 15:26, Claves Do Amaral wrote: > -Original Message- > From: Jörg Schaible [mailto:joerg.schai...@scalaris.com] > >>It seems that the plugin will add the target directories automatically to the

RE: How to compile twice

2011-05-25 Thread Claves Do Amaral
-Original Message- From: Laird Nelson [mailto:ljnel...@gmail.com] > >How about: > > > ../../generated-sources-jacorb/** > ../../generated-sources-sunorb/** > I have downloaded the Plexus compiler source code (which is what ultimately maven-compiler-plugin 2.3.2 uses) and it looks that t

Re: How to compile twice

2011-05-25 Thread Laird Nelson
On Wed, May 25, 2011 at 10:26 AM, Claves Do Amaral < claves.doama...@iggroup.com> wrote: > > > > ${project.build.directory}/generated-sources-sunorb/idl/**/*.java > > > Does not have any effect since the excludes start from the source root, > i.e. it's a filter that is applied to the subtree >

RE: How to compile twice

2011-05-25 Thread Claves Do Amaral
-Original Message- From: Jörg Schaible [mailto:joerg.schai...@scalaris.com] >It seems that the plugin will add the target directories automatically to the >list of sources directory for the compiler. You need now two separate I see that the sources are added to the compileSourceRoots by

RE: How to compile twice

2011-05-24 Thread Jörg Schaible
Hi Claves, Claves Do Amaral wrote: > -Original Message- > From: Laird Nelson [mailto:ljnel...@gmail.com] > >>How are you generating the sources? This output indicates that the * > > Here is the configuration: > > > uk.co.igindex.maven > maven-idl-plugin > >

Re: How to compile twice

2011-05-24 Thread Anders Hammar
Please, don't fight Maven! All the issues your running into are because of this. And you will see other problems later on that you don't forsee right now. I strongly suggest that you follow Stephen's advice and move to a multi-module build. If you don't want many artifacts for your clients, you can

RE: How to compile twice

2011-05-24 Thread Claves Do Amaral
-Original Message- From: Laird Nelson [mailto:ljnel...@gmail.com] > Wow, that's truly baffling. I have a successful multi-artifact build running > with inclusions and exclusions like this. Are you using Maven 3+? Yes, Maven 3.0.2 > The output looks like it. I will keep trying. I may h

Re: How to compile twice

2011-05-24 Thread Laird Nelson
On Tue, May 24, 2011 at 12:16 PM, Claves Do Amaral < claves.doama...@iggroup.com> wrote: > Thanks Laird, but I have already tried this: > Wow, that's truly baffling. I have a successful multi-artifact build running with inclusions and exclusions like this. Are you using Maven 3+? The output lo

RE: How to compile twice

2011-05-24 Thread Claves Do Amaral
-Original Message- From: Laird Nelson [mailto:ljnel...@gmail.com] > You can of course just chalk this up to magic and exclude them, regardless of > whatever mystical internals put them there in the first place: Thanks Laird, but I have already tried this: org.apache.maven.plugin

Re: How to compile twice

2011-05-24 Thread Laird Nelson
On Tue, May 24, 2011 at 11:55 AM, Claves Do Amaral < claves.doama...@iggroup.com> wrote: > > The two executions of the IDL plugin generate the output folders with the > generated sources for the two projects. You will notice that this is a > custom IDL plugin. > OK. Nothing suspicious there. I'm

RE: How to compile twice

2011-05-24 Thread Martin Gainty
ailto:claves.doama...@iggroup.com] > > Sent: Tuesday, May 24, 2011 10:59 AM > > To: Maven Users List > > Subject: RE: How to compile twice > > > > -Original Message- > > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > > > One pom -> on

RE: How to compile twice

2011-05-24 Thread Claves Do Amaral
-Original Message- From: Laird Nelson [mailto:ljnel...@gmail.com] >How are you generating the sources? This output indicates that the * Here is the configuration: uk.co.igindex.maven maven-idl-plugin generate-jacorb

Re: How to compile twice

2011-05-24 Thread Laird Nelson
On Tue, May 24, 2011 at 10:35 AM, Claves Do Amaral < claves.doama...@iggroup.com> wrote: > however the compilation fails with the error > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > (default-compile) on project test-attach-artifact: Compilation

RE: How to compile twice

2011-05-24 Thread Yanko, Curtis
.doama...@iggroup.com] > Sent: Tuesday, May 24, 2011 10:59 AM > To: Maven Users List > Subject: RE: How to compile twice > > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > > One pom -> one artefact > > > > to cre

RE: How to compile twice

2011-05-24 Thread Yanko, Curtis
- > From: Claves Do Amaral [mailto:claves.doama...@iggroup.com] > Sent: Tuesday, May 24, 2011 10:35 AM > To: Maven Users List > Subject: How to compile twice > > Hello to the Maven users. > > I am trying to generate two artefacts, each containing two > different flavours o

RE: How to compile twice

2011-05-24 Thread Claves Do Amaral
-Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] >Classifiers is _exactly_ the ***wrong*** way to try and solve this > >Profiles is _exactly_ the ***wrong*** way to try and solve this. > >If you don't like the Maven way, don't use Maven I like Maven, I lov

Re: How to compile twice

2011-05-24 Thread Stephen Connolly
Multi-module build you will have a root project which aggregates the whole thing you will have a common module for all the code that is common and is depended on by the generated code (this is optional if there is no such code) you will have a module for the first set of generated code you will

RE: How to compile twice

2011-05-24 Thread Claves Do Amaral
-Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > One pom -> one artefact > > to create two artifacts, use a multi-module project. Thanks for your answer. I understand, but let me explain what I am trying to do, ultimately. I already have a project that

Re: How to compile twice

2011-05-24 Thread Stephen Connolly
On 24 May 2011 15:35, Claves Do Amaral wrote: > Hello to the Maven users. > > I am trying to generate two artefacts, each containing two different flavours > of generated classes. > I am able to generate the classes under two different folders: > > target\generated-sources-jacorb > target\generat

How to compile twice

2011-05-24 Thread Claves Do Amaral
Hello to the Maven users. I am trying to generate two artefacts, each containing two different flavours of generated classes. I am able to generate the classes under two different folders: target\generated-sources-jacorb target\generated-sources-sunorb Now I would like to compile these two fold