exist
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.exist-db</groupId>
<artifactId>exist</artifactId>
<version>7.0.0-beta3</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
eXist-db Open Source Native XML Database
Copyright (C) 2001 The eXist-db Authors
info@exist-db.org
http://www.exist-db.org
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-->
<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.exist-db</groupId>
<artifactId>exist-parent</artifactId>
<version>7.0.0-beta3</version>
<relativePath>exist-parent</relativePath>
</parent>
<artifactId>exist</artifactId>
<packaging>pom</packaging>
<name>eXist-db</name>
<description>eXist-db multi-module project</description>
<modules>
<module>exist-parent</module>
<module>exist-ant</module>
<module>exist-core</module>
<module>exist-distribution</module>
<module>exist-jetty-config</module>
<module>exist-samples</module>
<module>exist-service</module>
<module>exist-start</module>
<module>extensions</module>
<module>exist-xqts</module>
</modules>
<scm>
<connection>scm:git:https://github.com/exist-db/exist.git</connection>
<developerConnection>scm:git:https://github.com/exist-db/exist.git</developerConnection>
<url>scm:git:https://github.com/exist-db/exist.git</url>
<tag>HEAD</tag>
</scm>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- === Build umbrella profiles === -->
<profile>
<!-- Default contributor build: compiles, tests, produces a runnable distribution dir.
Does NOT build installer or perf modules. -->
<id>local-build</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<!-- Full release build: adds exist-installer to the reactor and (via exist-parent's
release-build profile) enables GPG signing + Central publishing. -->
<id>release-build</id>
<modules>
<module>exist-installer</module>
</modules>
</profile>
<!-- === End Build umbrella profiles === -->
<profile>
<id>docker</id>
<activation>
<property>
<name>docker</name>
<value>true</value>
</property>
</activation>
<modules>
<module>exist-docker</module>
</modules>
</profile>
<profile>
<!-- Stress tests + JMH micro-benchmarks. -->
<id>perf-tests</id>
<modules>
<module>exist-core-jcstress</module>
<module>exist-core-jmh</module>
<module>exist-indexes-jmh</module>
</modules>
</profile>
<profile>
<id>citation-release-metadata</id>
<activation>
<property>
<name>updateCff</name>
<value>true</value>
</property>
</activation>
<properties>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>require-release-version-for-citation-update</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>project.version</property>
<regex>^(?!.*-SNAPSHOT$).+$</regex>
<regexMessage>The citation-release-metadata profile can only run for release versions (non-SNAPSHOT).</regexMessage>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!--
git-commit-id-maven-plugin already sets git.commit.id, but Ant replaceregexp's
replace= attribute is not re-interpolated with those runtime Maven properties
before Ant applies it (literal ${git.commit.id} can end up in CITATION.cff).
Export commitLine from Ant (git rev-parse) then use ${commitLine} in a second execution.
-->
<execution>
<id>citation-cff-resolve-commit</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<exportAntProperties>true</exportAntProperties>
<target>
<mkdir dir="${project.build.directory}"/>
<exec executable="git" dir="${project.basedir}" failonerror="true" output="${project.build.directory}/cff-commit.tmp">
<arg value="rev-parse"/>
<arg value="HEAD"/>
</exec>
<replaceregexp file="${project.build.directory}/cff-commit.tmp"
match="^([0-9a-f]{7,40})\s*$"
replace="\1"
byline="true"/>
<loadfile property="cff.head" srcFile="${project.build.directory}/cff-commit.tmp" encoding="UTF-8">
<filterchain>
<striplinebreaks/>
</filterchain>
</loadfile>
<property name="commitLine" value="commit: ${cff.head}"/>
<delete file="${project.build.directory}/cff-commit.tmp" failonerror="false" quiet="true"/>
</target>
</configuration>
</execution>
<execution>
<id>update-citation-cff</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Guard against stale temp files left by interrupted text replacements -->
<delete failonerror="false" quiet="true">
<fileset dir="${project.basedir}" includes="tmp*tmp"/>
</delete>
<replaceregexp file="${project.basedir}/CITATION.cff"
match="^version:\s*.*$"
replace="version: ${project.version}"
byline="true"/>
<replaceregexp file="${project.basedir}/CITATION.cff"
match="^date-released:\s*.*$"
replace="date-released: '${maven.build.timestamp}'"
byline="true"/>
<replaceregexp file="${project.basedir}/CITATION.cff"
match="https://github\.com/eXist-db/exist/releases/tag/eXist-[^ '\"]+"
replace="https://github.com/eXist-db/exist/releases/tag/eXist-${project.version}"
byline="true"/>
<replaceregexp file="${project.basedir}/CITATION.cff"
match="^commit:\s*.*$"
replace="${commitLine}"
byline="true"/>
<delete failonerror="false" quiet="true">
<fileset dir="${project.basedir}" includes="tmp*tmp"/>
</delete>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>