I have tried your suggestion but it didn't work.Maybe i have done something
wrong?
My pom.xml.
<profile>
<id>profile1</id>
<distributionManagement>
<site>
<id>id1</id>
<name>name1</name>
<url>url1</url>
</site>
</distributionManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>send-to-second-repo</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<altDeploymentRepository>
<id>id2</id>
<name>name2</name>
<url>url2</url>
</altDeploymentRepository>
<altDeploymentRepository>
<id>id3</id>
<name>name3</name>
<url>url3</url>
</altDeploymentRepository>
</configuration>
</execution>
</executions>
</plugin>
i execute "mvn site site:deploy -P profile1" end it deploys the site to only
url1(defined in distributionManagement)What am i doing wrong?
Stephen Connolly-2 wrote:
>
> multiple executions of deploy:deploy bound to the deploy phase.
>
> <plugin>
> <artifactId>maven-deploy-plugin</artifactId>
> <executions>
> <execution>
> <id>send-to-second-repo</id>
> <phase>deploy</phase>
> <goals>
> <goal>deploy</goal>
> </goals>
> <configuration>
> <*altDeploymentRepository>*....</<*altDeploymentRepository>*
> </configuration>
> </execution>
> <execution>
> <id>send-to-third-repo</id>
> <phase>deploy</phase>
> <goals>
> <goal>deploy</goal>
> </goals>
> <configuration>
> <*altDeploymentRepository>*....</<*altDeploymentRepository>*
> </configuration>
> </execution>
> </executions>
> </plugin>
>
>
> 2009/9/3 Caner Kaplıca <[email protected]>
>
>> 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--tp25271071p25292662.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]