|
@@ -16,12 +16,12 @@
|
|
|
<dependency>
|
|
|
<groupId>com.litongjava</groupId>
|
|
|
<artifactId>tio-http-server</artifactId>
|
|
|
- <version>3.7.3.v20240919-RELEASE</version>
|
|
|
+ <version>3.7.3.v20250301-RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.litongjava</groupId>
|
|
|
<artifactId>java-db</artifactId>
|
|
|
- <version>1.2.6</version>
|
|
|
+ <version>1.4.9</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
@@ -31,16 +31,6 @@
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
- <!-- https://mvnrepository.com/artifact/com.jfinal/activerecord -->
|
|
|
- <!--
|
|
|
- <dependency>
|
|
|
- <groupId>com.jfinal</groupId>
|
|
|
- <artifactId>activerecord</artifactId>
|
|
|
- <version>5.1.6</version>
|
|
|
- </dependency>
|
|
|
- -->
|
|
|
-
|
|
|
-
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
|
<artifactId>fastjson2</artifactId>
|
|
@@ -66,144 +56,67 @@
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
- <profiles>
|
|
|
- <!-- 开发环境 -->
|
|
|
- <profile>
|
|
|
- <id>development</id>
|
|
|
- <activation>
|
|
|
- <activeByDefault>true</activeByDefault>
|
|
|
- </activation>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>ch.qos.logback</groupId>
|
|
|
- <artifactId>logback-classic</artifactId>
|
|
|
- <version>1.2.13</version>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- </profile>
|
|
|
+ <repositories>
|
|
|
+ <repository>
|
|
|
+ <id>central</id>
|
|
|
+ <name>Central Repository</name>
|
|
|
+ <url>https://repo.maven.apache.org/maven2</url>
|
|
|
+ </repository>
|
|
|
+ <repository>
|
|
|
+ <id>sonatype-nexus-snapshots</id>
|
|
|
+ <name>Sonatype Nexus Snapshots</name>
|
|
|
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
+ <pluginRepositories>
|
|
|
+ <pluginRepository>
|
|
|
+ <id>central</id>
|
|
|
+ <name>Central Repository</name>
|
|
|
+ <url>https://repo.maven.apache.org/maven2</url>
|
|
|
+ </pluginRepository>
|
|
|
+ <pluginRepository>
|
|
|
+ <id>sonatype-nexus-snapshots</id>
|
|
|
+ <name>Sonatype Nexus Snapshots</name>
|
|
|
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
+ <releases>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </releases>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </pluginRepository>
|
|
|
+ </pluginRepositories>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <inherited>true</inherited>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.0</version>
|
|
|
+ <configuration>
|
|
|
+ <debug>false</debug>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
|
|
|
- <!-- 生产环境 -->
|
|
|
- <profile>
|
|
|
- <id>production</id>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>ch.qos.logback</groupId>
|
|
|
- <artifactId>logback-classic</artifactId>
|
|
|
- <version>1.2.13</version>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <version>2.7.4</version>
|
|
|
- <configuration>
|
|
|
- <mainClass>${main.class}</mainClass>
|
|
|
- <excludeGroupIds>org.projectlombok</excludeGroupIds>
|
|
|
- </configuration>
|
|
|
- <!-- 设置执行目标 -->
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>repackage</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- <!-- assembly -->
|
|
|
- <profile>
|
|
|
- <id>assembly</id>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>ch.qos.logback</groupId>
|
|
|
- <artifactId>logback-classic</artifactId>
|
|
|
- <version>1.2.13</version>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <version>3.2.0</version>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <version>3.1.1</version>
|
|
|
- <configuration>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <mainClass>${main.class}</mainClass>
|
|
|
- </manifest>
|
|
|
- </archive>
|
|
|
- <descriptorRefs>
|
|
|
- <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
- </descriptorRefs>
|
|
|
- <appendAssemblyId>false</appendAssemblyId>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- <profile>
|
|
|
- <id>native</id>
|
|
|
- <dependencies>
|
|
|
- <!-- GraalVM 环境使用 jdk log -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.slf4j</groupId>
|
|
|
- <artifactId>slf4j-jdk14</artifactId>
|
|
|
- <version>1.7.31</version>
|
|
|
- </dependency>
|
|
|
- <!-- GraalVM -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.graalvm.sdk</groupId>
|
|
|
- <artifactId>graal-sdk</artifactId>
|
|
|
- <version>${graalvm.version}</version>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- <build>
|
|
|
- <finalName>${project.artifactId}</finalName>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.graalvm.nativeimage</groupId>
|
|
|
- <artifactId>native-image-maven-plugin</artifactId>
|
|
|
- <version>21.2.0</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>native-image</goal>
|
|
|
- </goals>
|
|
|
- <phase>package</phase>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- <configuration>
|
|
|
- <skip>false</skip>
|
|
|
- <imageName>${project.artifactId}</imageName>
|
|
|
- <mainClass>${main.class}</mainClass>
|
|
|
- <buildArgs>
|
|
|
- -H:+RemoveSaturatedTypeFlows
|
|
|
- --allow-incomplete-classpath
|
|
|
- --no-fallback
|
|
|
- </buildArgs>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- </profiles>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>3.1.0</version>
|
|
|
+ <configuration>
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
</project>
|