onedev/product/pom.xml
2017-02-19 14:11:04 +08:00

142 lines
6.8 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>server-product</artifactId>
<name>GitPlex</name>
<parent>
<groupId>com.gitplex</groupId>
<artifactId>server-parent</artifactId>
<version>1.0-EAP-build26</version>
</parent>
<build>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
project.properties["lowerCaseProductName"] = project.name.toLowerCase()
def wikiSpace = "GP" + project.version.find(/\d+\.\d+/).replace('.', '')
project.properties["docLink"] = "http://wiki.pmease.com/display/" + wikiSpace
</source>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.gitplex</groupId>
<artifactId>plugin-maven</artifactId>
<executions>
<execution>
<id>copy-product-resources</id>
<phase>compile</phase>
<goals>
<goal>run-ant</goal>
</goals>
<configuration>
<target>
<copy todir="${project.build.directory}/sandbox">
<fileset dir="system" excludes="site/images/**, site/avatars/**, **/*.keystore, **/*.jar"/>
<filterset>
<filter token="productName" value="${project.name}"/>
<filter token="lowerCaseProductName" value="${lowerCaseProductName}"/>
<filter token="docLink" value="${docLink}"/>
</filterset>
</copy>
<copy todir="${project.build.directory}/sandbox">
<fileset dir="system" includes="site/images/**, site/avatars/**, **/*.keystore, **/*.jar"/>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>prepare-package</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<taskdef name="gant" classname="org.codehaus.gant.ant.Gant"/>
<gant file="build/prepare_package.gant">
<definition name="buildDirectory" value="${project.build.directory}"/>
<definition name="outputDirectory" value="${project.build.outputDirectory}"/>
<definition name="jswPath" value="${basedir}/build/jsw"/>
<definition name="productName" value="${project.name}"/>
<definition name="lowerCaseProductName" value="${lowerCaseProductName}"/>
<definition name="bootstrapClass" value="${bootstrapClass}"/>
</gant>
</target>
</configuration>
</execution>
<execution>
<id>package</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<taskdef name="gant" classname="org.codehaus.gant.ant.Gant"/>
<gant file="build/package.gant">
<definition name="buildDirectory" value="${project.build.directory}"/>
<definition name="executables" value="${executables}"/>
<definition name="packageName" value="${lowerCaseProductName}-${project.version}"/>
</gant>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.gitplex</groupId>
<artifactId>server-core</artifactId>
<version>1.0-EAP-build26</version>
</dependency>
<dependency>
<groupId>com.gitplex</groupId>
<artifactId>server-web</artifactId>
<version>1.0-EAP-build26</version>
</dependency>
<dependency>
<groupId>com.gitplex</groupId>
<artifactId>server-rest</artifactId>
<version>1.0-EAP-build26</version>
</dependency>
<dependency>
<groupId>com.gitplex</groupId>
<artifactId>server-search</artifactId>
<version>1.0-EAP-build26</version>
</dependency>
</dependencies>
<properties>
<executables>bin/*.sh, boot/wrapper-*</executables>
<bootstrapClass>com.gitplex.launcher.bootstrap.Bootstrap</bootstrapClass>
<moduleClass>com.gitplex.server.product.ProductModule</moduleClass>
<aggregation>true</aggregation>
</properties>
</project>