| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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"> |
| <parent> |
| <artifactId>winegrower</artifactId> |
| <groupId>org.apache.winegrower</groupId> |
| <version>1.0.1-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>winegrower-documentation</artifactId> |
| <name>Apache Winegrower :: Documentation</name> |
| |
| <properties> |
| <documentation.theme.url>scm:git:https://github.com/apache/karaf-decanter.git</documentation.theme.url> |
| <groovy.version>3.0.5</groovy.version> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-scm-plugin</artifactId> |
| <version>1.11.1</version> |
| <executions> |
| <execution> |
| <id>clone-theme</id> |
| <phase>pre-site</phase> |
| <goals> |
| <goal>checkout</goal> |
| </goals> |
| <configuration> |
| <checkoutDirectory>${project.basedir}/.asciidoctor/theme</checkoutDirectory> |
| <connectionUrl>${documentation.theme.url}</connectionUrl> |
| <developerConnectionUrl>${documentation.theme.url}</developerConnectionUrl> |
| <tagBase>decanter-2.5.0</tagBase> |
| <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.gmavenplus</groupId> |
| <artifactId>gmavenplus-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <id>render</id> |
| <phase>pre-site</phase> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| <configuration> |
| <scripts> |
| <script>${project.basedir}/src/build/Documentation.groovy</script> |
| </scripts> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>groovy-all</artifactId> |
| <version>${groovy.version}</version> |
| <type>pom</type> |
| </dependency> |
| <dependency> |
| <groupId>org.asciidoctor</groupId> |
| <artifactId>asciidoctorj</artifactId> |
| <version>2.4.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jgit</groupId> |
| <artifactId>org.eclipse.jgit</artifactId> |
| <version>5.8.1.202007141445-r</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>gh-pages</id> |
| |
| <properties> |
| <github.serverId>winegrower-github</github.serverId> |
| <winegrower.documentation.publish>true</winegrower.documentation.publish> |
| </properties> |
| |
| <!-- once hosted @apache |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-scm-publish-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <id>scm-publish</id> |
| <phase>site-deploy</phase> |
| <goals> |
| <goal>publish-scm</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <content>${project.build.directory}/documentation</content> |
| <pubScmUrl>scm:git:${project.scm.connection}</pubScmUrl> |
| <scmBranch>gh-pages</scmBranch> |
| <tryUpdate>true</tryUpdate> |
| <checkoutDirectory>${project.parent.basedir}/.site-content</checkoutDirectory> |
| <serverId>${github.serverId}</serverId> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| --> |
| </profile> |
| </profiles> |
| |
| <!-- not really a delivery --> |
| <distributionManagement> |
| <repository> |
| <id>localhost</id> |
| <url>file://${project.basedir}/target/repo/</url> |
| </repository> |
| <snapshotRepository> |
| <id>localhost</id> |
| <url>file://${project.basedir}/target/snapshot-repo/</url> |
| </snapshotRepository> |
| </distributionManagement> |
| </project> |