mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-06-18 04:50:25 +08:00
307 lines
13 KiB
XML
307 lines
13 KiB
XML
<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>
|
||
<!-- 公司或者组织的唯一标志,并且配置时生成的路径也是由此生成, 如com.companyname.project-group,maven会将该项目打成的jar包放本地路径:/com/companyname/project-group -->
|
||
<groupId>min</groupId>
|
||
<!-- 项目的唯一ID,一个groupId下面可能多个项目,就是靠artifactId来区分的 -->
|
||
<artifactId>min-vpn</artifactId>
|
||
<!-- 版本号 -->
|
||
<version>1.0</version>
|
||
<properties>
|
||
<maven.compiler.target>1.8</maven.compiler.target>
|
||
<maven.compiler.source>1.8</maven.compiler.source>
|
||
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
||
</properties>
|
||
<build>
|
||
<plugins>
|
||
|
||
<!-- <plugin>-->
|
||
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
|
||
<!-- <configuration>-->
|
||
<!-- <source>1.8</source>-->
|
||
<!-- <target>1.8</target>-->
|
||
|
||
<!-- <compilerArguments>-->
|
||
<!-- <extdirs>${project.basedir}/libs</extdirs>-->
|
||
<!-- </compilerArguments>-->
|
||
<!-- </configuration>-->
|
||
<!-- </plugin>-->
|
||
|
||
<!-- Maven Assembly Plugin -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>2.4.1</version>
|
||
<configuration>
|
||
<!-- get all project dependencies -->
|
||
<!-- <descriptorRefs>-->
|
||
<!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
|
||
<!-- </descriptorRefs>-->
|
||
<descriptors>
|
||
<!--assembly配置文件路径,注意需要在项目中新建文件properties/assembly-release.xml-->
|
||
<descriptor>properties/assembly-release.xml</descriptor>
|
||
</descriptors>
|
||
<!-- MainClass in mainfest make a executable jar -->
|
||
<archive>
|
||
<manifest>
|
||
<mainClass>min.Main</mainClass>
|
||
</manifest>
|
||
<manifestEntries>
|
||
<Class-Path>libs/*.jar</Class-Path>
|
||
</manifestEntries>
|
||
</archive>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>make-assembly</id>
|
||
<!-- bind to the packaging phase -->
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<!--<plugin>-->
|
||
<!--<groupId>com.github.wvengen</groupId>-->
|
||
<!--<artifactId>proguard-maven-plugin</artifactId>-->
|
||
<!--<!– <executions>–>-->
|
||
<!--<!– <execution>–>-->
|
||
<!--<!– <phase>package</phase>–>-->
|
||
<!--<!– <goals>–>-->
|
||
<!--<!– <goal>proguard</goal>–>-->
|
||
<!--<!– </goals>–>-->
|
||
<!--<!– </execution>–>-->
|
||
<!--<!– </executions>–>-->
|
||
<!--<configuration>-->
|
||
<!--<proguardVersion>6.2.2</proguardVersion>-->
|
||
<!--<injar>${project.build.finalName}-release.jar</injar>-->
|
||
<!--<outjar>${project.build.finalName}-pg.jar</outjar>-->
|
||
<!--<obfuscate>true</obfuscate>-->
|
||
<!--<proguardInclude>${project.basedir}/proguard.cfg</proguardInclude>-->
|
||
<!--<libs>-->
|
||
<!--<!– Include main JAVA library required.–>-->
|
||
<!--<lib>${java.home}/lib/rt.jar</lib>-->
|
||
<!--<!– Include crypto JAVA library if necessary.–>-->
|
||
<!--<lib>${java.home}/lib/jce.jar</lib>-->
|
||
<!--<lib>${java.home}/lib/ext/jfxrt.jar</lib>-->
|
||
<!--<lib>${java.home}/lib/jfxswt.jar</lib>-->
|
||
<!--<!– <lib>${java.home}/lib/</lib>–>-->
|
||
<!--</libs>-->
|
||
<!--<!– <options>–>-->
|
||
<!--<!– <option>-target 1.8</option>–>-->
|
||
<!--<!– <option>-dontoptimize</option>–>-->
|
||
<!--<!– <option>-dontshrink</option>–>-->
|
||
<!--<!–<!– <option>-keepattributes *Annotation*</option>–>–>-->
|
||
<!--<!–<!– <option>-keepattributes Signature</option>–>–>-->
|
||
<!--<!–<!– <option>-keepattributes InnerClasses</option>–>–>-->
|
||
<!--<!–<!– <option>-keepattributes InnerClasses,EnclosingMethod</option>–>–>-->
|
||
<!--<!– <option>-keepattributes javafx.fxml.FXML,Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod,LocalVariable*Table,Synthetic</option>–>-->
|
||
<!--<!– <option>-useuniqueclassmembernames</option>–>-->
|
||
<!--<!– <option>-keepclassmembers enum * { *; }</option>–>-->
|
||
<!--<!– <option>-dontwarn</option>–>-->
|
||
<!--<!–<!– <option>-keep class min.Main*{*;}</option>–>–>-->
|
||
<!--<!– <option>-keepclasseswithmembers public class * { public static void main(java.lang.String[]);}</option>–>-->
|
||
<!--<!– <option>-dontusemixedcaseclassnames</option>–>-->
|
||
<!--<!– <option>-keep class **.log4j.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class **.slf4j.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class **.logback.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class **.netty.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class sun.misc.Unsafe { *; }</option>–>-->
|
||
<!--<!– <option>-keep class org.bouncycastle.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class org.sqlite.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class **.netty.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class org.apache.commons.codec.** { *; }</option>–>-->
|
||
<!--<!– <option>-keepnames class com.fasterxml.jackson.** { *; }</option>–>-->
|
||
<!--<!– <option>-keep class org.codehaus.** { *; }</option>–>-->
|
||
<!--<!– <option>-keepclassmembers public final enum org.codehaus.jackson.annotate.JsonAutoDetect$Visibility {–>-->
|
||
<!--<!– public static final org.codehaus.jackson.annotate.JsonAutoDetect$Visibility *; }</option>–>-->
|
||
<!--<!– <option>-keep class min.config.** { *; }</option>–>-->
|
||
|
||
<!--<!– <option>-keep class min.util.DataFormat.$* { *; }</option>–>-->
|
||
<!--<!– <option>-keepnames class min.util.DataFormat, min.util.DataFormat.$* {–>-->
|
||
<!--<!– public <fields>;–>-->
|
||
<!--<!– public <methods>;–>-->
|
||
<!--<!– }–>-->
|
||
<!--<!– </option>–>-->
|
||
<!--<!– <option>-keepclassmembers class * {–>-->
|
||
<!--<!– @javafx.fxml.FXML *;–>-->
|
||
<!--<!– @javax.inject.Inject *;–>-->
|
||
<!--<!– @javax.annotation.PostConstruct *;–>-->
|
||
<!--<!– }</option>–>-->
|
||
<!--<!– <option>-adaptresourcefilenames **.fxml,**.png,**.css,**.properties</option>–>-->
|
||
<!--<!– <option>-adaptresourcefilecontents **.fxml</option>–>-->
|
||
<!--<!– <option>-adaptclassstrings</option>–>-->
|
||
<!--<!– <option>-printmapping out.map</option>–>-->
|
||
<!--<!– <option>-renamesourcefileattribute SourceFile</option>–>-->
|
||
<!--<!– <option>-keepattributes SourceFile,LineNumberTable</option>–>-->
|
||
<!--<!– </options>–>-->
|
||
<!--</configuration>-->
|
||
<!--<dependencies>-->
|
||
<!--<!– https://mvnrepository.com/artifact/net.sf.proguard/proguard-base –>-->
|
||
<!--<dependency>-->
|
||
<!--<groupId>net.sf.proguard</groupId>-->
|
||
<!--<artifactId>proguard-base</artifactId>-->
|
||
<!--<version>6.2.2</version>-->
|
||
<!--</dependency>-->
|
||
<!--</dependencies>-->
|
||
<!--</plugin>-->
|
||
|
||
<plugin>
|
||
<!-- https://gitee.com/roseboy/classfinal -->
|
||
<groupId>net.roseboy</groupId>
|
||
<artifactId>classfinal-maven-plugin</artifactId>
|
||
<version>1.2.1</version>
|
||
<configuration>
|
||
<password>#</password><!--加密打包之后pom.xml会被删除,不用担心在jar包里找到此密码-->
|
||
<packages>min</packages>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>classFinal</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
|
||
<resources>
|
||
<resource>
|
||
<directory>libs</directory>
|
||
<includes>
|
||
<include>**/*.jar</include>
|
||
</includes>
|
||
</resource>
|
||
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
<includes>
|
||
<include>**/*</include>
|
||
</includes>
|
||
</resource>
|
||
</resources>
|
||
</build>
|
||
<dependencies>
|
||
<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
|
||
<dependency>
|
||
<groupId>commons-codec</groupId>
|
||
<artifactId>commons-codec</artifactId>
|
||
<version>1.13</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-core</artifactId>
|
||
<version>2.2.3</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-annotations</artifactId>
|
||
<version>2.2.3</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-databind</artifactId>
|
||
<version>2.2.3</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/org.json/json -->
|
||
<dependency>
|
||
<groupId>org.json</groupId>
|
||
<artifactId>json</artifactId>
|
||
<version>20080701</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/com.google.zxing/core -->
|
||
<dependency>
|
||
<groupId>com.google.zxing</groupId>
|
||
<artifactId>core</artifactId>
|
||
<version>3.4.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>ch.qos.logback</groupId>
|
||
<artifactId>logback-classic</artifactId>
|
||
<version>1.2.3</version>
|
||
<!-- <scope>test</scope>-->
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.netty</groupId>
|
||
<artifactId>netty-all</artifactId>
|
||
<version>4.1.42.Final</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>MINSocket</groupId>
|
||
<artifactId>MINSocket</artifactId>
|
||
<version>1.1.2</version>
|
||
<scope>system</scope>
|
||
<systemPath>${basedir}/libs/MINSocket-1.1.2-all.jar</systemPath>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>gmhelper</groupId>
|
||
<artifactId>gmhelper</artifactId>
|
||
<version>1.0.0</version>
|
||
<scope>system</scope>
|
||
<systemPath>${basedir}/libs/gmhelper.jar</systemPath>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
|
||
|
||
<!-- <!– https://mvnrepository.com/artifact/io.netty/netty-all –>-->
|
||
|
||
|
||
<!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna -->
|
||
<dependency>
|
||
<groupId>net.java.dev.jna</groupId>
|
||
<artifactId>jna</artifactId>
|
||
<version>5.5.0</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna-platform -->
|
||
<dependency>
|
||
<groupId>net.java.dev.jna</groupId>
|
||
<artifactId>jna-platform</artifactId>
|
||
<version>5.5.0</version>
|
||
</dependency>
|
||
<!-- <!– https://mvnrepository.com/artifact/com.nativelibs4java/jnaerator –>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.nativelibs4java</groupId>-->
|
||
<!-- <artifactId>jnaerator</artifactId>-->
|
||
<!-- <version>0.12</version>-->
|
||
<!-- </dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>org.bouncycastle</groupId>
|
||
<artifactId>bcprov-jdk15on</artifactId>
|
||
<version>1.65</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.bouncycastle</groupId>
|
||
<artifactId>bcpkix-jdk15on</artifactId>
|
||
<version>1.65</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>4.13.1</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>net.sf.proguard</groupId>-->
|
||
<!-- <artifactId>proguard-base</artifactId>-->
|
||
<!-- <version>6.0.3</version>-->
|
||
<!-- </dependency>-->
|
||
|
||
</dependencies>
|
||
|
||
</project> |