惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - 山峰旺旺

博文阅读密码验证 - 博客园 2019年春节第一天上班 FastDFS搭建文件系统(单机版) 博文阅读密码验证 - 博客园 CentOS7 下docker 部署 Asp.Net Core Linux (CentOS7.0)安装Asp.Net Core项目总结 Linux 下 安装 .Net Core(CentOS 7) Spring框架IOC容器和AOP解析(转) 文本相似度simhash算法 java 敏感词过滤 (DFA算法)(转) intellij idea 修改背景保护色&&修改字体&&快捷键大全(转) C#队列Queue实现一个简单的电商网站秒杀程序 2018年目标和愿景 CDN原理(转,学习用) 面试理论整理 C#中的where泛型约束中的new()使用(转) C# unsafe(fixed) 介于 managed code & unmanaged code之间的特性(转) C#中重写(override)和覆盖(new)的区别 (备注:转,留自己用) 2015年总结
Intellij Idea 2017.3版本MAVEN项目打JAR包
山峰旺旺 · 2018-06-25 · via 博客园 - 山峰旺旺

记录一下自己学习制作 jar包的过程,方便以后查询:

1.因为是以Netty 做Demo测试,所以现在POP.XML 中加入 

<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>

2.File->Project Structure

3.Antifacts->Add JAR->from modules with dependencies

4.Main Class 方法选择Netty Server的主启动方法Main方法,并且设定 MANIFEST.MF 的目录在项目根目录下

备注:MANIFEST.MF文件跟Src同一个目录下

 5.添加依赖的jar包(可以本地私有仓或者本项目中的)

6.Build生成jar 包

最终输出打包jar包结果目录:

7.Copy出到一个待部署的文件夹Deploy_test中:

8.cmd命令行启动服务:

9.启动客户端进行和服务端的连接测试:

 10.测试成功实现部署服务端程序,然后客户端请求调用。