2006-11-12 06:44:59 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
2007-04-14 17:50:17 -04:00
|
|
|
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
|
2018-10-02 08:32:32 -04:00
|
|
|
|
2006-11-12 06:44:59 -05:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2018-10-02 08:32:32 -04:00
|
|
|
|
2007-04-14 17:50:17 -04:00
|
|
|
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
|
2018-10-02 08:32:32 -04:00
|
|
|
under the License.
|
2006-11-12 06:44:59 -05:00
|
|
|
-->
|
2018-10-02 08:32:32 -04:00
|
|
|
<!--
|
|
|
|
Maven release plugin requires the project tag to be on a single line.
|
2008-06-11 12:48:56 -04:00
|
|
|
-->
|
|
|
|
<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/maven-v4_0_0.xsd">
|
2010-08-06 12:22:21 -04:00
|
|
|
|
2006-07-10 20:35:10 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2010-08-06 12:22:21 -04:00
|
|
|
|
2006-07-10 20:35:10 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2007-05-09 18:23:54 -04:00
|
|
|
<artifactId>openjpa-parent</artifactId>
|
2020-07-07 05:19:15 -04:00
|
|
|
<version>3.1.3-SNAPSHOT</version>
|
2006-07-10 20:35:10 -04:00
|
|
|
</parent>
|
2010-08-06 12:22:21 -04:00
|
|
|
|
|
|
|
<artifactId>openjpa-lib</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<name>OpenJPA Utilities Library</name>
|
|
|
|
<description>OpenJPA Utilities Library</description>
|
|
|
|
|
2020-03-15 04:59:45 -04:00
|
|
|
<properties>
|
|
|
|
<automatic-module-name>org.apache.openjpa.lib</automatic-module-name>
|
|
|
|
</properties>
|
2006-07-10 20:35:10 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-11-04 15:12:11 -04:00
|
|
|
|
|
|
|
<!-- for our switchable logging provider integration -->
|
2006-07-10 20:35:10 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>commons-logging</groupId>
|
|
|
|
<artifactId>commons-logging</artifactId>
|
2010-07-20 17:40:05 -04:00
|
|
|
<scope>provided</scope>
|
2006-07-10 20:35:10 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2018-10-18 01:38:31 -04:00
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-core</artifactId>
|
2009-05-21 10:34:08 -04:00
|
|
|
<scope>provided</scope>
|
2006-07-10 20:35:10 -04:00
|
|
|
</dependency>
|
2010-07-20 15:17:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2016-11-04 15:12:11 -04:00
|
|
|
|
2006-07-10 20:35:10 -04:00
|
|
|
<dependency>
|
2010-10-29 10:00:35 -04:00
|
|
|
<groupId>org.apache.ant</groupId>
|
2006-07-10 20:35:10 -04:00
|
|
|
<artifactId>ant</artifactId>
|
2008-12-19 06:36:13 -05:00
|
|
|
<scope>provided</scope>
|
2006-07-10 20:35:10 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2006-07-11 21:32:26 -04:00
|
|
|
<groupId>net.sourceforge.serp</groupId>
|
|
|
|
<artifactId>serp</artifactId>
|
2006-07-10 20:35:10 -04:00
|
|
|
</dependency>
|
2009-07-29 14:58:00 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
2016-09-21 11:43:11 -04:00
|
|
|
<artifactId>geronimo-validation_1.1_spec</artifactId>
|
2009-07-29 14:58:00 -04:00
|
|
|
<scope>provided</scope>
|
2018-10-02 08:32:32 -04:00
|
|
|
</dependency>
|
2006-07-10 20:35:10 -04:00
|
|
|
</dependencies>
|
2010-08-06 12:22:21 -04:00
|
|
|
|
2006-07-10 20:35:10 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2006-08-29 05:53:48 -04:00
|
|
|
<!--
|
2019-06-13 11:10:50 -04:00
|
|
|
get the git revision number and set it in the git.revision setting - disabled for now
|
|
|
|
since we need to be able to build from sources zip (when there is no .git/config)
|
2006-08-29 05:53:48 -04:00
|
|
|
-->
|
|
|
|
<plugin>
|
2009-02-04 10:12:58 -05:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2006-08-29 05:53:48 -04:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2018-10-02 08:32:32 -04:00
|
|
|
<executions>
|
2006-08-29 05:53:48 -04:00
|
|
|
<execution>
|
2019-06-13 11:10:50 -04:00
|
|
|
<id>set git version</id>
|
2006-09-29 17:48:29 -04:00
|
|
|
<phase>compile</phase>
|
2006-08-29 05:53:48 -04:00
|
|
|
<configuration>
|
2018-10-18 01:38:31 -04:00
|
|
|
<target>
|
2019-06-21 11:41:16 -04:00
|
|
|
<!-- SVN would have appended 'M' to the end of the revision number if there were
|
|
|
|
uncommitted changes. Git doesn't do that, so we have to work a bit to
|
|
|
|
emulate that behavior. -->
|
|
|
|
<echo>Determining if there are uncommitted changes...</echo>
|
|
|
|
<exec outputproperty="git.diff.exitval" resultproperty="diff.state" failonerror="false" failifexecutionfails="false" executable="git">
|
|
|
|
<arg line="diff --quiet HEAD" />
|
|
|
|
</exec>
|
|
|
|
<exec outputproperty="git.diff.cached.exitval" resultproperty="diff.state.cached" failonerror="false" failifexecutionfails="false" executable="git">
|
|
|
|
<arg line="diff --cached --quiet HEAD" />
|
|
|
|
</exec>
|
|
|
|
<condition property="uncommitted.changes" value="M" else="">
|
|
|
|
<or>
|
2020-02-14 06:12:01 -05:00
|
|
|
<equals arg1="${diff.state}" arg2="1" />
|
|
|
|
<equals arg1="${diff.state.cached}" arg2="1" />
|
2019-06-21 11:41:16 -04:00
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
|
2019-06-13 11:10:50 -04:00
|
|
|
<echo>Getting the 'GIT' revision value</echo>
|
|
|
|
<exec outputproperty="git.revision" failonerror="false" failifexecutionfails="false" executable="git">
|
2019-06-21 11:41:16 -04:00
|
|
|
<arg line="rev-parse --short=7 HEAD" />
|
2019-06-13 11:10:50 -04:00
|
|
|
</exec>
|
2019-06-21 11:41:16 -04:00
|
|
|
<echo>Revision: ${git.revision}${uncommitted.changes}</echo>
|
2006-08-29 05:53:48 -04:00
|
|
|
|
2019-06-13 11:10:50 -04:00
|
|
|
<echo>Getting the 'PCEnhancer' revision value</echo>
|
|
|
|
<exec outputproperty="pcenhancer.git.revision" failonerror="false" failifexecutionfails="false" executable="git" append="false">
|
2019-06-21 11:41:16 -04:00
|
|
|
<arg line="rev-parse --short=7 HEAD:./../openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java" />
|
2010-08-11 14:33:29 -04:00
|
|
|
</exec>
|
2019-06-21 11:41:16 -04:00
|
|
|
<echo>openjpa.enhancer.revision=${pcenhancer.git.revision}${uncommitted.changes}</echo>
|
2010-08-11 14:33:29 -04:00
|
|
|
|
2007-08-28 13:00:16 -04:00
|
|
|
<echo>OpenJPA version: ${project.version}</echo>
|
2019-06-13 11:10:50 -04:00
|
|
|
<condition property="outdir" value="${project.build.outputDirectory}" else="${java.io.tmpdir}/openjpamvntmp">
|
|
|
|
<available type="dir" file="${project.build.outputDirectory}" />
|
|
|
|
</condition>
|
2008-06-11 12:48:56 -04:00
|
|
|
<mkdir dir="${outdir}/META-INF" />
|
2019-06-13 11:10:50 -04:00
|
|
|
|
|
|
|
<echo file="${outdir}/META-INF/org.apache.openjpa.revision.properties">
|
2019-06-21 11:41:16 -04:00
|
|
|
revision.number=${git.revision}${uncommitted.changes}
|
2010-07-06 14:53:59 -04:00
|
|
|
openjpa.version=${project.version}
|
2019-06-21 11:41:16 -04:00
|
|
|
openjpa.enhancer.revision=${pcenhancer.git.revision}${uncommitted.changes}
|
2019-06-13 11:10:50 -04:00
|
|
|
</echo>
|
2018-10-18 01:38:31 -04:00
|
|
|
</target>
|
2006-08-29 05:53:48 -04:00
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2006-07-10 20:35:10 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2006-06-28 15:46:13 -04:00
|
|
|
</project>
|