Maven project jar package shortcut plug-in

Add in pom.xml

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

Click to run clean and package on the Maven plug-in of IDEA to package the helloworld project into a jar package,

The packaged jar package is generated in the target folder of the helloworld project.

Run java -jar boot-01-helloworld-1.0-SNAPSHOT.jar with cmd to run the helloworld project.

Just execute the jar package directly on the target server.

Guess you like

Origin blog.csdn.net/david2000999/article/details/115059224