glassfish-corba-tests
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.glassfish.corba</groupId>
<artifactId>glassfish-corba-tests</artifactId>
<version>5.0.0</version>
</dependency><!--
Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2022 Contributors to the Eclipse Foundation. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
v. 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License v. 2.0 are satisfied: GNU General Public License v2.0
w/Classpath exception which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause OR GPL-2.0 WITH
Classpath-exception-2.0
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.glassfish.corba</groupId>
<artifactId>glassfish-corba</artifactId>
<version>5.0.0</version>
</parent>
<artifactId>glassfish-corba-tests</artifactId>
<name>Functional Tests</name>
<packaging>pom</packaging>
<properties>
<debug.args>-Ddebug=ignored</debug.args>
</properties>
<dependencies>
<dependency>
<groupId>org.glassfish.gmbal</groupId>
<artifactId>gmbal-api-only</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>glassfish-corba-csiv2-idl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>idlj</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>glassfish-corba-omgapi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>glassfish-corba-orb</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rmic</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-basic</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-basic-tools</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-dynamic</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-tf</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-tf-tools</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.external</groupId>
<artifactId>management-api</artifactId>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.11.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- generate test idl -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>idlj-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate-test</goal>
</goals>
</execution>
</executions>
<configuration>
<includeDirs>
<includeDir>../omgapi/src/main/idl</includeDir>
<includeDir>../omgapi/src/main/idl-includes</includeDir>
</includeDirs>
<sources>
<source>
<compatible>true</compatible>
<includes>
<include>legacy/**/*.idl</include>
</includes>
<packagePrefixes>
<packagePrefix><type>activation</type><prefix>com.sun.corba.ee.spi</prefix></packagePrefix>
</packagePrefixes>
</source>
<source>
<packagePrefixes>
<packagePrefix><type>IOP</type> <prefix>org.omg</prefix></packagePrefix>
<packagePrefix><type>Messaging</type> <prefix>org.omg</prefix></packagePrefix>
<packagePrefix><type>PortableServer</type> <prefix>org.omg</prefix></packagePrefix>
<packagePrefix><type>PortableInterceptor</type><prefix>org.omg</prefix></packagePrefix>
</packagePrefixes>
<compatible>false</compatible>
<defines>
<define>
<symbol>CORBA3</symbol>
</define>
</defines>
<additionalArguments>
<additionalArgument>-corba</additionalArgument>
<additionalArgument>3.0</additionalArgument>
</additionalArguments>
<excludes>
<exclude>legacy/**</exclude>
</excludes>
</source>
</sources>
</configuration>
</plugin>
<!-- generate rmic stubs -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rmic-maven-plugin</artifactId>
<configuration>
<testOutputDirectory>${project.build.testOutputDirectory}</testOutputDirectory>
<sources>
<source>
<iiop>true</iiop>
<poa>true</poa>
<keep>true</keep>
<includes>
<include>**/rmiiIServantPOA.class</include>
<include>**/corba/preinvokepostinvoke/MyServant.class</include>
<include>**/corba/rmipoacounter/counterImpl.class</include>
</includes>
</source>
<source>
<keep>true</keep>
<iiop>true</iiop>
<includes>
<include>**/rmiiIServant.class</include>
</includes>
</source>
</sources>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.corba</groupId>
<artifactId>rmic</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- compile tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- build and run ant-based tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>run-tests</id>
<phase>integration-test</phase>
<configuration>
<target>
<ant antfile="../make/build.xml" target="build-tests">
<property name="test-build.dir" value="${project.build.directory}/test" />
<property name="root.dir" value=".." />
<property name="maven.test.classpath" refid="maven.test.classpath" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>all-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>run-tests</id>
<phase>integration-test</phase>
<configuration>
<target>
<ant antfile="../make/build.xml" target="build-tests">
<property name="test-build.dir" value="${project.build.directory}/test" />
<property name="root.dir" value=".." />
<property name="maven.test.classpath" refid="maven.test.classpath" />
</ant>
<ant antfile="../make/build.xml" target="test-all">
<property name="test-build.dir" value="${project.build.directory}/test" />
<property name="root.dir" value=".." />
<property name="maven.test.classpath" refid="maven.test.classpath" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>test-with-args</id>
<activation>
<property>
<name>test.args</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>run-tests</id>
<phase>integration-test</phase>
<configuration>
<target>
<ant antfile="../make/build.xml" target="run-test-target-with-args">
<property name="test-build.dir" value="${project.build.directory}/test" />
<property name="root.dir" value=".." />
<property name="maven.test.classpath" refid="maven.test.classpath" />
<property name="test-args" value="${test.args}" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>add-debug-args</id>
<activation>
<property>
<name>debug.port</name>
</property>
</activation>
<properties>
<debug.args>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:${debug.port}</debug.args>
</properties>
</profile>
</profiles>
</project>