mirror of https://github.com/apache/nifi.git
122 lines
6.2 KiB
XML
122 lines
6.2 KiB
XML
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.apache.nifi</groupId>
|
|
<artifactId>nifi</artifactId>
|
|
<version>1.12.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>nifi-api</artifactId>
|
|
<packaging>jar</packaging>
|
|
<!-- This module should kept to having no dependencies -->
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<!-- https://github.com/git-commit-id/maven-git-commit-id-plugin -->
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>4.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>revision</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<!-- This is the same as the default date time format of this plugin. -->
|
|
<!-- Because we want to parse the result we are fixing it to avoid problems. -->
|
|
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
<artifactId>replacer</artifactId>
|
|
<version>1.5.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>Generate NifiBuildProperties Java class</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>replace</goal>
|
|
</goals>
|
|
<configuration>
|
|
<file>${project.basedir}/src/main/code-gen/NifiBuildProperties.java.template</file>
|
|
<outputFile>${project.build.directory}/generated-sources/java/org/apache/nifi/build/NifiBuildProperties.java</outputFile>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<replacements>
|
|
<replacement>
|
|
<token>#maven.build.timestamp#</token>
|
|
<value>${maven.build.timestamp}</value>
|
|
</replacement>
|
|
|
|
<replacement>
|
|
<token>#project.version#</token>
|
|
<value>${project.version}</value>
|
|
</replacement>
|
|
|
|
<replacement><token>#git.branch#</token><value>${git.branch}</value></replacement>
|
|
<replacement><token>#git.build.number#</token><value>${git.build.number}</value></replacement>
|
|
<replacement><token>#git.build.number.unique#</token><value>${git.build.number.unique}</value></replacement>
|
|
<replacement><token>#git.build.time#</token><value>${git.build.time}</value></replacement>
|
|
<replacement><token>#git.build.version#</token><value>${git.build.version}</value></replacement>
|
|
<replacement><token>#git.closest.tag.commit.count#</token><value>${git.closest.tag.commit.count}</value></replacement>
|
|
<replacement><token>#git.closest.tag.name#</token><value>${git.closest.tag.name}</value></replacement>
|
|
<replacement><token>#git.commit.id#</token><value>${git.commit.id}</value></replacement>
|
|
<replacement><token>#git.commit.id.abbrev#</token><value>${git.commit.id.abbrev}</value></replacement>
|
|
<replacement><token>#git.commit.id.describe#</token><value>${git.commit.id.describe}</value></replacement>
|
|
<replacement><token>#git.commit.id.describe-short#</token><value>${git.commit.id.describe-short}</value></replacement>
|
|
<replacement><token>#git.commit.time#</token><value>${git.commit.time}</value></replacement>
|
|
<replacement><token>#git.dirty#</token><value>${git.dirty}</value></replacement>
|
|
<replacement><token>#git.total.commit.count#</token><value>${git.total.commit.count}</value></replacement>
|
|
|
|
</replacements>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>${project.build.directory}/generated-sources/java/</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project>
|