ome-model-doc
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.openmicroscopy</groupId>
<artifactId>ome-model-doc</artifactId>
<version>6.3.6</version>
</dependency><?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>org.openmicroscopy</groupId>
<artifactId>ome-model</artifactId>
<version>6.3.6</version>
<relativePath>../..</relativePath>
</parent>
<groupId>org.openmicroscopy</groupId>
<version>6.3.6</version>
<artifactId>ome-model-doc</artifactId>
<packaging>pom</packaging>
<name>OME Model documentation</name>
<description>Documentation for the OME imaging metadata model specification and implementation.</description>
<url>https://docs.openmicroscopy.org/latest/ome-model/</url>
<inceptionYear>2006</inceptionYear>
<licenses>
<license>
<name>Simplified BSD License</name>
<url>https://opensource.org/licenses/BSD-2-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<sphinx_srcdir>${basedir}</sphinx_srcdir>
<sphinx_builddir>${project.build.directory}/sphinx</sphinx_builddir>
<model_version>${ome.model.schemaver}</model_version>
<sphinx.builder>html</sphinx.builder>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-configuration</id>
<!-- here the phase you need -->
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${sphinx_builddir}</outputDirectory>
<includeEmptyDirs>true</includeEmptyDirs>
<resources>
<resource>
<directory>${basedir}</directory>
<filtering>true</filtering>
<includes>
<include>conf.py</include>
</includes>
</resource>
<resource>
<directory>${basedir}/</directory>
<filtering>false</filtering>
<includes>
<include>_static/**</include>
</includes>
<excludes>
<exclude>_static/.*</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<!-- Generate the OME model object classes -->
<execution>
<id>sphinx-doc</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>sphinx-build</executable>
<arguments>
<argument>-D</argument>
<argument>release=${project.version}</argument>
<argument>-D</argument>
<argument>version=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}</argument>
<argument>-c</argument>
<argument>${sphinx_builddir}</argument>
<argument>-d</argument>
<argument>${sphinx_builddir}/cache</argument>
<argument>-b</argument>
<argument>${sphinx.builder}</argument>
<argument>-W</argument>
<argument>${basedir}</argument>
<argument>${sphinx_builddir}/${sphinx.builder}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Build javadocs by default, but not when running tests -->
<id>package-html</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>sphinx.builder</name>
<value>html</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
<executions>
<execution>
<id>make-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>