blueocean-plugin/blueocean-web/pom.xml

79 lines
3.1 KiB
XML

<?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>
<parent>
<groupId>io.jenkins.blueocean</groupId>
<artifactId>blueocean-parent</artifactId>
<version>1.0-alpha-7-SNAPSHOT</version>
</parent>
<artifactId>blueocean-web</artifactId>
<packaging>hpi</packaging>
<name>BlueOcean :: Web module</name>
<url>https://wiki.jenkins-ci.org/display/JENKINS/Blue+Ocean+Plugin</url>
<dependencies>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>metrics</artifactId>
<version>3.0.9</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>variant</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>InjectedTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
</executions>
<configuration>
<source>
def plugins = new File(basedir, 'work/plugins');
plugins.mkdirs();
def blueoceanPlugins = ["blueocean-commons","blueocean-rest","blueocean-plugin"]
for (a in blueoceanPlugins) {
def name = a + ".hpi";
def p = new File(basedir, "../" + a + "/target/"+ name);
ant.copy(file: p, tofile: new File(plugins,name), overwrite: true, verbose: true);
}
</source>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>