forked from kohlschutter/junixsocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
97 lines (89 loc) · 4.15 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?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>
<artifactId>junixsocket-tipc</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket</artifactId>
<version>2.10.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<name>junixsocket-tipc</name>
<properties>
<kohlschutter.project.base.directory>${project.parent.basedir}</kohlschutter.project.base.directory>
<kohlschutter.multirelease.java8.release>8</kohlschutter.multirelease.java8.release>
<patchArgs.org.newsclub.net.unix>org.newsclub.net.unix=${project.basedir}/../junixsocket-common/${kohlschutter.target.name}/test-classes:${settings.localRepository}/com/kohlschutter/junixsocket/junixsocket-common/${project.version}/junixsocket-common-${project.version}-tests.jar</patchArgs.org.newsclub.net.unix>
<!-- This lets us reuse the unit tests from junixsocket-common -->
<!-- m2e/Eclipse users: Either run tests using "Run as Maven test"
or add "(dash dash)patch-module org.newsclub.net.unix=junixsocket-common/target-eclipse/test-classes"
to VM arguments for "Run as JUnit test" -->
<kohlschutter.surefire.patch.args>--patch-module ${patchArgs.org.newsclub.net.unix}</kohlschutter.surefire.patch.args>
</properties>
<description>The junixsocket implementation for AF_TIPC sockets</description>
<dependencies>
<dependency>
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket-common</artifactId>
<type>test-jar</type>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
<dependency>
<!-- Important: The test-jar dependency must be declared before this main dependency,
Eclipse/m2e may silently fail otherwise ("Module org.newsclub.net.unix not found") -->
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket-common</artifactId>
</dependency>
<dependency>
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket-core</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket-native-common</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<compilerArgs>
<arg>--patch-module</arg>
<arg>${patchArgs.org.newsclub.net.unix}</arg>
<arg>${xlint.compiler.arg}</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>with-native-custom</id>
<activation>
<property>
<name>!junixsocket.native-custom.skip</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket-native-custom</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<classifier>default</classifier>
<optional>true</optional>
</dependency>
</dependencies>
</profile>
</profiles>
</project>