|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>com.example</groupId> |
| 5 | + <artifactId>litecam-mrz-scanner</artifactId> |
| 6 | + <name>LiteCam MRZ Scanner</name> |
| 7 | + <version>1.0.0</version> |
| 8 | + <description>A machine-readable zone (MRZ) scanner using LiteCam SDK and Dynamsoft Capture Vision</description> |
| 9 | + <build> |
| 10 | + <plugins> |
| 11 | + <plugin> |
| 12 | + <artifactId>maven-compiler-plugin</artifactId> |
| 13 | + <version>3.13.0</version> |
| 14 | + <configuration> |
| 15 | + <source>${java.version}</source> |
| 16 | + <target>${java.version}</target> |
| 17 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 18 | + </configuration> |
| 19 | + </plugin> |
| 20 | + <plugin> |
| 21 | + <artifactId>maven-surefire-plugin</artifactId> |
| 22 | + <version>3.1.2</version> |
| 23 | + <configuration> |
| 24 | + <includes> |
| 25 | + <include>**/*Test.java</include> |
| 26 | + <include>**/*Tests.java</include> |
| 27 | + </includes> |
| 28 | + </configuration> |
| 29 | + </plugin> |
| 30 | + <plugin> |
| 31 | + <artifactId>maven-shade-plugin</artifactId> |
| 32 | + <version>3.5.0</version> |
| 33 | + <executions> |
| 34 | + <execution> |
| 35 | + <phase>package</phase> |
| 36 | + <goals> |
| 37 | + <goal>shade</goal> |
| 38 | + </goals> |
| 39 | + <configuration> |
| 40 | + <transformers> |
| 41 | + <transformer> |
| 42 | + <mainClass>com.example.litecam.MRZScanner</mainClass> |
| 43 | + </transformer> |
| 44 | + </transformers> |
| 45 | + <filters> |
| 46 | + <filter> |
| 47 | + <artifact>*:*</artifact> |
| 48 | + <excludes> |
| 49 | + <exclude>META-INF/*.SF</exclude> |
| 50 | + <exclude>META-INF/*.DSA</exclude> |
| 51 | + <exclude>META-INF/*.RSA</exclude> |
| 52 | + </excludes> |
| 53 | + </filter> |
| 54 | + </filters> |
| 55 | + <artifactSet> |
| 56 | + <includes> |
| 57 | + <include>*:*</include> |
| 58 | + </includes> |
| 59 | + </artifactSet> |
| 60 | + </configuration> |
| 61 | + </execution> |
| 62 | + </executions> |
| 63 | + </plugin> |
| 64 | + <plugin> |
| 65 | + <artifactId>maven-resources-plugin</artifactId> |
| 66 | + <version>3.3.1</version> |
| 67 | + <configuration> |
| 68 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + <plugin> |
| 72 | + <artifactId>maven-install-plugin</artifactId> |
| 73 | + <version>3.1.1</version> |
| 74 | + <executions> |
| 75 | + <execution> |
| 76 | + <id>install-litecam</id> |
| 77 | + <phase>initialize</phase> |
| 78 | + <goals> |
| 79 | + <goal>install-file</goal> |
| 80 | + </goals> |
| 81 | + <configuration> |
| 82 | + <file>${project.basedir}/libs/litecam.jar</file> |
| 83 | + <groupId>com.example</groupId> |
| 84 | + <artifactId>litecam</artifactId> |
| 85 | + <version>1.0.0</version> |
| 86 | + <packaging>jar</packaging> |
| 87 | + </configuration> |
| 88 | + </execution> |
| 89 | + </executions> |
| 90 | + </plugin> |
| 91 | + </plugins> |
| 92 | + </build> |
| 93 | + <profiles> |
| 94 | + <profile> |
| 95 | + <id>dev</id> |
| 96 | + <properties> |
| 97 | + <log.level>DEBUG</log.level> |
| 98 | + </properties> |
| 99 | + </profile> |
| 100 | + <profile> |
| 101 | + <id>prod</id> |
| 102 | + <properties> |
| 103 | + <log.level>INFO</log.level> |
| 104 | + </properties> |
| 105 | + </profile> |
| 106 | + </profiles> |
| 107 | + <repositories> |
| 108 | + <repository> |
| 109 | + <id>central</id> |
| 110 | + <url>https://repo1.maven.org/maven2</url> |
| 111 | + </repository> |
| 112 | + <repository> |
| 113 | + <id>dcv</id> |
| 114 | + <url>https://download2.dynamsoft.com/maven/jar</url> |
| 115 | + </repository> |
| 116 | + </repositories> |
| 117 | + <dependencies> |
| 118 | + <dependency> |
| 119 | + <groupId>org.junit.jupiter</groupId> |
| 120 | + <artifactId>junit-jupiter</artifactId> |
| 121 | + <version>5.10.0</version> |
| 122 | + <scope>test</scope> |
| 123 | + <exclusions> |
| 124 | + <exclusion> |
| 125 | + <artifactId>junit-jupiter-api</artifactId> |
| 126 | + <groupId>org.junit.jupiter</groupId> |
| 127 | + </exclusion> |
| 128 | + <exclusion> |
| 129 | + <artifactId>junit-jupiter-params</artifactId> |
| 130 | + <groupId>org.junit.jupiter</groupId> |
| 131 | + </exclusion> |
| 132 | + <exclusion> |
| 133 | + <artifactId>junit-jupiter-engine</artifactId> |
| 134 | + <groupId>org.junit.jupiter</groupId> |
| 135 | + </exclusion> |
| 136 | + </exclusions> |
| 137 | + </dependency> |
| 138 | + </dependencies> |
| 139 | + <properties> |
| 140 | + <java.version>17</java.version> |
| 141 | + <maven.compiler.source>17</maven.compiler.source> |
| 142 | + <maven.compiler.target>17</maven.compiler.target> |
| 143 | + <slf4j.version>2.0.9</slf4j.version> |
| 144 | + <dynamsoft.dcv.version>3.4.1000</dynamsoft.dcv.version> |
| 145 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 146 | + <junit.version>5.10.0</junit.version> |
| 147 | + <logback.version>1.5.18</logback.version> |
| 148 | + </properties> |
| 149 | +</project> |
0 commit comments