NutzCN Logo
问答 nutzboot 项目打包后,命令行执行报错 no main manifest attribute
发布于 368天前 作者 shevawen 709 次浏览 复制 上一个帖子 下一个帖子
标签:
mvn package
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< io.gitee:overviewer >-------------------------
[INFO] Building overviewer 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from nexus: http://maven.aliyun.com/nexus/content/groups/public/org/hamcrest/hamcrest-core/maven-metadata.xml
Downloaded from nexus: http://maven.aliyun.com/nexus/content/groups/public/org/hamcrest/hamcrest-core/maven-metadata.xml (680 B at 1.0 kB/s)
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ overviewer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 28 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ overviewer ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ overviewer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/shevawen/eclipse-workspace/cmadaas-dpc-config-overviewer/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ overviewer ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ overviewer ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ overviewer ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.009 s
[INFO] Finished at: 2021-05-19T11:02:23+08:00
[INFO] ------------------------------------------------------------------------
java -jar target/overviewer.jar 
no main manifest attribute, in target/overviewer.jar
2 回复

mvn clean package nutzboot:shade

OK,谢谢。

添加回复
请先登陆
回到顶部