openesb-components/ojc-core/encodersl/encoder-hl7/pom.xml

174 lines
8.2 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<!--
# BEGIN_HEADER - DO NOT EDIT
#
# The contents of this file are subject to the terms
# of the Common Development and Distribution License
# (the "License"). You may not use this file except
# in compliance with the License.
#
# You can obtain a copy of the license at
# https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
# See the License for the specific language governing
# permissions and limitations under the License.
#
# When distributing Covered Code, include this CDDL
# HEADER in each file and include the License file at
# https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
# If applicable add the following below this CDDL HEADER,
# with the fields enclosed by brackets "[]" replaced with
# your own identifying information: Portions Copyright
# [year] [name of copyright owner]
-->
<!--
# @(#)pom.xml
# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
#
# END_HEADER - DO NOT EDIT
-->
<project>
<parent>
<artifactId>build-common</artifactId>
<groupId>open-jbi-components</groupId>
<version>1.1</version>
<relativePath>../../build-common</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>open-jbi-components</groupId>
<artifactId>encoder-hl7</artifactId>
<name>encoder-hl7</name>
<version>${encodersl.artifact.version}</version>
<description>hl7 encoder description</description>
<build>
<testResources>
<testResource>
<directory>test</directory>
<excludes>
<!--
! need to replace the @variables@ in the .wsdl and .xml files
-->
<exclude>**/*.java</exclude>
<exclude>**/*.ref</exclude>
<exclude>**/.*</exclude>
<exclude>**/*.wsdl</exclude>
<exclude>**/*.pom</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>${project.artifactId}-substitute-ant-variables</id>
<phase>process-test-resources</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<property name="project.build.directory" value="${project.build.directory}" />
<property name="project.build.testSourceDirectory" value="${project.build.testSourceDirectory}" />
<property name="SRCROOT" value="${SRCROOT}" />
<!-- create global filter rules: -->
<echo file="${project.build.directory}/filter" append="false">
SRCROOT=${SRCROOT}
alaska_root=${SRCROOT}/ojc-core
alaska_sharedlibrary=${SRCROOT}/ojc-core/component-common
asadmin_cmd=bin/asadmin
asant_cmd=bin/asant
drivertest_dir=${SRCROOT}/ojc-core/driver-tests
encoder_sharedlibrary=${SRCROOT}/ojc-core/encodersl/encoder-
shell_cmd=sh
jbicomps_home=${SRCROOT}/ojc-core
tempdir=/tmp
</echo>
<filter filtersfile="${project.build.directory}/filter" />
<copy todir="${project.build.directory}/test" overwrite="true" filtering="true" verbose="true" failonerror="false" >
<fileset dir="${project.build.testSourceDirectory}">
<include name="**/*.wsdl" />
<include name="**/*.properties" />
</fileset>
</copy>
<copy todir="${project.build.directory}/test" overwrite="true" filtering="false" verbose="true" failonerror="false" >
<fileset dir="${project.build.testSourceDirectory}">
<include name="**/*.xml" />
</fileset>
</copy>
</tasks>
</configuration>
</execution>
<execution>
<id>${project.artifactId}-run-junit-and-derby-via-ant</id>
<phase>test</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<property name="derbylibs" value="${JV_GFBASE}/javadb/lib" />
<property name="derbydb" value="${project.build.directory}/javadb" />
<patternset id="jbicomps.junit.test.patternset" >
<include name="**/*Test.java"/>
</patternset>
<!-- invoke derby and junit via ant -->
<ant antfile="${SRCROOT}/global-common/m2.ant"
dir="${project.build.sourceDirectory}/.." target="run_junit_and_derby" >
<property name="maven.junit.jvmargs" value="-Xmx512m" />
<property name="maven.test.skip" value="${maven.test.skip}" />
<property name="maven.repo.local" value="${maven.repo.local}" />
<property name="project.artifactId" value="${project.artifactId}" />
<property name="project.build.directory" value="${project.build.directory}" />
<property name="project.build.testSourceDirectory" value="${project.build.testSourceDirectory}" />
<property name="work.dir" value="${project.build.directory}" />
<property name="derbylibs" value="${derbylibs}" />
<property name="derbydb" value="${derbydb}" />
<!-- no junit system properties are needed: -->
<propertyset id="jbicomps.junit.sysproperties" />
<reference refid="maven.test.classpath"/>
<reference refid="jbicomps.junit.sysproperties"/>
<reference refid="jbicomps.junit.test.patternset"/>
</ant>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>open-jbi-components</groupId>
<artifactId>encoder-fw</artifactId>
</dependency>
<dependency>
<groupId>open-jbi-components</groupId>
<artifactId>hl7encoder-xsdextension</artifactId>
<version>${encodersl.artifact.version}</version>
</dependency>
<dependency>
<groupId>xmlbeans</groupId>
<artifactId>xbean</artifactId>
</dependency>
<!-- TEST DEPENDENCIES-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>