打开 File > Project Structure > Artifacts

 

添加一个 Artifact( + > JAR > Empty)

 

输入这个jar的name('sampleName'),Name下面有这个jar包生成的路径(Output directory)

 

在Output Layout中给这个sampleName.jar添加Module Output(+ > Module Output 或者在 Available Elements框中选择对应的Module双击)

 

选择你的项目源文件的模块(注意:这里不是选择的web这个模块)

 

然后点击ok退出Project Structure面板

 

最后生成这个jar(Build > Build Artifacts... > sampleName > Build/Rebuild)

相关文章:

  • 2021-11-03
  • 2021-06-13
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-10-02
  • 2021-11-15
猜你喜欢
  • 2022-01-03
  • 2022-01-03
  • 2021-08-29
  • 2021-12-15
  • 2021-09-15
相关资源
相似解决方案