-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpom.xml
132 lines (124 loc) · 5.35 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<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>
<groupId>net.ladstatt.javacv</groupId>
<artifactId>javacv-webcam</artifactId>
<version>2020.3.1-SNAPSHOT</version>
<name>net.ladstatt.javacv.javacv-webcam</name>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openjfx.version>16-ea+2</openjfx.version>
<javacv.version>1.5.4</javacv.version>
<main.class>net.ladstatt.javacv.fx.WebcamFXApp</main.class>
<!-- for native compilation with graalvm -->
<client.plugin.version>0.1.33</client.plugin.version>
<client.target>host</client.target>
<!-- uncomment and provide your path
<graalvm.home>/Users/lad/.sdkman/candidates/java/20.2.0.r11-grl</graalvm.home>
-->
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${openjfx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${openjfx.version}</version>
</dependency>
<!-- include everything javacv related for all platforms -->
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv-platform</artifactId>
<version>${javacv.version}</version>
<exclusions>
<!-- if not excluded linking fails withc client-maven-plugin (???) -->
<exclusion>
<groupId>org.bytedeco</groupId>
<artifactId>leptonica-platform</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>11</release>
<source>9</source>
<target>9</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-jdk</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.6.2</version>
</requireMavenVersion>
<requireJavaVersion>
<version>11</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.gluonhq</groupId>
<artifactId>client-maven-plugin</artifactId>
<version>${client.plugin.version}</version>
<configuration>
<target>${client.target}</target>
<mainClass>${main.class}</mainClass>
<verbose>true</verbose>
<attachList>
<list>display</list>
<list>lifecycle</list>
<list>statusbar</list>
<list>storage</list>
</attachList>
<reflectionList>
<list>net.ladstatt.javacv.fx.WebcamFXController</list>
<list>org.bytedeco.javacpp.presets.javacpp</list>
<list>org.bytedeco.openblas.global.openblas_nolapack</list>
<list>org.bytedeco.javacpp.Loader</list>
</reflectionList>
<resourcesList>
<list>.*.dylib$</list>
</resourcesList>
<nativeImageArgs>--allow-incomplete-classpath</nativeImageArgs>
<graalvmHome>${graalvm.home}</graalvmHome>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.5</version>
<configuration>
<jlinkVerbose>true</jlinkVerbose>
<mainClass>net.ladstatt.javacv.webcam/${main.class}</mainClass>
<jlinkImageName>javacv-webcam</jlinkImageName>
<jlinkVerbose>true</jlinkVerbose>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>jwebcam</launcher>
</configuration>
</plugin>
</plugins>
</build>
</project>