| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| 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 |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| 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 under the License. |
| |
| --> |
| |
| <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> |
| <artifactId>assembly</artifactId> |
| <groupId>org.apache.openejb</groupId> |
| <version>3.0.4</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>openejb-standalone</artifactId> |
| <packaging>pom</packaging> |
| <name>OpenEJB :: Assembly :: Standalone</name> |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <plugins> |
| <!-- |
| Create an empty directory which will be copied |
| twice by the assembly plugin to create the |
| conf/ and logs/ directories |
| --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>create-empty-directory</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <mkdir dir="${basedir}/target/classes/empty" /> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.2</version> |
| <executions> |
| <execution> |
| <id>filter-resources</id> |
| <phase>package</phase> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>rat-maven-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>src/main/resources/DATA-README.txt</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.1</version> |
| <executions> |
| <execution> |
| <id>assembly-bin-distributions</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attached</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptor>src/main/assembly/bin.xml</descriptor> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.openejb.test.Main</mainClass> |
| </manifest> |
| </archive> |
| <finalName>openejb-${pom.version}</finalName> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <id>cleanup-target</id> |
| <phase>package</phase> |
| <configuration> |
| <tasks> |
| <delete dir="${basedir}/target/classes" /> |
| <delete dir="${basedir}/target/archive-tmp" /> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-loader</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-core</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>javaee-api</artifactId> |
| <version>5.0-1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.geronimo.javamail</groupId> |
| <artifactId>geronimo-javamail_1.4_mail</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-client</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-server</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-ejbd</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-hsql</artifactId> |
| <version>${version}</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-http</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-telnet</artifactId> |
| <version>${version}</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-cxf</artifactId> |
| <version>${version}</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-itests-client</artifactId> |
| <version>${version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-itests-beans</artifactId> |
| <version>${version}</version> |
| <type>ejb</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <profiles> |
| <profile> |
| <id>itest</id> |
| <properties> |
| <openejb.debug.suspend>n</openejb.debug.suspend> |
| <openejb.debug.port>5005</openejb.debug.port> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-itests-client</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-itests-beans</artifactId> |
| <version>${version}</version> |
| <type>ejb</type> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>setup:openejb:unjar</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <property name="targetDir" value="${basedir}/target/" /> |
| <property name="openejb.home" value="${targetDir}/openejb-${pom.version}" /> |
| <property name="openejb.dist" value="${targetDir}/openejb-${pom.version}-bin.zip" /> |
| <property name="openejb.version" value="${pom.version}" /> |
| |
| <unjar src="${openejb.dist}" dest="${targetDir}" /> |
| <copy file="${targetDir}/openejb-${pom.version}-test.jar" todir="${openejb.home}/apps" /> |
| |
| <java classname="org.apache.openejb.test.Main" fork="yes"> |
| <classpath> |
| <pathelement location="${targetDir}/openejb-${pom.version}-test.jar" /> |
| <fileset dir="${openejb.home}/lib"> |
| <include name="*.jar" /> |
| </fileset> |
| </classpath> |
| <sysproperty key="openejb.home" value="${openejb.home}" /> |
| <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${openejb.debug.suspend},address=${openejb.debug.port}" /> |
| <arg value="local" /> |
| </java> |
| |
| <java jar="target/openejb-${openejb.version}-test.jar" fork="yes"> |
| <sysproperty key="openejb.home" value="${openejb.home}" /> |
| <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${openejb.debug.suspend},address=${openejb.debug.port}" /> |
| <arg value="remote" /> |
| </java> |
| |
| <java jar="target/openejb-${openejb.version}-test.jar" fork="yes"> |
| <sysproperty key="openejb.home" value="${openejb.home}" /> |
| <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${openejb.debug.suspend},address=${openejb.debug.port}" /> |
| <arg value="http" /> |
| </java> |
| |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |