Created
August 3, 2011 11:29
-
-
Save justinwyer/1122411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
~ JBoss, Home of Professional Open Source | |
~ Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors | |
~ as indicated by the @authors tag. All rights reserved. | |
~ See the copyright.txt in the distribution for a | |
~ full listing of individual contributors. | |
~ * | |
~ This copyrighted material is made available to anyone wishing to use, | |
~ modify, copy, or redistribute it subject to the terms and conditions | |
~ of the GNU Lesser General Public License, v. 2.1. | |
~ This program is distributed in the hope that it will be useful, but WITHOUT A | |
~ 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, | |
~ v.2.1 along with this distribution; 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/maven-v4_0_0.xsd"> | |
<parent> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-release</artifactId> | |
<version>0.2.0-SNAPSHOT</version> | |
<relativePath>../pom.xml</relativePath> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-release-as6</artifactId> | |
<version>0.2.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>SwitchYard: AS6 Distribution</name> | |
<description>SwitchYard AS6 Distribution</description> | |
<properties> | |
<version.jbossas>6.0.0.Final</version.jbossas> | |
<staging.dir>${project.build.directory}/staging</staging.dir> | |
<assembly.dir>${project.build.directory}/assembly</assembly.dir> | |
<as.root.dir>jboss-${version.jbossas}</as.root.dir> | |
<switchyard.root.dir>switchyard-as6-${distro.version}</switchyard.root.dir> | |
<camel.version>2.6.0</camel.version> | |
<commonman.version>1.0</commonman.version> | |
<drools.version>5.2.0.Final</drools.version> | |
<jbpm.version>5.1.0.Final</jbpm.version> | |
<version.mvel>2.1.Beta3</version.mvel> | |
<jdt.version>3.3.0-v_771</jdt.version> | |
<antlr-runtime.version>3.3</antlr-runtime.version> | |
<mina-core.version>2.0.1</mina-core.version> | |
</properties> | |
<build> | |
<plugins> | |
<!-- Copy the dependencies to target/dependency --> | |
<plugin> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>stage-jboss</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>copy</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.jboss.jbossas</groupId> | |
<artifactId>jboss-as-distribution</artifactId> | |
<version>${version.jbossas}</version> | |
<type>zip</type> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-as6-build</artifactId> | |
<version>${project.version}</version> | |
<type>zip</type> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard.components</groupId> | |
<artifactId>switchyard-component-bean</artifactId> | |
<version>${project.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard.components</groupId> | |
<artifactId>switchyard-component-soap</artifactId> | |
<version>${project.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard.components</groupId> | |
<artifactId>switchyard-component-camel</artifactId> | |
<version>${project.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard.components</groupId> | |
<artifactId>switchyard-component-camel-as6</artifactId> | |
<version>${project.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard.components</groupId> | |
<artifactId>switchyard-component-bpm</artifactId> | |
<version>${project.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-core</artifactId> | |
<version>${camel.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-spring</artifactId> | |
<version>${camel.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.fusesource.commonman</groupId> | |
<artifactId>commons-management</artifactId> | |
<version>${commonman.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.mvel</groupId> | |
<artifactId>mvel2</artifactId> | |
<version>${version.mvel}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.apache.mina</groupId> | |
<artifactId>mina-core</artifactId> | |
<version>${mina-core.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.antlr</groupId> | |
<artifactId>antlr-runtime</artifactId> | |
<version>${antlr-runtime.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.eclipse.jdt</groupId> | |
<artifactId>core</artifactId> | |
<version>${jdt.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.drools</groupId> | |
<artifactId>drools-compiler</artifactId> | |
<version>${drools.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.drools</groupId> | |
<artifactId>knowledge-api</artifactId> | |
<version>${drools.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.drools</groupId> | |
<artifactId>drools-core</artifactId> | |
<version>${drools.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.drools</groupId> | |
<artifactId>drools-persistence-jpa</artifactId> | |
<version>${drools.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-flow</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-flow-builder</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-persistence-jpa</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-bpmn2</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
<!-- | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-bam</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
--> | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-workitems</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-human-task</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
<!-- | |
<artifactItem> | |
<groupId>org.jbpm</groupId> | |
<artifactId>jbpm-gwt</artifactId> | |
<version>${jbpm.version}</version> | |
</artifactItem> | |
--> | |
</artifactItems> | |
</configuration> | |
</execution> | |
<execution> | |
<id>stage-forge-plugins</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>copy</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-forge-plugin</artifactId> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-forge-camel-plugin</artifactId> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-forge-bean-plugin</artifactId> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-forge-soap-plugin</artifactId> | |
</artifactItem> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-forge-bpm-plugin</artifactId> | |
</artifactItem> | |
</artifactItems> | |
<outputDirectory>${staging.dir}/${as.root.dir}/forge</outputDirectory> | |
<stripVersion>true</stripVersion> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- Build the Server from the dependencies... --> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.1</version> | |
<executions> | |
<execution> | |
<phase>generate-sources</phase> | |
<configuration> | |
<tasks> | |
<property name="dependencies.dir" value="target/dependency" /> | |
<!-- Create the staging and assembly dirs... --> | |
<mkdir dir="${staging.dir}" /> | |
<!-- Unzip the AS distribution... --> | |
<unzip src="${dependencies.dir}/jboss-as-distribution-${version.jbossas}.zip" dest="${staging.dir}" /> | |
<property name="default.server" value="${staging.dir}/${as.root.dir}/server/default" /> | |
<!-- Unzip the SwitchYard distribution on top of the AS... --> | |
<unzip src="${dependencies.dir}/switchyard-as6-build-${project.version}.zip" dest="${default.server}/deployers" /> | |
<!-- Copy switchyard components to default server deploy folder... --> | |
<copy todir="${default.server}/deploy"> | |
<fileset dir="${dependencies.dir}"> | |
<include name="switchyard-component-*.jar" /> | |
<exclude name="switchyard-component-camel-as6-*.jar" /> <!-- Will be copied to switchyard.deployer folder. See below. --> | |
</fileset> | |
</copy> | |
<!-- Copy Camel dependencies to default server switchyard.deployer folder... --> | |
<copy todir="${default.server}/deployers/switchyard.deployer"> | |
<fileset dir="${dependencies.dir}"> | |
<include name="camel-*.jar" /> | |
<include name="commons-management-*.jar" /> | |
<include name="switchyard-component-camel-as6-*.jar" /> | |
</fileset> | |
</copy> | |
<!-- Copy Drools & JBPM dependencies to default server switchyard.deployer folder... --> | |
<copy todir="${default.server}/deployers/switchyard.deployer"> | |
<fileset dir="${dependencies.dir}"> | |
<include name="drools-*.jar" /> | |
<include name="jbpm-*.jar" /> | |
<include name="knowledge*.jar" /> | |
<include name="antlr*.jar" /> | |
<include name="mina*.jar" /> | |
<include name="core*.jar" /> | |
<include name="mvel2*.jar" /> | |
</fileset> | |
</copy> | |
</tasks> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- Include distribution files --> | |
<plugin> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>install-distribution-files</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>unpack</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.switchyard</groupId> | |
<artifactId>switchyard-release-distribution</artifactId> | |
<type>jar</type> | |
<version>${project.version}</version> | |
</artifactItem> | |
</artifactItems> | |
<outputDirectory>${staging.dir}</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- Assemble the Server... --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>make-assembly</id> | |
<phase>package</phase> | |
<goals> | |
<goal>attached</goal> | |
</goals> | |
<configuration> | |
<finalName>SwitchYard-AS6-Standalone</finalName> | |
<descriptors> | |
<descriptor>${basedir}/assembly.xml</descriptor> | |
</descriptors> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-deploy-plugin</artifactId> | |
<configuration> | |
<skip>false</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment