openesb-components/ojc-core/component-common/xmlbeans/pom.xml

109 lines
4.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>customized-xmlbeans</artifactId>
<name>xmlbeans-customized</name>
<version>${xmlbeans.artifact.version}</version>
<description>XmlBeans with some proprietary customization</description>
<build>
<resources>
<resource>
<directory>src</directory>
<excludes>
<!-- all classes & resources come from ant build: -->
<exclude>**/*.*</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>${project.artifactId}-prepare-sources</id>
<phase>generate-sources</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<unzip src="${basedir}/xbean-src/2.3.0/xmlbeans.zip"
dest="${project.build.directory}/xbean_unzip" overwrite="false"/>
<copy todir="${project.build.directory}/xbean_unzip" overwrite="true">
<fileset dir="${basedir}/modified"/>
</copy>
</tasks>
</configuration>
</execution>
<execution>
<id>${project.artifactId}-merge-build</id>
<phase>compile</phase>
<goals><goal>run</goal></goals>
<configuration>
<tasks>
<!-- run slightly modified ant script (m2.ant) to build the source dist from maven: -->
<ant dir="${project.build.directory}/xbean_unzip"
antfile="${project.build.directory}/xbean_unzip/m2.ant" >
<!-- pass plugin classpath for tools.jar -->
<reference refid="maven.plugin.classpath"></reference>
</ant>
<unjar src="${project.build.directory}/xbean_unzip/build/ar/xbean.jar"
dest="${project.build.outputDirectory}" overwrite="true"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>