Manifest missing error

if you build the project as a multi-module one, then you would be encoutered this error when you run .jar file.

1
[project name].jar에 기본 Manifest 속성이 없습니다

the factor is the sub module can’t find the entry point to turn on the service like main() method.

so you should define it in build.gradle file like the below

1
2
3
4
5
jar {
manifest {
attributes 'Main-Class': 'com.kian.yun.bridge.server.goal.GoalApplication'
}
}
Share