-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpom.xml
560 lines (521 loc) · 19.4 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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.apache</groupId>
<artifactId>apache</artifactId>
<version>33</version>
<relativePath/>
</parent>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4x-extras-parent</artifactId>
<version>0.13.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>PLC4X-Extras</name>
<description>
PLC4X is an effort to create a universal library for accessing industrial programmable logic controllers
using a variety of protocols using a uniform API.
The Extras Repository contains all Integration modules, Tools and Examples.
</description>
<url>https://plc4x.apache.org</url>
<inceptionYear>2017</inceptionYear>
<scm>
<connection>scm:git:https://gitbox.apache.org/repos/asf/plc4x-extras.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/plc4x-extras.git</developerConnection>
<url>https://github.com/apache/plc4x-extras</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/apache/plc4x-extras/issues</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>Apache PLC4X Developer List</name>
<subscribe>mailto:dev-subscribe@plc4x.apache.org</subscribe>
<unsubscribe>mailto:dev-unsubscribe@plc4x.apache.org</unsubscribe>
<post>mailto:dev@plc4x.apache.org</post>
<archive>https://mail-archives.apache.org/mod_mbox/plc4x-dev/</archive>
</mailingList>
<mailingList>
<name>PLC4X Commits List</name>
<subscribe>mailto:commits-subscribe@plc4x.apache.org</subscribe>
<unsubscribe>mailto:commits-unsubscribe@plc4x.apache.org</unsubscribe>
<post>mailto:commits@plc4x.apache.org</post>
<archive>https://mail-archives.apache.org/mod_mbox/plc4x-commits/</archive>
</mailingList>
<mailingList>
<name>PLC4X Jira Notifications List</name>
<subscribe>mailto:issues-subscribe@plc4x.apache.org</subscribe>
<unsubscribe>mailto:issues-unsubscribe@plc4x.apache.org</unsubscribe>
<post>mailto:issues@plc4x.apache.org</post>
<archive>https://mail-archives.apache.org/mod_mbox/plc4x-issues/</archive>
</mailingList>
</mailingLists>
<properties>
<java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputencoding>UTF-8</project.reporting.outputencoding>
<!-- Timestamp for the reproducible builds -->
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
<project.build.outputTimestamp>2024-02-16T14:53:02Z</project.build.outputTimestamp>
<plc4x.version>${project.version}</plc4x.version>
</properties>
<build>
<plugins>
<!-- Check if all source files have the required apache license headers -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<id>license-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<useMavenDefaultExcludes>true</useMavenDefaultExcludes>
<excludes>
<!-- Git related files -->
<exclude>**/.git/**</exclude>
<exclude>**/.gitignore</exclude>
<exclude>**/cmake-*/**</exclude>
<exclude>**/.lock/**</exclude>
<!-- Maven related files -->
<exclude>**/target/**</exclude>
<exclude>target/**</exclude>
<exclude>out/**</exclude>
<!-- Python related files -->
<exclude>**/.pytest_cache/**</exclude>
<exclude>**/.mypy_cache/**</exclude>
<exclude>**/Pipfile</exclude>
<exclude>**/Pipfile.lock</exclude>
<!-- Eclipse related files -->
<exclude>**/.project</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.factorypath</exclude>
<!-- IntelliJ related files -->
<exclude>**/.idea/**</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/.attach_pid*</exclude>
<!-- CLion stuff (C++ IDE) -->
<exclude>**/cmake-build-debug/**</exclude>
<exclude>**/*.make</exclude>
<exclude>**/*.cmake</exclude>
<exclude>**/*.internal</exclude>
<exclude>**/link.txt</exclude>
<!-- Not sure why I can't exclude all Makefile's from just the plc4c directory -->
<!-- exclude>**/Makefile</exclude -->
<exclude>**/Makefile</exclude>
<exclude>**/*.includecache</exclude>
<exclude>**/CMakeFiles/**</exclude>
<exclude>**/CMakeCache.txt</exclude>
<exclude>**/DartConfiguration.tcl</exclude>
<!-- Temporarily exclude generated code from thrift in python modules -->
<!--exclude>generated/**</exclude-->
<!-- Temporary Python files -->
<exclude>**/.eggs/**</exclude>
<exclude>**/plc4py.egg-info/**</exclude>
<!-- Temporary Python virtualenv files-->
<exclude>**/venv/**</exclude>
<!-- Temporary pytest and mypy folders -->
<exclude>**/.mypy_cache/**</exclude>
<exclude>**/.pytest_cache/**</exclude>
<!-- Exclude a temp file needed by Docker -->
<exclude>project_version</exclude>
<!-- Exclude files generated by the go build system -->
<exclude>**/go.sum</exclude>
<!-- Exclude Node related files -->
<!--
This is actually only needed when having built with Java 19
or higher and then building with a version below 19. Because
in this case, the "ui" module is disabled, and the left-over
build files make rat complain.
-->
<exclude>ui/frontend/project/dist/**</exclude>
<exclude>ui/frontend/project/node/**</exclude>
<exclude>ui/frontend/project/node_modules/**</exclude>
<exclude>.mvn/**</exclude>
<!-- Exclude core dumps-->
<exclude>**/hs_err_pid*</exclude>
<exclude>**/replay_pid*</exclude>
<!-- Stuff the UI build has -->
<exclude>**/project/node/**</exclude>
<exclude>**/derby.log</exclude>
</excludes>
</configuration>
</plugin>
<!-- Generate the legally required text files in the jars -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<id>process-resource-bundles</id>
<phase>prepare-package</phase>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles>
<!-- Will generate META-INF/{DEPENDENCIES,LICENSE,NOTICE} -->
<resourceBundle>org.apache.apache.resources:apache-jar-resource-bundle:1.5</resourceBundle>
</resourceBundles>
<!-- Content in this directory will be appended to generated resources -->
<appendedResourcesDirectory>${basedir}/src/remote-resources</appendedResourcesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.16.1</version>
<configuration>
<!--
Make rat output the files with missing licensed directly into the
build output (This way we don't have to look into the rat.txt to find
out which ones)
-->
<consoleOutput>true</consoleOutput>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- Make Snapshots of Apache projects available -->
<repositories>
<repository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<!-- When we release stuff like the site skin or the build tools, syncing to Maven Central usually takes some time -->
<repository>
<id>apache-releases</id>
<url>https://repository.apache.org/content/repositories/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<!-- Make Snapshots of Apache plugins available -->
<pluginRepositories>
<pluginRepository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<!-- When we release stuff like the site skin or the build tools, syncing to Maven Central usually takes some time -->
<pluginRepository>
<id>apache-releases</id>
<url>https://repository.apache.org/content/repositories/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<profiles>
<!-- Build PLC4X including the C modules -->
<profile>
<id>with-c</id>
<modules>
<module>plc4c</module>
</modules>
</profile>
<!-- Build PLC4X including the Go modules -->
<profile>
<id>with-go</id>
<modules>
<module>plc4go</module>
</modules>
</profile>
<!-- Build PLC4X including the Java modules -->
<profile>
<id>with-java</id>
<modules>
<module>plc4j</module>
</modules>
</profile>
<!-- Profile for linux x86_64 (mainly Intel Processors) (Self-Enabling) -->
<profile>
<id>.os-linux-x86_64</id>
<activation>
<os>
<family>unix</family>
<name>Linux</name>
<arch>x86_64</arch>
</os>
</activation>
<properties>
<os.suffix>linux</os.suffix>
<os.classifier>linux-x86_64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
</properties>
</profile>
<!-- Profile for linux amd64 (mainly AMD Processors) (Self-Enabling) -->
<profile>
<id>.os-linux-amd64</id>
<activation>
<os>
<family>unix</family>
<name>Linux</name>
<arch>amd64</arch>
</os>
</activation>
<properties>
<os.suffix>linux</os.suffix>
<os.classifier>linux-amd64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
</properties>
</profile>
<!-- Profile for linux aarch64 (mainly newer Mac or Raspberry PI Processors) (Self-Enabling) -->
<profile>
<id>.os-linux-aarch64</id>
<activation>
<os>
<family>unix</family>
<name>Linux</name>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<os.suffix>linux</os.suffix>
<os.classifier>linux-${os.arch}</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
</properties>
</profile>
<!-- Profile for mac x86_64 (mainly Intel Processors) (Self-Enabling) -->
<profile>
<id>.os-mac-x86_64</id>
<activation>
<os>
<family>mac</family>
<arch>x86_64</arch>
</os>
</activation>
<properties>
<os.suffix>mac</os.suffix>
<os.classifier>mac-x86_64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
</properties>
</profile>
<!-- Profile for mac aarch64 (mainly AMD Processors) (Self-Enabling) -->
<profile>
<id>.os-mac-aarch64</id>
<activation>
<os>
<family>mac</family>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<os.suffix>mac</os.suffix>
<os.classifier>mac-aarch64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
</properties>
</profile>
<!-- profile for windows x86_64 (mainly Intel Processors) (Self-Enabling) -->
<profile>
<id>.os-windows-x86_64</id>
<activation>
<os>
<family>windows</family>
<arch>x86_64</arch>
</os>
</activation>
<properties>
<os.suffix>win</os.suffix>
<os.classifier>windows-x86_64</os.classifier>
<cmake.generator>MinGW Makefiles</cmake.generator>
<python.venv.bin>venv/Scripts/</python.venv.bin>
<python.exe.bin>python</python.exe.bin>
</properties>
</profile>
<!-- profile for windows amd64 (mainly AMD Processors) (Self-Enabling) -->
<profile>
<id>.os-windows-amd64</id>
<activation>
<os>
<family>windows</family>
<arch>amd64</arch>
</os>
</activation>
<properties>
<os.suffix>win</os.suffix>
<os.classifier>windows-amd64</os.classifier>
<cmake.generator>MinGW Makefiles</cmake.generator>
<python.venv.bin>venv/Scripts/</python.venv.bin>
<python.exe.bin>python</python.exe.bin>
</properties>
</profile>
<!-- profile for windows aarch64 (mainly newer Mac or Raspberry PI Processors) (Self-Enabling) -->
<profile>
<id>.os-windows-aarch64</id>
<activation>
<os>
<family>windows</family>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<os.suffix>win</os.suffix>
<os.classifier>windows-aarch64</os.classifier>
<cmake.generator>MinGW Makefiles</cmake.generator>
<python.venv.bin>venv/Scripts/</python.venv.bin>
<python.exe.bin>python</python.exe.bin>
</properties>
</profile>
<!--
This profile extends the default "apache-release" configuration with automatic checksum-
generation for the release source artifact. It is automatically activated during the
release build and only needed there.
-->
<profile>
<id>apache-release</id>
<!-- Ensure these are run as part of a release-build -->
<properties>
<skip-code-generation-tests>false</skip-code-generation-tests>
<skip-dependency-cve-scan>false</skip-dependency-cve-scan>
</properties>
<build>
<plugins>
<!--
Create MD5 and SHA512 checksum files for the release artifacts.
-->
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>1.11</version>
<!-- Only run this in the root module of the project -->
<inherited>false</inherited>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>files</goal>
</goals>
<configuration>
<algorithms>
<algorithm>SHA-512</algorithm>
</algorithms>
<includeRelativePath>true</includeRelativePath>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>apache-plc4x-${project.version}-source-release.zip</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
<!-- We want to sign the artifact, the POM, and all attached artifacts (except for SHA-512 checksum) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-release-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<skip>${skip-pgp-signing}</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<altReleaseDeploymentRepository>apache.releases.https::file:/ws/out/.local-artifacts-dir</altReleaseDeploymentRepository>
</configuration>
</execution>
</executions>
</plugin>
<!--
Generate an SBOM for the project
-->
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.9.1</version>
<!-- Only run this in the root module of the project -->
<inherited>false</inherited>
<configuration>
<outputName>apache-${project.artifactId}-${project.version}-sbom</outputName>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>