-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
201 lines (179 loc) · 7.85 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?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>
<groupId>us.hebi.matlab</groupId>
<version>1.2-SNAPSHOT</version>
<artifactId>hebicam</artifactId>
<name>HebiCam</name>
<description>MATLAB utility for streaming video acquisition</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
<license>
<name>GNU General Public License (GPL) version 2, or any later version</name>
<url>http://www.gnu.org/licenses/</url>
<distribution>repo</distribution>
</license>
<license>
<name>GPLv2 with Classpath exception</name>
<url>http://www.gnu.org/software/classpath/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Florian Enner</name>
<email>[email protected]</email>
</developer>
</developers>
<scm>
<url>https://github.com/HebiRobotics/HebiCam</url>
<connection>scm:git:git://github.com/HebiRobotics/HebiCam.git</connection>
<developerConnection>scm:git:ssh://[email protected]/HebiRobotics/HebiCam.git</developerConnection>
</scm>
<properties>
<!-- Dependency versions. KEEP IN ALPHABETICAL ORDER-->
<junit.version>4.13.1</junit.version>
<javacv.version>1.2</javacv.version>
<opencv.version>3.1.0-1.2</opencv.version>
<ffmpeg.version>3.1.2-1.2</ffmpeg.version>
<videoinput.version>0.200-1.2</videoinput.version>
<exclude.ffmpeg>none</exclude.ffmpeg>
<!-- Target OS Architecture -->
<target.arch>-x86_64</target.arch>
<!-- Default to minimum Java version compatible with MATLAB >2009a -->
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<!-- Other Properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- JavaCV source (OpenCV, FFmpeg, etc.) -->
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv</artifactId>
<version>${javacv.version}</version>
</dependency>
<!-- OpenCV Binaries -->
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>${opencv.version}</version>
<classifier>windows${target.arch}</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>${opencv.version}</version>
<classifier>macosx${target.arch}</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>${opencv.version}</version>
<classifier>linux${target.arch}</classifier>
</dependency>
<!-- FFmpeg Binaries -->
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>ffmpeg</artifactId>
<version>${ffmpeg.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>ffmpeg</artifactId>
<version>${ffmpeg.version}</version>
<classifier>windows${target.arch}</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>ffmpeg</artifactId>
<version>${ffmpeg.version}</version>
<classifier>macosx${target.arch}</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>ffmpeg</artifactId>
<version>${ffmpeg.version}</version>
<classifier>linux${target.arch}</classifier>
</dependency>
<!-- VideoInput Binaries (Windows only)-->
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>videoinput</artifactId>
<version>${videoinput.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>videoinput</artifactId>
<version>${videoinput.version}</version>
<classifier>windows${target.arch}</classifier>
</dependency>
<dependency> <!-- Unit Tests -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin> <!-- Add MATLAB script(s) to target dir to make it easier to find -->
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources/matlab/</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <!-- Builds a full-assembly jar and can rename classpaths -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<!-- Exclude binaries that are not needed, but referenced by JavaCV -->
<exclude>org.bytedeco.javacpp-presets:flycapture:jar:*</exclude>
<exclude>org.bytedeco.javacpp-presets:libdc1394:jar:*</exclude>
<exclude>org.bytedeco.javacpp-presets:libfreenect:jar:*</exclude>
<exclude>org.bytedeco.javacpp-presets:artoolkitplus:jar:*</exclude>
<exclude>org.bytedeco.javacpp-presets:flandmark:jar:*</exclude>
<!--<exclude>org.bytedeco.javacpp-presets:videoinput:jar:*</exclude>-->
</excludes>
</artifactSet>
</configuration>
</execution>
</executions>
<configuration>
<finalName>${project.artifactId}-${project.version}-all${target.arch}</finalName>
</configuration>
</plugin>
</plugins>
</build>
</project>