blob: 0531ee0dfc387cf8101c1cc9829a77c06eedd918 [file] [log] [blame]
<?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
https://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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>25</version>
</parent>
<groupId>org.apache.maven.skins.its</groupId>
<artifactId>@project.artifactId@</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>@project.artifactId@ IT</name>
<description>
PLC4X is an effort to create a universal library for accessing industrial programmable logic controllers
using a variety of protocols using a uniform API.
</description>
<url>https://plc4x.apache.org</url>
<inceptionYear>2017</inceptionYear>
<scm>
<connection>scm:git:https://gitbox.apache.org/repos/asf/plc4x.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/plc4x.git</developerConnection>
<url>https://github.com/apache/plc4x</url>
<tag>HEAD</tag>
</scm>
<!-- Only configure the site distribution as the rest is handled by the apache parent -->
<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:git:https://gitbox.apache.org/repos/asf/plc4x-website.git</url>
</site>
</distributionManagement>
<issueManagement>
<system>Jira</system>
<url>https://issues.apache.org/jira/browse/PLC4X</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>Apache PLC4X Developer List</name>
<subscribe>mailto:dev-subscribe@plc4x.apache.org</subscribe>
<unsubscribe>mailto:dev-unsubscribe@plc4x.apache.org</unsubscribe>
<post>mailto:dev@plc4x.apache.org</post>
<archive>https://mail-archives.apache.org/mod_mbox/plc4x-dev/</archive>
</mailingList>
<mailingList>
<name>PLC4X Commits List</name>
<subscribe>mailto:commit-subscribe@plc4x.apache.org</subscribe>
<unsubscribe>mailto:commits-unsubscribe@plc4x.apache.org</unsubscribe>
<post>mailto:commits@plc4x.apache.org</post>
<archive>https://mail-archives.apache.org/mod_mbox/plc4x-commits/</archive>
</mailingList>
<mailingList>
<name>PLC4X Jira Notifications List</name>
<subscribe>mailto:issues-subscribe@plc4x.apache.org</subscribe>
<unsubscribe>mailto:issues-unsubscribe@plc4x.apache.org</unsubscribe>
<post>mailto:issues@plc4x.apache.org</post>
<archive>https://mail-archives.apache.org/mod_mbox/plc4x-issues/</archive>
</mailingList>
</mailingLists>
<properties>
<skinName>@project.name@</skinName>
<skinGroupId>@project.groupId@</skinGroupId>
<skinArtifactId>@project.artifactId@</skinArtifactId>
<skinVersion>@project.version@</skinVersion>
<!--
At least 3.3.3 required for camel-package-maven-plugin
-->
<maven.version>3.3.3</maven.version>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputencoding>UTF-8</project.reporting.outputencoding>
<!-- Site properties -->
<!-- Please check out these default skins: https://github.com/darshandsoni/asciidoctor-skins/tree/gh-pages/css -->
<asciidoctor-theme>asciidoctor</asciidoctor-theme>
<!--asciidoctor-theme>boot-cyborg</asciidoctor-theme-->
<asciidoctor.maven.plugin.version>2.0.0-RC.1</asciidoctor.maven.plugin.version>
<asciidoctorj.version>2.5.5</asciidoctorj.version>
<asciidoctorj.diagram.version>2.2.3</asciidoctorj.diagram.version>
<reflow.skin.version>1.5.0</reflow.skin.version>
<bootstrap.version>3.3.7</bootstrap.version>
<jquery.version>3.3.1</jquery.version>
<anchorjs.version>3.2.2</anchorjs.version>
<fontawesome.version>5.2.0</fontawesome.version>
</properties>
<build>
<plugins>
<!-- Make some additional properties available to simplify keeping some content up to date -->
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<executions>
<!-- Set some dynamic variables which are useful for the site generation -->
<execution>
<id>provide-custom-properties</id>
<phase>pre-site</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
print "\nCalculating some additional properties:"
// Get the current year
def currentYear = Calendar.getInstance().get(Calendar.YEAR) as String
print "\nCurrent year: " + currentYear
project.properties['current-year'] = currentYear
// Calculate some version related stuff
def currentVersion = project.version as String
def match = (currentVersion =~ /(\d+)\.(\d+)\.(\d+)(-SNAPSHOT)?/)
print "\nCurrent version: " + currentVersion
if(match.count &gt;= 1) {
def majorVersion = match[0][1] as Integer
def minorVersion = match[0][2] as Integer
def bugfixVersion = match[0][3] as Integer
def currentFullVersion = majorVersion + "." + minorVersion + "." + bugfixVersion
def currentShortVersion = majorVersion + "." + minorVersion
def currentNextIncrementalVersion = majorVersion + "." + minorVersion + "." + (bugfixVersion + 1)
def currentNextMinorVersion = majorVersion + "." + (minorVersion + 1) + ".0"
print "\nCurrent full version: " + currentFullVersion + " (current-full-version)"
project.properties['current-full-version'] = currentFullVersion
print "\nCurrent short version: " + currentShortVersion + " (current-short-version)"
project.properties['current-short-version'] = currentShortVersion
print "\nCurrent next incremental version: " + currentNextIncrementalVersion + " (current-next-incremental-version)"
project.properties['current-next-incremental-version'] = currentNextIncrementalVersion
print "\nCurrent next minor version: " + currentNextMinorVersion + " (current-next-minor-version)"
project.properties['current-next-minor-version'] = currentNextMinorVersion
}
print "\n"
</source>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.10.5</version>
</dependency>
</dependencies>
</plugin>
<!-- Write all the properties into a file so we can access them from asciidoctor -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>write-project-properties</goal>
</goals>
<configuration>
<outputFile>${project.build.directory}/pom.adoc</outputFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Download a set of different themes -->
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>get-fontawesome</id>
<!-- Only execute this for the parent module -->
<inherited>false</inherited>
<phase>pre-site</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/darshandsoni/asciidoctor-skins/archive/gh-pages.zip</url>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/dependency</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-site-themes</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site/css/themes</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/dependency/asciidoctor-skins-gh-pages/css</directory>
<includes>
<include>*.css</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.1.1</version>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
</plugin>
<!-- Configure the Site generation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M3</version>
<configuration>
<!--templateFile>${session.executionRootDirectory}/src/site/template/site.vm</templateFile-->
<generateReports>true</generateReports>
<generateSitemap>true</generateSitemap>
<relativizeDecorationLinks>false</relativizeDecorationLinks>
<locales>en</locales>
<inputEncoding>${project.build.sourceEncoding}</inputEncoding>
<outputEncoding>${project.reporting.outputencoding}</outputEncoding>
<!--
IntelliJ can't find the asciidoc config option in the site plugin, which is correct.
However this config section is used by the asciidoctor site plugin extension. So plead
ignore this error, it's actually ok.
-->
<asciidoc>
<attributes>
<source-highlighter>prettify</source-highlighter>
<imagesoutdir>${project.build.directory}/site/images</imagesoutdir>
<pom-adoc>${project.build.directory}/pom.adoc</pom-adoc>
</attributes>
<requires>
<require>asciidoctor-diagram</require>
</requires>
</asciidoc>
</configuration>
<dependencies>
<!-- All dependencies needed by the reflow skin -->
<dependency>
<groupId>io.github.devacfr.maven.skins</groupId>
<artifactId>reflow-velocity-tools</artifactId>
<version>${reflow.skin.version}</version>
</dependency>
<!-- add support for scm/git site deployment -->
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-scm</artifactId>
<version>2.12</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-api</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-manager-plexus</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.5</version>
</dependency>
<!-- Add support for asciidoctor -->
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram</artifactId>
<version>${asciidoctorj.diagram.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- Make Snapshots of Apache projects available -->
<repositories>
<repository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- Make Snapshots of Apache plugins available -->
<pluginRepositories>
<pluginRepository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>