cdm-value-objects-php
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.codingmatters.value.objects</groupId>
<artifactId>cdm-value-objects-php</artifactId>
<version>1.8.0</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<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.codingmatters.value.objects</groupId>
<artifactId>codingmatters-value-objects</artifactId>
<version>1.8.0</version>
<relativePath>../</relativePath>
</parent>
<artifactId>cdm-value-objects-php</artifactId>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codingmatters.value.objects</groupId>
<artifactId>cdm-value-objects-spec</artifactId>
</dependency>
<dependency>
<groupId>org.codingmatters.value.objects</groupId>
<artifactId>cdm-value-objects-generation-commons</artifactId>
</dependency>
<dependency>
<groupId>org.codingmatters.value.objects</groupId>
<artifactId>cdm-value-objects-generation</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>copy-yaml</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/php-test</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/test/resources/</directory>
<include>*.yaml</include>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-composer</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/php-test</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/test/resources/</directory>
<include>composer.json</include>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-tests</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/php-test/test</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/test/php/</directory>
<include>*.php</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<phase>process-test-resources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.codingmatters.value.objects.php.MainClass</mainClass>
<systemProperties>
<systemProperty>
<key>exec.classpathScope</key>
<value>test</value>
</systemProperty>
<systemProperty>
<key>generationTargetDir</key>
<value>${project.build.directory}/php-test</value><!-- target/test-classes/ -->
</systemProperty>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<project.build.directory>${project.build.directory}</project.build.directory>
</systemPropertyVariables>
<skipTests>${php.tests.are.skipped}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>deactivate tests by default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<php.tests.are.skipped>true</php.tests.are.skipped>
</properties>
</profile>
<profile>
<id>activate tests when compose is found</id>
<activation>
<file>
<exists>/usr/bin/composer</exists>
</file>
<property>
<name>!skipTests</name>
</property>
</activation>
<properties>
<php.tests.are.skipped>false</php.tests.are.skipped>
</properties>
</profile>
<profile>
<id>activate tests when forced</id>
<activation>
<property>
<name>php.tests.are.forced</name>
</property>
</activation>
<properties>
<tests.are.skipped>false</tests.are.skipped>
</properties>
</profile>
</profiles>
</project>