Files
datawave/web-services/deploy/docs/pom.xml

135 lines
6.4 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>
<parent>
<groupId>gov.nsa.datawave.webservices</groupId>
<artifactId>datawave-ws-deploy-parent</artifactId>
<version>8.6.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-ws-deploy-docs</artifactId>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-docs</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>create-enunciate-directory</id>
<goals>
<goal>run</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<target>
<mkdir dir="${project.build.directory}/enunciate/enunciate" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-client-distributions</id>
<goals>
<goal>copy</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<overWriteIfNewer>true</overWriteIfNewer>
<outputDirectory>${project.build.directory}/client-dist/lib</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>gov.nsa.datawave.webservices</groupId>
<artifactId>datawave-ws-client</artifactId>
<version>${project.version}</version>
<classifier>dist</classifier>
<type>tar.gz</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>unpack-javadocs</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-docs</artifactId>
<version>${project.version}</version>
<classifier>javadoc</classifier>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/docs/javadocs</outputDirectory>
</configuration>
</execution>
<execution>
<id>unpack-apidocs</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-docs</artifactId>
<version>${project.version}</version>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/enunciate</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
<!-- Don't package any jars since this is just documentation -->
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${buildNumber}</Implementation-Build>
<Implementation-Timestamp>${timestamp}</Implementation-Timestamp>
</manifestEntries>
</archive>
<webResources combine.children="append">
<webResource>
<directory>docs</directory>
<filtering>true</filtering>
</webResource>
<webResource>
<directory>${project.build.directory}/docs</directory>
</webResource>
<webResource>
<directory>${project.build.directory}/enunciate/enunciate</directory>
</webResource>
<webResource>
<directory>${project.build.directory}/client-dist</directory>
</webResource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</project>