如何在 Spring Boot 中使用 Maven 构建可执行 JAR

springboot瘦身打包(jar)配置(maven打包) 阅读详情

How to build executable JAR with Maven in Spring Boot - Websparrowhttps://www.websparrow.org/spring/how-to-build-executable-jar-with-maven-in-spring-boot

在本教程中,我们将学习如何在 Spring Boot 应用程序中使用 Maven 构建可执行 JAR。Spring Boot 提供spring-boot-maven-plugin来创建或构建 Spring Boot 应用程序的可执行 JAR。

按照以下步骤构建可执行 JAR:

第 1 步:转到您的 Spring Boot 应用程序并打开pom.xml文件。

第二步:在pom.xml文件中提及打包类型

<packaging>jar</packaging>

并在关闭依赖项标记下方添加以下spring-boot-maven-plugin</dependencies>代码。

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
		</plugin>
	</plugins>
</build>

第 3 步:现在运行mvn clean package命令。如果您使用的是 STS/Eclipse IDE,请右键单击您的项目 » 运行方式 » Maven 构建... » 目标:clean package» 运行。

第 4 步: 第 3 步将创建 Spring Boot 应用程序的可执行 JAR 文件并将其放在目标文件夹中。

第 5 步:使用以下 Java 命令运行可执行 JAR。

java -jar target/<your-jar-name>.jar

我附上了完整的pom.xml文件供您参考。

pom.xml
<?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>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.3.RELEASE</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
	<groupId>org.websparrow</groupId>
	<artifactId>springboot-exe-jar</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>springboot-exe-jar</name>

	<!-- define the packaging type -->
	<packaging>jar</packaging>

	<properties>
		<java.version>1.8</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<!-- Spring boot maven plugin to create executable JAR -->
	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>

Microsoft Windows [版本 10.0.19044.1466]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>cd C:\hk-springboot-jsp

C:\hk-springboot-jsp>mvnw clean package

Error: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.


C:\hk-springboot-jsp>set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_311

C:\hk-springboot-jsp>mvnw clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------< com.hellokoding.springboot:hk-springboot-jsp >------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ hk-springboot-jsp ---
[INFO] Deleting C:\hk-springboot-jsp\target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ hk-springboot-jsp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ hk-springboot-jsp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\hk-springboot-jsp\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ hk-springboot-jsp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory C:\hk-springboot-jsp\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ hk-springboot-jsp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\hk-springboot-jsp\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ hk-springboot-jsp ---
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.pom (11 kB at 5.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5.2/maven-plugin-annotations-3.5.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5.2/maven-plugin-annotations-3.5.2.pom (1.6 kB at 4.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugin-tools/maven-plugin-tools/3.5.2/maven-plugin-tools-3.5.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugin-tools/maven-plugin-tools/3.5.2/maven-plugin-tools-3.5.2.pom (15 kB at 39 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.pom (3.5 kB at 13 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.pom (2.0 kB at 6.6 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.pom (7.5 kB at 9.3 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.pom (2.4 kB at 8.6 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-shared-components/15/maven-shared-components-15.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-shared-components/15/maven-shared-components-15.pom (9.3 kB at 8.1 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-parent/16/maven-parent-16.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 kB at 104 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/thoughtworks/qdox/qdox/2.0-M8/qdox-2.0-M8.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/thoughtworks/qdox/qdox/2.0-M8/qdox-2.0-M8.pom (16 kB at 48 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5.2/maven-plugin-annotations-3.5.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.jar (13 kB at 9.6 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5.2/maven-plugin-annotations-3.5.2.jar (14 kB at 8.4 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/thoughtworks/qdox/qdox/2.0-M8/qdox-2.0-M8.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar (11 kB at 5.6 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.jar (186 kB at 80 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.jar (274 kB at 105 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.jar (528 kB at 198 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/thoughtworks/qdox/qdox/2.0-M8/qdox-2.0-M8.jar (316 kB at 102 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.pom (7.0 kB at 21 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-providers/2.22.2/surefire-providers-2.22.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-providers/2.22.2/surefire-providers-2.22.2.pom (2.5 kB at 7.6 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.pom (2.2 kB at 6.8 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.pom (2.4 kB at 2.0 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.pom (2.0 kB at 5.6 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.jar (78 kB at 136 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.jar (95 kB at 161 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.jar (135 kB at 224 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.jar (66 kB at 105 kB/s)
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.hellokoding.springboot.DemoApplicationTests
14:16:04.373 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
14:16:04.480 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
14:16:04.784 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.hellokoding.springboot.DemoApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
14:16:04.861 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.hellokoding.springboot.DemoApplicationTests], using SpringBootContextLoader
14:16:04.952 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.hellokoding.springboot.DemoApplicationTests]: class path resource [com/hellokoding/springboot/DemoApplicationTests-context.xml] does not exist
14:16:04.954 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.hellokoding.springboot.DemoApplicationTests]: class path resource [com/hellokoding/springboot/DemoApplicationTestsContext.groovy] does not exist
14:16:04.955 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.hellokoding.springboot.DemoApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
14:16:04.961 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.hellokoding.springboot.DemoApplicationTests]: DemoApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
14:16:05.254 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.hellokoding.springboot.DemoApplicationTests]
14:16:05.648 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\hk-springboot-jsp\target\classes\com\hellokoding\springboot\DemoApplication.class]
14:16:05.654 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.hellokoding.springboot.DemoApplication for test class com.hellokoding.springboot.DemoApplicationTests
14:16:06.485 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.hellokoding.springboot.DemoApplicationTests]: using defaults.
14:16:06.488 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
14:16:06.600 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
14:16:06.602 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
14:16:06.605 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@563f38c4, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@543295b0, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@54422e18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@117159c0, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@3e27ba32, org.springframework.test.context.support.DirtiesContextTestExecutionListener@7ef82753, org.springframework.test.context.event.EventPublishingTestExecutionListener@3b0fe47a, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@202b0582, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@235ecd9f, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1ca3b418, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@58cbafc2, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@2034b64c, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@75d3a5e0]
14:16:06.622 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@7bba5817 testClass = DemoApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@742ff096 testClass = DemoApplicationTests, locations = '{}', classes = '{class com.hellokoding.springboot.DemoApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@55b7a4e0, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@72057ecf, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5e0826e7, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@158da8e, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@9f116cc, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@56f4468b], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.3)

2022-01-27 14:16:08.224  INFO 17344 --- [           main] c.h.springboot.DemoApplicationTests      : Starting DemoApplicationTests using Java 1.8.0_311 on x220win10 with PID 17344 (started by Administrator in C:\hk-springboot-jsp)
2022-01-27 14:16:08.228  INFO 17344 --- [           main] c.h.springboot.DemoApplicationTests      : No active profile set, falling back to default profiles: default
2022-01-27 14:16:17.340  INFO 17344 --- [           main] c.h.springboot.DemoApplicationTests      : Started DemoApplicationTests in 10.47 seconds (JVM running for 18.965)
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.424 s - in com.hellokoding.springboot.DemoApplicationTests
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ hk-springboot-jsp ---
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.5.2/maven-archiver-3.5.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.5.2/maven-archiver-3.5.2.pom (5.5 kB at 8.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/3.1.1/maven-artifact-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/3.1.1/maven-artifact-3.1.1.pom (2.0 kB at 6.9 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven/3.1.1/maven-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven/3.1.1/maven-3.1.1.pom (22 kB at 29 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model/3.1.1/maven-model-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model/3.1.1/maven-model-3.1.1.pom (4.1 kB at 14 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-core/3.1.1/maven-core-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-core/3.1.1/maven-core-3.1.1.pom (7.3 kB at 27 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings/3.1.1/maven-settings-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings/3.1.1/maven-settings-3.1.1.pom (2.2 kB at 7.5 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings-builder/3.1.1/maven-settings-builder-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings-builder/3.1.1/maven-settings-builder-3.1.1.pom (2.6 kB at 4.3 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/3.1.1/maven-repository-metadata-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/3.1.1/maven-repository-metadata-3.1.1.pom (2.2 kB at 8.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/3.1.1/maven-plugin-api-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/3.1.1/maven-plugin-api-3.1.1.pom (3.4 kB at 16 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M5/org.eclipse.sisu.plexus-0.0.0.M5.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M5/org.eclipse.sisu.plexus-0.0.0.M5.pom (4.8 kB at 18 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-plexus/0.0.0.M5/sisu-plexus-0.0.0.M5.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-plexus/0.0.0.M5/sisu-plexus-0.0.0.M5.pom (13 kB at 61 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.pom (2.5 kB at 8.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-inject/0.0.0.M5/sisu-inject-0.0.0.M5.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-inject/0.0.0.M5/sisu-inject-0.0.0.M5.pom (14 kB at 62 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model-builder/3.1.1/maven-model-builder-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model-builder/3.1.1/maven-model-builder-3.1.1.pom (2.8 kB at 11 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-aether-provider/3.1.1/maven-aether-provider-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-aether-provider/3.1.1/maven-aether-provider-3.1.1.pom (4.1 kB at 26 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.5.1/plexus-classworlds-2.5.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.5.1/plexus-classworlds-2.5.1.pom (5.0 kB at 14 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom (18 kB at 51 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/4.2.7/plexus-archiver-4.2.7.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/4.2.7/plexus-archiver-4.2.7.pom (4.9 kB at 7.7 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus/8/plexus-8.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus/8/plexus-8.pom (25 kB at 102 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.4.1/plexus-utils-3.4.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.4.1/plexus-utils-3.4.1.pom (8.0 kB at 28 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.21/commons-compress-1.21.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.21/commons-compress-1.21.pom (20 kB at 33 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tukaani/xz/1.9/xz-1.9.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tukaani/xz/1.9/xz-1.9.pom (2.0 kB at 7.8 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.pom (5.8 kB at 32 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.3.1/plexus-utils-3.3.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.3.1/plexus-utils-3.3.1.pom (5.3 kB at 15 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.5.2/maven-archiver-3.5.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-interpolation/1.16/plexus-interpolation-1.16.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/4.2.7/plexus-archiver-4.2.7.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tukaani/xz/1.9/xz-1.9.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.20/commons-compress-1.20.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.5.2/maven-archiver-3.5.2.jar (26 kB at 35 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-interpolation/1.16/plexus-interpolation-1.16.jar (61 kB at 57 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.3.1/plexus-utils-3.3.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tukaani/xz/1.9/xz-1.9.jar (116 kB at 46 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar (153 kB at 49 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/4.2.7/plexus-archiver-4.2.7.jar (195 kB at 60 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.3.1/plexus-utils-3.3.1.jar (262 kB at 68 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.20/commons-compress-1.20.jar (632 kB at 134 kB/s)
[INFO] Building jar: C:\hk-springboot-jsp\target\hk-springboot-jsp-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.6.3:repackage (repackage) @ hk-springboot-jsp ---
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-buildpack-platform/2.6.3/spring-boot-buildpack-platform-2.6.3.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-buildpack-platform/2.6.3/spring-boot-buildpack-platform-2.6.3.pom (3.4 kB at 4.7 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna-platform/5.7.0/jna-platform-5.7.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna-platform/5.7.0/jna-platform-5.7.0.pom (1.8 kB at 3.1 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna/5.7.0/jna-5.7.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna/5.7.0/jna-5.7.0.pom (1.6 kB at 2.0 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.pom (2.8 kB at 4.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.pom (3.6 kB at 4.4 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/antlr/antlr4-master/4.7.2/antlr4-master-4.7.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/antlr/antlr4-master/4.7.2/antlr4-master-4.7.2.pom (4.4 kB at 5.3 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom (4.3 kB at 8.9 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.6.3/spring-boot-loader-tools-2.6.3.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.6.3/spring-boot-loader-tools-2.6.3.pom (2.3 kB at 4.4 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-common-artifact-filters/3.2.0/maven-common-artifact-filters-3.2.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-common-artifact-filters/3.2.0/maven-common-artifact-filters-3.2.0.pom (6.9 kB at 16 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/3.6.3/maven-plugin-api-3.6.3.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/3.6.3/maven-plugin-api-3.6.3.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model/3.6.3/maven-model-3.6.3.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model/3.6.3/maven-model-3.6.3.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/3.6.3/maven-artifact-3.6.3.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/3.6.3/maven-artifact-3.6.3.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.plexus/0.3.4/org.eclipse.sisu.plexus-0.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.plexus/0.3.4/org.eclipse.sisu.plexus-0.3.4.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-plexus/0.3.4/sisu-plexus-0.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-plexus/0.3.4/sisu-plexus-0.3.4.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.4/org.eclipse.sisu.inject-0.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.4/org.eclipse.sisu.inject-0.3.4.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-inject/0.3.4/sisu-inject-0.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/sisu-inject/0.3.4/sisu-inject-0.3.4.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.5.2/plexus-classworlds-2.5.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.5.2/plexus-classworlds-2.5.2.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.17.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.17.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.6.0/plexus-classworlds-2.6.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.6.0/plexus-classworlds-2.6.0.pom (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/3.2.4/maven-shade-plugin-3.2.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/3.2.4/maven-shade-plugin-3.2.4.pom (11 kB at 46 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-artifact-transfer/0.12.0/maven-artifact-transfer-0.12.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-artifact-transfer/0.12.0/maven-artifact-transfer-0.12.0.pom (11 kB at 16 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/8.0/asm-8.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/8.0/asm-8.0.pom (2.9 kB at 11 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-commons/8.0/asm-commons-8.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-commons/8.0/asm-commons-8.0.pom (3.7 kB at 12 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-tree/8.0/asm-tree-8.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-tree/8.0/asm-tree-8.0.pom (3.1 kB at 21 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-analysis/8.0/asm-analysis-8.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-analysis/8.0/asm-analysis-8.0.pom (3.2 kB at 11 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom (4.6 kB at 6.6 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.pom (7.5 kB at 39 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/vafer/jdependency/2.4.0/jdependency-2.4.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/vafer/jdependency/2.4.0/jdependency-2.4.0.pom (15 kB at 22 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-util/8.0/asm-util-8.0.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-util/8.0/asm-util-8.0.pom (3.7 kB at 14 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava/28.2-android/guava-28.2-android.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava/28.2-android/guava-28.2-android.pom (11 kB at 43 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava-parent/28.2-android/guava-parent-28.2-android.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava-parent/28.2-android/guava-parent-28.2-android.pom (13 kB at 39 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.pom (2.4 kB at 9.0 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava-parent/26.0-android/guava-parent-26.0-android.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava-parent/26.0-android/guava-parent-26.0-android.pom (10 kB at 53 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.pom (2.3 kB at 17 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.pom (2.7 kB at 5.4 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.pom (2.1 kB at 9.0 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/errorprone/error_prone_parent/2.3.4/error_prone_parent-2.3.4.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/errorprone/error_prone_parent/2.3.4/error_prone_parent-2.3.4.pom (5.4 kB at 24 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.pom (2.8 kB at 13 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.pom (28 kB at 171 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-buildpack-platform/2.6.3/spring-boot-buildpack-platform-2.6.3.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna/5.7.0/jna-5.7.0.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna-platform/5.7.0/jna-platform-5.7.0.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-buildpack-platform/2.6.3/spring-boot-buildpack-platform-2.6.3.jar (242 kB at 286 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.jar (157 kB at 119 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar (1.0 MB at 637 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.6.3/spring-boot-loader-tools-2.6.3.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna-platform/5.7.0/jna-platform-5.7.0.jar (1.3 MB at 794 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-common-artifact-filters/3.2.0/maven-common-artifact-filters-3.2.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar (20 kB at 12 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/3.1.1/maven-artifact-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.jar (338 kB at 186 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model/3.1.1/maven-model-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.6.3/spring-boot-loader-tools-2.6.3.jar (249 kB at 110 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-core/3.1.1/maven-core-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-common-artifact-filters/3.2.0/maven-common-artifact-filters-3.2.0.jar (61 kB at 26 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings/3.1.1/maven-settings-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/3.1.1/maven-artifact-3.1.1.jar (52 kB at 21 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings-builder/3.1.1/maven-settings-builder-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model/3.1.1/maven-model-3.1.1.jar (154 kB at 56 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/3.1.1/maven-repository-metadata-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-core/3.1.1/maven-core-3.1.1.jar (557 kB at 193 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model-builder/3.1.1/maven-model-builder-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings-builder/3.1.1/maven-settings-builder-3.1.1.jar (42 kB at 14 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-aether-provider/3.1.1/maven-aether-provider-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/3.1.1/maven-repository-metadata-3.1.1.jar (25 kB at 8.2 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-interpolation/1.19/plexus-interpolation-1.19.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-settings/3.1.1/maven-settings-3.1.1.jar (42 kB at 14 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M5/org.eclipse.sisu.plexus-0.0.0.M5.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-interpolation/1.19/plexus-interpolation-1.19.jar (62 kB at 18 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-aether-provider/3.1.1/maven-aether-provider-3.1.1.jar (60 kB at 17 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/net/java/dev/jna/jna/5.7.0/jna-5.7.0.jar (1.7 MB at 487 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/3.6.3/maven-plugin-api-3.6.3.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-model-builder/3.1.1/maven-model-builder-3.1.1.jar (160 kB at 46 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.6.0/plexus-classworlds-2.6.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar (0 B at 0 B/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-classworlds/2.6.0/plexus-classworlds-2.6.0.jar (0 B at 0 B/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/3.6.3/maven-plugin-api-3.6.3.jar (0 B at 0 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-artifact-transfer/0.12.0/maven-artifact-transfer-0.12.0.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/3.2.4/maven-shade-plugin-3.2.4.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/8.0/asm-8.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.jar (291 kB at 74 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-commons/8.0/asm-commons-8.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/eclipse/sisu/org.eclipse.sisu.plexus/0.0.0.M5/org.eclipse.sisu.plexus-0.0.0.M5.jar (197 kB at 49 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/3.2.4/maven-shade-plugin-3.2.4.jar (134 kB at 34 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-tree/8.0/asm-tree-8.0.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-analysis/8.0/asm-analysis-8.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-artifact-transfer/0.12.0/maven-artifact-transfer-0.12.0.jar (120 kB at 30 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/8.0/asm-8.0.jar (122 kB at 30 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-tree/8.0/asm-tree-8.0.jar (53 kB at 12 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/vafer/jdependency/2.4.0/jdependency-2.4.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-analysis/8.0/asm-analysis-8.0.jar (33 kB at 7.7 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-util/8.0/asm-util-8.0.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.jar (37 kB at 8.4 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava/28.2-android/guava-28.2-android.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-commons/8.0/asm-commons-8.0.jar (72 kB at 15 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm-util/8.0/asm-util-8.0.jar (85 kB at 17 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/vafer/jdependency/2.4.0/jdependency-2.4.0.jar (180 kB at 35 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar (4.6 kB at 769 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar (2.2 kB at 365 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.jar (5.9 kB at 962 B/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar (305 kB at 50 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar (8.8 kB at 1.4 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.jar (14 kB at 2.2 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar (500 kB at 78 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/google/guava/guava/28.2-android/guava-28.2-android.jar (2.6 MB at 400 kB/s)
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:35 min
[INFO] Finished at: 2022-01-27T14:16:57+08:00
[INFO] ------------------------------------------------------------------------

C:\hk-springboot-jsp>

参考

  1. 创建可执行 Jar
  2. Spring Boot Maven 插件
Spring Boot 可执行 Jar 包运行原理 Spring Boot 有一个很方便的功能就是可以将应用打成可执行的 Jar。那么大家有没想过这个 Jar 是怎么运行起来的呢?本篇博客就来介绍下 Spring Boot 可执行 Jar 包的运行原理。 阅读详情

相关推荐

Maven jar包管理机制及spring boot相关说明

1 maven作用 Maven项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的项目管理工具软件。 Maven是一站式的项目的管理软件 主要的功能:项目的创建/jar包管理/项目打包/发布/部署等功能. 2 maven命令说明 java编译过程: .java文件---------.class文件-------打包----(.class文件的集合) xxx.jar 1).clean 清空maven中的target目录… 2).compile 通过命令 maven将.java文件转化为

weixin_54685622的博客 2131

如何使用maven将spring boot项目打成jar包

如果你使用的是maven来管理项目,执行以下命令即可 cd 项目跟目录(和pom.xml同级) mvn clean package ## 或者执行下面的命令 ## 排除测试代码后进行打包 mvn clean package -Dmaven.test.skip=true 也可以在eclipse中直接打包,步骤如下: 右键选择项目 Run As--&gt;Maven build... ...

IT的鱼 715

聚合maven+spring-boot打包可执行jar

原创文章,转载请注明          整整搞了一天,终于解决这个问题了。这里是四个module,module之间存在依赖,打包两个可执行jar,看下最终效果吧                    聚合maven+spring-boot的搭建很简单,和普通的聚合maven没有什么区别。聚合maven+spring-boot打包成可执行jar就不是那么容易了,主要是因为spring-b

guduyishuai的博客 4万+

springboot项目使用maven打jar包

使用maven打包 1.SpringBoot自带简单的spring-boot-maven-plugin插件用来打包,只需要在pom.xml中加入以下: <project> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <

enhenglhm的博客 2876

spring boot webapp 部署可执行jar包

概述:springboot 在eclipse中使用内嵌服务容器启动,仅需run 启动主函数main来加载配置文件和容器初始化问题:怎样部署springboot为可执行jarspringboot 使用内嵌容器来提供服务,但是当我使用maven 打可执行jar时,其无法将静态文件(html/jsp)一并打入可执行文件解决:使用maven resource将静态文件包含在内(注意:targetPath)...

fr1374171940的博客 3881

Maven打包全解析:从Jar包原理到Spring Boot实战

在Java开发中,Jar包作为代码交付的标准格式,其打包方式直接影响应用的部署与运行。理解Jar包的本质——一个包含MANIFEST.MF清单文件的特殊ZIP压缩包,是掌握打包技术的基础。Maven作为主流构建工具,通过其生命周期管理和插件机制,提供了多种打包策略,从仅包含项目代码的“瘦Jar”到集成所有依赖的“Fat Jar”,每种方式都对应不同的应用场景。在工程实践中,合理选择打包方式能有效解决依赖冲突、资源加载等常见问题,提升部署效率。本文聚焦于**Maven打包**和**可执行Jar**这两个核心热

weixin_34101229的博客 351

Spring Boot Maven 插件:构建可执行 JAR 的核心配置

Spring Boot Maven插件是Spring Boot应用开发的核心工具,主要功能是将应用及其依赖打包为可独立运行的JAR/WAR文件。该插件提供5个核心目标:repackage(生成可执行包)、run(直接运行应用)、start/stop(集成测试阶段启停应用)和build-info(生成构建信息)。 插件支持多种配置选项,包括指定主类、跳过执行、包含系统依赖、定义打包格式等。通过executions标签可以绑定构建生命周期,实现自动化打包和测试。

小李同学的博客 1992

Maven打包实战:从基础Jar到Spring Boot可执行包的完整指南

在Java项目构建与部署中,Maven作为核心构建工具,其打包机制是项目交付的关键环节。理解Maven打包原理,有助于解决依赖管理、资源配置和部署运行中的常见问题。通过分析默认的“瘦Jar”机制,可以明确库项目与应用项目在打包目标上的本质区别。掌握可执行Jar包的构建技术,特别是“胖Jar”方案,能确保应用具备独立运行能力,直接提升部署效率。在实际工程中,结合Spring Boot Maven Plugin等现代插件,可以实现依赖嵌套、分层优化等高级特性,有效应对依赖冲突、资源过滤等复杂场景。本文围绕Mav

weixin_34037515的博客 436

深入解析:Spring Boot可执行JAR为何能直接运行?

Spring Boot JAR 可直接运行的核心原因:‌Fat JAR 结构‌:整合依赖、类加载器和应用代码‌。‌自定义类加载器‌:通过 JarLauncher 和 LaunchedURLClassLoader 加载嵌套 JAR‌。‌插件支持‌:spring-boot-maven-plugin 生成可执行包‌。‌嵌入式服务器‌:内置 Web 容器实现自包含部署‌。这些机制共同实现了 java -jar 直接启动 Spring Boot 应用的便捷性。

chenzhong373095238的博客 1325

别再手动写ZPL了!用C#和斑马官方SDK搞定ZT410 RFID打印机(附中文乱码解决方案)

本文详细介绍了如何使用C#和斑马官方SDK驱动ZT410 RFID打印机,解决中文乱码和RFID数据写入等常见问题。通过实战指南,开发者可以快速掌握从基础连接到高级调试的全流程,提升打印效率和可靠性。特别适用于物流、零售和资产管理领域的应用。

weixin_29267307的博客 230

C++继承与多态 - 继承多态原理01

C++继承多态原理讲解

大秦坑王的专栏 2986

SpringBoot打包之spring-boot-maven-plugin插件编译可执行Jar包原理分析

Spring Boot 为我们使用、构建和运行 Spring 项目带来了极大的方便,Spring Boot 可以通过 Gradle 或者 Maven 插件将项目构建成==可执行==的 Jar 包,使得我们写的 Web 项目也可以直接通过 `java -jar xxx.jar` 方式直接启动。Spring Boot 在 Maven 是通过引入 spring-boot-maven-plugin 插件来构建可执行 Jar 包的。

我的小地方 9374

UWB定位原理详细介绍

Hello大家好我是小智,今天我来给大家介绍下超宽带的定位原理,首先我们来讲下什么是UWB技术。 超宽带(Ultra Wide Band)简称UWB,和我们熟悉的WIFI、蓝牙技术一样属于通信技术的一种,UWB是一种无线载波通信技术,它不采用正弦载波,而是利用纳秒级的非正弦波窄脉冲传输数据,其所占的频谱范围很宽,右图是一种典型的正弦载波信号图。 UWB这种技术有什么特点呢? UWB系统结构实现简单;2.具有高速的数据传输能力;3.功耗低;4.安全性高;5.多径分辨能力强;6.可用于精确定位等特点。 UWB.

qq_35699674的博客 2万+

Spring Boot项目Maven打包实战:从依赖缺失到可执行胖Jar

在Java应用开发中,依赖管理是构建可部署应用的核心环节。Maven作为主流构建工具,其默认打包机制仅包含项目自身编译产物,导致部署时频繁出现ClassNotFoundException等依赖缺失问题。Spring Boot通过spring-boot-maven-plugin创新性地引入可执行胖Jar(Fat Jar)解决方案,将项目代码与所有第三方依赖整合为单一可执行文件,极大简化了部署流程。这种自包含的打包方式不仅解决了环境依赖问题,更为持续集成和容器化部署奠定了坚实基础。本文聚焦Spring Boot

weixin_30385925的博客 279

SAP采购订单行项目增强实战:用BADI ME_GUI_PO_CUST添加自定义字段(避坑指南)

本文详细解析了如何通过BADI ME_GUI_PO_CUST在SAP采购订单行项目中添加自定义字段,包括技术架构理解、字段扩展步骤、自定义函数组创建及BADI实现。文章特别强调了避开官方文档未提及的陷阱,如字段映射限制和屏幕显示问题,并提供了高级优化技巧和性能建议。

weixin_30402343的博客 608

前端实现微信扫一扫的思路

本篇文章的关键点就是讲解了我在实现处理多张二维码的场景时的思路,利用canvas遮挡识别过的二维码这个思路是pbk-bin大佬最先想到的,在实现这个需求以后还是很感叹这个思路的巧妙。👏pbk-bin🎁~如果文章对你有帮助,不妨赠人玫瑰,手有余香,预计将会在下篇更新较为完整的微信扫一扫界面和功能。

fang_my的博客 2496

深度解析Spring Boot可执行JAR的构建与启动机制

传统Java应用的JAR包在依赖管理上存在明显短板,依赖项需要单独配置classpath。通过深入理解Spring Boot的打包机制和启动原理,开发者可以更好地优化应用架构设计,提升部署效率,并有效排查类加载相关的问题。

yuanmomoya的博客 1026

英飞凌TC3xx之一起认识GTM系列(一)先来认识GTM架构

本文讲述英飞凌TC3xx的通用计时器GTM的架构。

无所适从的我的博客 4605

在Intellij Idea中Maven构建的Spring Boot项目打jar包

IDE工具:Intellij Idea 2017.1.3,项目管理工具:Maven,框架:Spring Boot  公司一个小项目一个人做,就萌生了用spring boot的想法,自己摸索难免很多弯路,此处对打可执行的jar做一个小计。 失败的尝试:File --&gt; Project Structure --&gt; Project Settings --&gt; Artifacts --...

洋成林 2万+

【Python爬虫实战】同程旅行景点门票信息全量采集:从入门到高级,动态页面解析与反爬对策

随着旅游业的高速发展,线上旅游平台成为人们规划出行的重要工具。同程旅行作为中国领先的在线旅游服务平台,提供丰富的景点门票预订服务。对旅游行业分析师、电商运营人员,乃至数据爱好者来说,采集同程旅行景点门票数据不仅有助于洞察市场价格波动、游客偏好,还能辅助构建智能推荐模型。然而,同程旅行网站内容复杂,存在JavaScript动态渲染和反爬策略,传统爬虫直接抓取面临挑战。本篇文章将带你一步步攻克这些难题,用Python爬虫技术全量采集同程旅行景点门票信息。

2201_76125261的博客 1576

OpenCASCADE完整教程专栏完整目录

OpenCASCADE完整教程专栏完整目录

希望我的博客,能帮上你解决学习中工作中所遇到的问题 9738

Spring Boot项目Maven打包全攻略:从Fat Jar到Docker分层构建

在Java应用开发中,依赖管理和打包部署是保障应用可移植性与一致性的核心环节。其原理在于通过构建工具将项目代码与第三方库组织成可独立运行的部署单元。这一技术对于实现持续集成、环境标准化和云原生部署具有关键价值,广泛应用于微服务架构、容器化部署等场景。本文聚焦于Spring Boot项目,深入解析如何使用Maven插件实现高效打包。通过对比Fat Jar、Thin Jar及Docker分层镜像等不同策略,并结合依赖冲突、资源路径等高频问题,提供从基础配置到CI/CD集成的实战指南,帮助开发者构建可靠、高效的部

weixin_33912453的博客 548

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

Spring Boot Thin Launcher:如何构建轻量级可执行JAR的终极指南

Spring Boot Thin Launcher是一款强大的工具,专门用于构建"瘦"可执行JAR文件,特别适合Spring Boot应用。它通过分离应用代码和依赖项,显著减小JAR体积,提升部署效率和启动速度。 ## 🚀 什么是Spring Boot Thin Launcher? 传统的Spring Boot应用打包会将所有依赖项都包含在一个大型JAR文件中,这不仅增加了文件大小,还导致部

gitblog_01117的博客 607

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

SpringBoot spring-boot-maven-plugin 打包为可执行Jar方法。(已验证)

之前写的打包方式有问题,自已第二次用用那个方法都没成功,所以不能坑别人- - ,重新写一下。 先写方法,再说为什么。打包方式用的是spring-boot-maven-plugin插件打包。 <plugins> <plugin> <groupId>org.springframework.boot</groupId&gt...

sunpx3的博客 6万+

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

java可执行程序,java -jar命令,spring-boot-maven-plugin插件

Java 档案文件.通常jar 为压缩文件, 与 ZIP/RAR 压缩文件 一样的概念,区别在于 jar 文件中存在一个名为META-INF/MANIFEST.MF 的清单文件。关于JAR包的描述信息、启动时的配置信息和安全性信息等均保存在其中,可以理解为 jar 的一个’配置说明文件’。但是为了运行 jar 格式的应用程序,必须有一个Java 运行时环境(JRE)。

黄彪博客 870

spring-boot-maven-plugin 将spring打包成单个jar的工作原理

核心功能:将 Spring Boot 应用及其依赖打包成一个自包含的 JAR。 关键机制:自定义类加载器(JarLauncher)和嵌套依赖结构(BOOT-INF/lib)。 优势:简化部署,无需外部 Web 服务器或依赖管理。 适用场景:独立运行、容器化部署(Docker)等。

zfj321的博客 1713
上一篇: Spring Boot JSP 示例
下一篇: 创建 Spring Boot Runnable JAR 文件
allway2
博客等级 码龄16年 6723粉丝 8038原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值