openesb-components/ojc-core/iepse/iepcore/pom.xml

182 lines
8.3 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>iepcore</artifactId>
<name>iepcore</name>
<version>${iepse.artifact.version}</version>
<description>iepcore description</description>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>${project.artifactId}-secondary-jar</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="SET-UP ${SECONDARY_ARTIFACT_ID} package..." />
<!-- copy the classes we want in the secondary jar: -->
<delete dir="${project.build.directory}/${SECONDARY_ARTIFACT_ID}" />
<mkdir dir="${project.build.directory}/${SECONDARY_ARTIFACT_ID}" />
<echo message="Creating ${SECONDARY_ARTIFACT_ID}.jar." />
<copy todir="${project.build.directory}/${SECONDARY_ARTIFACT_ID}">
<fileset dir="${project.build.outputDirectory}">
<include name="com/sun/jbi/engine/iep/core/derby/*.class" />
<include name="com/sun/jbi/engine/iep/core/runtime/operator/OperatorConstants.class" />
<include name="com/sun/jbi/engine/iep/core/share/SharedConstants.class" />
</fileset>
</copy>
</tasks>
</configuration>
</execution>
<execution>
<id>${project.artifactId}-primary-trim</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- re-jar the classes we want in the primary jar: -->
<delete file="${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}" />
<jar jarfile="${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}" >
<fileset dir="${project.build.outputDirectory}">
<include name="**/*.class" />
<include name="**/*.properties" />
<include name="**/*.xml" />
<exclude name="com/sun/jbi/engine/iep/core/derby/**/*.class" />
<exclude name="com/sun/jbi/engine/iep/core/runtime/client/**/*.class" />
<exclude name="com/sun/jbi/engine/iep/core/runtime/client/**/*.properties" />
</fileset>
</jar>
</tasks>
</configuration>
</execution>
<execution>
<id>${project.artifactId}-ant-junit</id>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<patternset id="jbicomps.junit.test.patternset" >
<include name="**/*Test.java"/>
</patternset>
<ant antfile="${SRCROOT}/global-common/m2.ant"
dir="${project.build.sourceDirectory}/.." target="run_junit" >
<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}" />
<!-- 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-jar-plugin</artifactId>
<executions>
<execution>
<id>${project.artifactId}-secondary-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classesDirectory>${project.build.directory}/${SECONDARY_ARTIFACT_ID}</classesDirectory>
<classifier>${SECONDARY_ARTIFACT_ID}</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>open-jbi-components</groupId>
<artifactId>componentsl</artifactId>
</dependency>
<dependency>
<groupId>jbicompsplatform</groupId>
<artifactId>compileconf</artifactId>
</dependency>
<!-- TEST DEPENDENCIES-->
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<scope>test</scope>
</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>
<properties>
<SECONDARY_ARTIFACT_ID>iepderby</SECONDARY_ARTIFACT_ID>
</properties>
</project>