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
-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
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
-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
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
> >
> >
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
> -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
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
-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
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
-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
>
> > -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
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
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
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
-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
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
-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
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
-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
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
>
-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
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
>
>
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
-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
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
-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
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
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
-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
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
.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
We'd handle this in our CI system by running two jobs in parallel
coupled to different tooling.
Curt Yanko | Continuous Integration Services | UnitedHealth Group IT
Making IT Happen, one build at a time, 600 times a day
> -Original Message-
> From: Cla
-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
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
-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
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
37 matches
Mail list logo