Hi,
i'm trying to create one profile that will change one of it's param values
based on the OS.
here is the profile: (used for deploying rpm to yum repository)
<profile>
<id>rpm</id>
<build>
<plugins>
<plugin>
<!-- deploy rpm to center yum repo during deploy phase - for
noarch rpms -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<executions>
<execution>
<id>deploy-remote-rpm</id>
<phase>deploy</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>target/rpm/${project.artifactId}/RPMS/noarch</fromDir>
<includes>*.rpm</includes>
<url>scp://yumrepo.company.com</url>
<toDir>/ctcfgroot/stable/src/all/${project.artifactId}</toDir>
-> if the OS is fedora 12, the dir should be /ctcfgroot/*stable-fc12*
/src.....
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-remote-yum-repo</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>ssh</executable>
<arguments>
<argument>${remoteYumRepo}</argument>
<argument>cd /ctcfgroot/stable;make</argument> -> if the OS
is fedora 12, the dir should be /ctcfgroot/*stable-fc12*/
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
any ideas?
--
Eyal Edri