I have the same problem and I'd like to explain it.
I want to have an ability to add some web-modules to my ear in some profile.
And I don't want to redefine other modules, only my module. If I only add
dependency on my module in profile, it's context root will be equal to war
name, but I want to
A configuration item that is a list can't be merged in a profile. See the
"modules" element as a configuration item, like the JavaEE version you want
to use. If you override the value in the profile, you can't expect it to
merge the elements that are set in the main build (this is a global behavior
through different means, we'd highly appreciate.
>
> Cheers, Paul.
>
> -Original Message-
> From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
> Behalf Of Anders Hammar
> Sent: Dienstag, 22. Dezember 2009 17:51
> To: Maven Users List
> Subj
Paul.
-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
Behalf Of Anders Hammar
Sent: Dienstag, 22. Dezember 2009 17:51
To: Maven Users List
Subject: Re: ear-plugin and profiles: poor cooperation?
I believe that the behavior you see is correct. Mayb
I believe that the behavior you see is correct. Maybe not what you want
though...:-)
If you explain why you sometimes would like to add more jars wee could
suggest a different solution.
/Anders
On Tue, Dec 22, 2009 at 16:12, Rebholz Paul wrote:
> > Hi all!
> >
> > We have a project producing an
> Hi all!
>
> We have a project producing an ear artifact. The contents of the ear
> file are configured with the maven-ear-plugin. In profiles we want to
> be able to flexibly add more artifacts to the ear file as shown in the
> example below. Our tests so far revealed a different behaviour than