test-src example
This example show how to override the testsources and sources definisions from the standards Maven build tags:
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.yourcompany.infrastructure</groupId>
<artifactId>infrastructure</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>com.yourcompany.infrastructure</groupId>
<artifactId>DebugLog</artifactId>
<name>DebugLog</name>
<packaging>so</packaging>
<properties>
<foo.property>True</foo.property>
</properties>
<dependencies>
<dependency>
<groupId>com.yourcompany.prebuilt</groupId>
<artifactId>liblog4</artifactId>
<type>foo</type>
<version>1.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.yourcompany.init</groupId>
<artifactId>Exception</artifactId>
<version>${project.version}</version>
<type>foo</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.yourcompany.init</groupId>
<artifactId>Attribute</artifactId>
<version>${project.version}</version>
<type>foo</type>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jfrog.jade.plugins.build</groupId>
<artifactId>jade-native-plugin</artifactId>
<configuration>
<testSources>
<source>
<directory>${project.build.testSourceDirectory}</directory>
<includes>
<include>**/*.cpp</include>
</includes>
<excludes>
<exclude>**/log_2.cpp</exclude>
</excludes>
</source>
</testSources>
<compilerMiddleOptions>
<option>False</option>
</compilerMiddleOptions>
</configuration>
</plugin>
</plugins>
</build>
</project>