spring boot打成可执行jar
2024-10-20 07:38:08
第一步 添加
<packaging>jar</packaging> 第二步添加
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.hbase2Redis.Hbase2Redis</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
第三步骤
使用maven install 打包,将在target下生成项目jar包xxx-with-dependencies.jar复制出来,执行java -jar xxx-with-dependencies.jar即可运行。
引用自https://www.cnblogs.com/sheeva/p/5032706.html
最新文章
- Sublime 常用插件简介
- centos 6.5 中设置mysql 5.1.73 主从同步配置过程
- 洛谷P2853 [USACO06DEC]牛的野餐Cow Picnic
- 20145212 《Java程序设计》第2周学习总结
- HDU 5685:2016";百度之星"; - 资格赛 Problem A
- Codeforces Round #215 (Div. 1) B
- iOS开发——网络编程OC篇&;Socket编程
- BTREE与其它索引的优缺点对比
- Cut the Cake(大数相乘)
- wx.ToolBar
- php 链接 sqlserver 2005以上版本数据库
- uWSGI参考资料(1.0版本的配置选项列表)
- 关于EasyUI 1.5版Datagrid组件在空数据时无法显示";空记录";提示的BUG解决方法
- WPF 简单的循环GIF播放
- Java【第一篇】基本语法之--关键字、标识符、变量
- 【读书笔记】iOS-库
- LeetCode &; Online Programming Learning Platform
- 【题解】 bzoj1207: [HNOI2004]打鼹鼠 (动态规划)
- $(function(){}) ,$(document).ready(function(){}),window.onload = function(){...},$(window).load(function(){...})区别
- undo文件丢失或损坏
热门文章
- python中pandas数据分析基础3(数据索引、数据分组与分组运算、数据离散化、数据合并)
- jmeter非GUI模式命令
- UVA - 679 Dropping Balls(二叉树的编号)
- 存储器HK1225-7EQ 使用说明书资料
- 聊一聊Java中的各种运算符(转载)
- python计算:pi/4=1-1/3+1/5-1/7+…
- 自己安装windows版本的Flink
- servlet 之 GenericServlet抽象类详解
- Pyinstaller的安装及简单使用
- SciKit-Learn 使用matplotlib可视化数据