No, I don't think so. If you use profiles you need to execute it twice as I
described.

/Anders
On Fri, Sep 4, 2009 at 13:24, canerK <canerkapl...@gmail.com> wrote:

>
>
> I want to execute only one command.eg. "mvn site site:deploy -P
> profile1,profile2".The configurations for the site plugin are  in profile1
> and an alternative url is in profile2.Is there a way to achieve that?
>
>
> Anders Hammar wrote:
> >
> > Why didn't it work with profiles? Did you specify the profile (id) on the
> > command line? I don't understand why that wouldn't work; Maven should use
> > the url defined in the profile being used.
> > However, you need to run the deploy twice; once with each profile:
> >
> > mvn site:deploy -Pprofile1
> > mvn site:deploy -Pprofile2
> >
> > /Anders
> >
> > On Thu, Sep 3, 2009 at 09:18, canerK <canerkapl...@gmail.com> wrote:
> >
> >>
> >> Hi,
> >> I want to deploy(site:deploy) a site to two different places(url).I
> >> couldnt
> >> manage it with muliple profiles.Every profile has its own
> >> distributionManagement,but maven uses only one of them and deploys the
> >> site
> >> to that url.Also maven doesnt allow to use multiple <url> tags in <site>
> >> element or  multiple <site> in distributionManagement.How can i achieve
> >> this?Any idea is appreciated..
> >>
> >> Thanks in advance,
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-site%3Adeploy-to-multiple-urls--tp25270953p25270953.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-site%3Adeploy-to-multiple-urls--tp25270953p25292713.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to