1、点击新建项目,选中Maven,右边勾上Create from archetype 选则下面的maven-archetype-quickstart;如图所示
Maven
Create from archetype
maven-archetype-quickstart
1、进入Project Structure 选择Artifacts,如下图点击左上角加号
Project Structure
Artifacts
3、选择主方法类
4、如下是打的 jar 包的位置,点击下面Apply
Apply
5、最后创建 jar 包 在Build里面选择Build Artifacts...
Build
Build Artifacts...
因篇幅问题不能全部显示,请点此查看更多更全内容