open-types-test
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>open-types-test</artifactId>
<version>3.15</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: Apache-2.0 -->
<!-- Copyright Contributors to the ODPi Egeria project. -->
<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">
<parent>
<artifactId>open-types-fvt</artifactId>
<groupId>org.odpi.egeria</groupId>
<version>3.15</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<scm>
<connection>scm:git:git://github.com/odpi/egeria.git</connection>
<developerConnection>scm:git:ssh://github.com/odpi/egeria.git</developerConnection>
<url>http://github.com/odpi/egeria/tree/main</url>
</scm>
<packaging>pom</packaging>
<name>Open Types Test execution</name>
<description>
Run the Functional Verification Test (FVT) for open types.
</description>
<artifactId>open-types-test</artifactId>
<dependencies>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>open-types-test-generator</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>open-types-test</id>
<activation>
<!--
To skip this module from the build add -DskipOpenTypesTest
-->
<property>
<name>!skipOpenTypesTest</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generate</id>
<phase>test-compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Need to create ant property to pass from maven to ant task -->
<!-- generating code here -->
<property name="antDirectory" value="${project.basedir}/../../../../"/>
<echo message="Directory is: ${antDirectory}"/>
<java classname="org.odpi.openmetadata.fvt.opentypes.generators.OmrsBeanGenerator"
fork="true" failonerror="true" dir="${antDirectory}">
<classpath>
<path refid="maven.compile.classpath"/>
<path refid="maven.plugin.classpath"/>
</classpath>
<sysproperty key="org.slf4j.simpleLogger.defaultLogLevel" value="INFO"/>
</java>
</target>
</configuration>
</execution>
<execution>
<id>createemptydocsource</id>
<phase>package</phase>
<configuration>
<target>
<touch file="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar"/>
<touch file="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>runopentypesfvt</id>
<phase>integration-test</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/src/main/java/org/odpi/openmetadata/fvt/opentypes</directory>
</fileset>
<fileset>
<directory>${basedir}/src/test/java/org/odpi/openmetadata/fvt/opentypes</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<id>analyze</id>
<goals>
<goal>analyze-only</goal>
</goals>
<configuration>
<ignoredUnusedDeclaredDependencies combine.children="append">
<!-- Code generator is a hidden dependency via antrun - we need it for the build process, so need to declare here -->
<ignoredUnusedDeclaredDependency>org.odpi.egeria:open-types-test-generator:*
</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>