Hi,

I'm trying to configure the "hudson ci server" to retrieve a maven project
from the SCM and then build/test/install it on an integration server.

is it possible to tell maven that for a certain goal (e.g install remote) so
that the hudson will install it on a remote server?
(i can then run the 'post build task' plugin and run a shell script to
activate certain tests...).

right now i use 'copy-dependencies' and 'copy-resources' for installing a
project on the local machine (see POM below)

is there a way to it remotly?

thanks!

<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.company.url.unknowns</groupId>
  <artifactId>IncreasePriority</artifactId>
  <packaging>jar</packaging>
  <version>0.0.2</version>
  <name>IncreasePriority</name>
  <parent>
    <groupId>com.company.maven.pom</groupId>
    <artifactId>WebSecParent</artifactId>
    <version>0.0.2</version>
  </parent>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-dependencies</id>
            <phase>package</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <outputDirectory>/usr/lib/ctch/java/</outputDirectory>
              <overWriteReleases>true</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
              <overWriteIfNewer>true</overWriteIfNewer>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-conf</id>
            <phase>install</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>

<outputDirectory>/etc/ct-urlf-increase-priority/</outputDirectory>
              <resources>
                <resource>
                  <directory>src/main/resources</directory>
                  <filtering>true</filtering>
                  <includes>
                    <include>**/*.properties</include>
                  </includes>
                </resource>
              </resources>
            </configuration>
          </execution>
          <execution>
            <id>copy-cron</id>
            <phase>install</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>/etc/cron.d/</outputDirectory>
              <resources>
                <resource>
                  <directory>src/main/resources</directory>
                  <filtering>true</filtering>
                  <includes>
                    <include>**/*.cron</include>
                  </includes>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>

<outputDirectory>/usr/local/ct-urlf-increase-priority</outputDirectory>
          <archive>
            <manifest>

<mainClass>com.company.url.unknowns.IncreasePriority</mainClass>
              <addClasspath>true</addClasspath>
              <classpathPrefix>/usr/lib/ctch/java/</classpathPrefix>
            </manifest>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4.1</version>
    </dependency>
    <dependency>
      <groupId>com.company.sql</groupId>
      <artifactId>DbUtil</artifactId>
      <version>0.0.4</version>
    </dependency>
  </dependencies>
</project>


-- 
Eyal Edri

Reply via email to