第一步 添加

<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

最新文章

  1. Sublime 常用插件简介
  2. centos 6.5 中设置mysql 5.1.73 主从同步配置过程
  3. 洛谷P2853 [USACO06DEC]牛的野餐Cow Picnic
  4. 20145212 《Java程序设计》第2周学习总结
  5. HDU 5685:2016&quot;百度之星&quot; - 资格赛 Problem A
  6. Codeforces Round #215 (Div. 1) B
  7. iOS开发——网络编程OC篇&amp;Socket编程
  8. BTREE与其它索引的优缺点对比
  9. Cut the Cake(大数相乘)
  10. wx.ToolBar
  11. php 链接 sqlserver 2005以上版本数据库
  12. uWSGI参考资料(1.0版本的配置选项列表)
  13. 关于EasyUI 1.5版Datagrid组件在空数据时无法显示&quot;空记录&quot;提示的BUG解决方法
  14. WPF 简单的循环GIF播放
  15. Java【第一篇】基本语法之--关键字、标识符、变量
  16. 【读书笔记】iOS-库
  17. LeetCode &amp; Online Programming Learning Platform
  18. 【题解】 bzoj1207: [HNOI2004]打鼹鼠 (动态规划)
  19. $(function(){}) ,$(document).ready(function(){}),window.onload = function(){...},$(window).load(function(){...})区别
  20. undo文件丢失或损坏

热门文章

  1. python中pandas数据分析基础3(数据索引、数据分组与分组运算、数据离散化、数据合并)
  2. jmeter非GUI模式命令
  3. UVA - 679 Dropping Balls(二叉树的编号)
  4. 存储器HK1225-7EQ 使用说明书资料
  5. 聊一聊Java中的各种运算符(转载)
  6. python计算:pi/4=1-1/3+1/5-1/7+…
  7. 自己安装windows版本的Flink
  8. servlet 之 GenericServlet抽象类详解
  9. Pyinstaller的安装及简单使用
  10. SciKit-Learn 使用matplotlib可视化数据