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 <[email protected]> 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > -- 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: [email protected] For additional commands, e-mail: [email protected]
