com.io7m.cedarbridge.specification
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.io7m.cedarbridge</groupId> <artifactId>com.io7m.cedarbridge.specification</artifactId> <version>2.0.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 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> <artifactId>com.io7m.cedarbridge</artifactId> <groupId>com.io7m.cedarbridge</groupId> <version>2.0.0</version> </parent> <artifactId>com.io7m.cedarbridge.specification</artifactId> <packaging>jar</packaging> <name>com.io7m.cedarbridge.specification</name> <description>Cedarbridge message protocol (Language specification)</description> <url>https://www.io7m.com/software/cedarbridge</url> <properties> <mdep.analyze.skip>true</mdep.analyze.skip> </properties> <dependencies> <dependency> <groupId>com.io7m.primogenitor</groupId> <artifactId>com.io7m.primogenitor.support</artifactId> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.annotation.versioning</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.annotation.bundle</artifactId> <scope>provided</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> <!-- Copy specification resources into build directory --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-specification-resources</id> <goals> <goal>copy-resources</goal> </goals> <phase>generate-resources</phase> <configuration> <outputDirectory>${project.build.directory}/specification/</outputDirectory> <resources> <resource> <directory>src/main/resources/com/io7m/cedarbridge/specification/</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> <execution> <id>copy-specification-resources-epub</id> <goals> <goal>copy-resources</goal> </goals> <phase>generate-resources</phase> <configuration> <outputDirectory>${project.build.directory}/epub/</outputDirectory> <resources> <resource> <directory>src/main/resources/com/io7m/cedarbridge/specification/</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> <execution> <id>copy-generated-epub</id> <phase>site</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.parent.build.directory}/minisite/specification/</outputDirectory> <resources> <resource> <directory>${project.build.directory}/epub/</directory> <includes> <include>specification.epub</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <!-- Generate documentation in various formats. --> <plugin> <groupId>com.io7m.xstructural</groupId> <artifactId>com.io7m.xstructural.maven_plugin</artifactId> <version>${com.io7m.xstructural.version}</version> <executions> <execution> <id>xhtml-single</id> <phase>package</phase> <goals> <goal>xhtml-single</goal> </goals> <configuration> <brandingFile>${project.build.directory}/specification/brand.xml</brandingFile> <sourceFile>${project.build.directory}/specification/main.xml</sourceFile> <outputDirectory>${project.build.directory}/specification</outputDirectory> </configuration> </execution> <execution> <id>xhtml-multi</id> <phase>package</phase> <goals> <goal>xhtml-multi</goal> </goals> <configuration> <brandingFile>${project.build.directory}/specification/brand.xml</brandingFile> <sourceFile>${project.build.directory}/specification/main.xml</sourceFile> <outputDirectory>${project.build.directory}/specification</outputDirectory> </configuration> </execution> <execution> <id>epub</id> <phase>package</phase> <goals> <goal>epub</goal> </goals> <configuration> <brandingFile>${project.build.directory}/specification/brand.xml</brandingFile> <sourceFile>${project.build.directory}/specification/main.xml</sourceFile> <outputDirectory>${project.build.directory}/epub</outputDirectory> <outputFileName>specification.epub</outputFileName> </configuration> </execution> </executions> </plugin> <!-- Produce specification archive --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptors> <descriptor>src/main/assembly/specification.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <appendAssemblyId>false</appendAssemblyId> </configuration> </execution> </executions> </plugin> <!-- Unpack the specification archive to the parent's generated site minisite directory. --> <!-- This is arguably abusive, but there appears to be no other way to achieve it. --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>truezip-maven-plugin</artifactId> <inherited>false</inherited> <executions> <execution> <id>copy-site-specification</id> <goals> <goal>copy</goal> </goals> <phase>site</phase> <configuration> <verbose>true</verbose> <fileset> <directory>${project.build.directory}/${project.name}-${project.version}.zip/${project.name}-${project.version}/</directory> <outputDirectory>${project.parent.build.directory}/minisite/specification/</outputDirectory> </fileset> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>