Maven Jar Builder: Could not find or load main class

前端 未结 4 1243
谎友^
谎友^ 2020-12-19 13:57

I have been trying for several days now to create an executable jar file for my muli-module maven project. However, when I try to run this jar file I get \"Could not find or

4条回答
  •  别那么骄傲
    2020-12-19 14:15

    You should not have src.main.java as part of the package name of your main class. It's just part of the default maven project folder structure convention. Your configuration should probably read:

    
        
          com.domain.project.MainClass
        
      
    

提交回复
热议问题