struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig McClanahan" <>
Subject Re: [shale] Maven 2 profile activation
Date Mon, 12 Jun 2006 14:52:44 GMT
On 6/12/06, Wendy Smoak <> wrote:
> On users@maven, Roland Asmann pointed out that a profile can be
> activated if a certain property is *not* present.
> We now have the MyFaces profile is active if the 'jsf' property is not
> set.  The JSF RI profile is activated with -Djsf=ri on the command
> line.
> Using -Pmyfaces and -Pjsfri still works.  Profiles can always be
> activated by their ids.  Be sure to 'mvn clean' when you switch
> implementations, or the webapps will have both myfaces and the RI in
> WEB-INF/lib.  (I think Maven 2.1 will better handle the concept of
> 'This jar provides an implementation of xyz specification' during
> dependency resolution.)
> With defaultGoal=install in the pom, you can now simply execute 'mvn'
> from the top of the branch, and it should work.

Cool idea.  So, I tried "mvn clean" then "mvn -Pjsf=ri" from the top of the
branch.  The sample apps are still packaged with the MyFaces API and IMPL
jars (see my comment on SHALE-179).

> Wendy


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message