Hi,

It's basically user experience. In the real project, to get the distribution
user has to  do the following,

mvn clean install -Dcommon -Dwebapp -Dstandalone -Drelease -Djavadoc -o

IMHO  above is  not good for a user thus,

something like,

mvn clean install -Drelease=all;  would do the above, in users perspective;
it's really good.

Saminda

On 1/8/07, Rahul Thakur <[EMAIL PROTECTED]> wrote:

Any reason why you can't do following?

mvn clean install -Dp1 -Dp2

Rahul


----- Original Message -----
From: "Saminda Abeyruwan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 08, 2007 6:42 PM
Subject: [Maven2] Question on profiles


> Hi All,
>
> I'm having the following use case on profiles.
>
> Say I have a multi module project a1 and a2 with two profiles p1 and
> p2
> which runs on a1 and a2 respectively.
>
> I could write pom.xml to a1 and a2 as follows,
>
> ==================================================
> a1 -
>
> <project>
> ...
> <profiels>
>   <profile>
>           <id>p1</id>
>            <activation>
>                <property>
>                    <name>p1</name>
>                </property>
>            </activation>
>        .... do something here
>   </profile>
> </profiles>
> ...
> </project>
>
> and for a2 -
>
> <project>
> ...
> <profiels>
>   <profile>
>           <id>p2</id>
>            <activation>
>                <property>
>                    <name>p2</name>
>                </property>
>            </activation>
>        .... do something here
>   </profile>
> </profiles>
> ...
> </project>
>
> ====================================
>
> Now there will come a situation where another profile p3,
>
> and when the user say "mvn clean install -Dp3";
>
> This should run p1 of a1 and p2 of a2 ;; i.e p3 is the union of p1 and
> p2.
>
> Is this possible in pom.xml. Do there exist a maven plugin to do this
> kind
> of profile management.
>
> Please do aid us.
>
> Thank you
>
> Saminda
>
> --
> Saminda Abeyruwan
>
> Software Engineer
> WSO2 Inc. - www.wso2.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Saminda Abeyruwan

Software Engineer
WSO2 Inc. - www.wso2.org

Reply via email to