How to build jars from IntelliJ properly?

前端 未结 20 2526
盖世英雄少女心
盖世英雄少女心 2020-11-22 01:14

I have a project that contains a single module, and some dependencies. I\'d like to create a jar, in a separate directory, that contains the compiled module. In addition, I\

20条回答
  •  隐瞒了意图╮
    2020-11-22 01:42

    I was trying to build a jar from a multi-module Kotlin app and was getting the notorious 'no main manifest attribute' error. Creating the manifest directory in src/main/resources didn't work either.

    Instead, it works when creating it in src directly: src/META-INF/MANIFEST.MF.

提交回复
热议问题