国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

java - maven springboot項目找不到主類

瀏覽:103日期:2023-12-06 16:33:50

問題描述

<?xml version='1.0' encoding='UTF-8'?><project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd'> <modelVersion>4.0.0</modelVersion> <groupId>com.sohu.mrd</groupId> <artifactId>WeChatNews</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.5.2.RELEASE</version> </parent> <dependencies><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions><exclusion> <artifactId>spring-boot-starter-logging</artifactId> <groupId>org.springframework.boot</groupId></exclusion> </exclusions></dependency><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId></dependency><dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.7</version></dependency><dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.7.2</version></dependency> </dependencies> <properties><start-class>com.mrd.wechat.WeChatNewsApplication</start-class> </properties> <build><finalName>WeChatNews</finalName><plugins> <plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><executions> <execution><goals> <goal>repackage</goal></goals> </execution></executions> </plugin></plugins><resources> <resource><directory>src/main/resources</directory><filtering>true</filtering><excludes> <exclude>application-online.properties</exclude> <exclude>application-preonline.properties</exclude> <exclude>application-test.properties</exclude> <exclude>application.properties</exclude></excludes> </resource> <resource><filtering>true</filtering><directory>src/main/resources</directory><includes> <include>application-${profileActive}.properties</include> <include>application.properties</include></includes> </resource></resources> </build></project>

'C:Program FilesJavajdk1.8.0_91binjava' -Dmaven.multiModuleProjectDirectory=C:UsersshiweiwangDesktopWeChatNews -DarchetypeCatalog=internal '-Dmaven.home=D:Idea2016IntelliJ IDEA 2016.3.2pluginsmavenlibmaven3' '-Dclassworlds.conf=D:Idea2016IntelliJ IDEA 2016.3.2pluginsmavenlibmaven3binm2.conf' -Didea.launcher.port=7536 '-Didea.launcher.bin.path=D:Idea2016IntelliJ IDEA 2016.3.2bin' -Dfile.encoding=UTF-8 -classpath 'D:Idea2016IntelliJ IDEA 2016.3.2pluginsmavenlibmaven3bootplexus-classworlds-2.5.2.jar;D:Idea2016IntelliJ IDEA 2016.3.2libidea_rt.jar' com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.3.3 install[INFO] Scanning for projects...[INFO] [INFO] ------------------------------------------------------------------------[INFO] Building WeChatNews 1.0-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ WeChatNews ---[INFO] Using ’UTF-8’ encoding to copy filtered resources.[INFO] Copying 0 resource[INFO] Copying 0 resource[INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WeChatNews ---[INFO] Changes detected - recompiling the module![INFO] Compiling 6 source files to C:UsersshiweiwangDesktopWeChatNewstargetclasses[INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ WeChatNews ---[INFO] Using ’UTF-8’ encoding to copy filtered resources.[INFO] skip non existing resourceDirectory C:UsersshiweiwangDesktopWeChatNewssrctestresources[INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ WeChatNews ---[INFO] Nothing to compile - all classes are up to date[INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ WeChatNews ---[INFO] No tests to run.[INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ WeChatNews ---[INFO] Building jar: C:UsersshiweiwangDesktopWeChatNewstargetWeChatNews.jar[INFO] [INFO] --- spring-boot-maven-plugin:1.5.2.RELEASE:repackage (default) @ WeChatNews ---[INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ WeChatNews ---[INFO] Installing C:UsersshiweiwangDesktopWeChatNewstargetWeChatNews.jar to C:Usersshiweiwang.m2repositorycomsohumrdWeChatNews1.0-SNAPSHOTWeChatNews-1.0-SNAPSHOT.jar[INFO] Installing C:UsersshiweiwangDesktopWeChatNewspom.xml to C:Usersshiweiwang.m2repositorycomsohumrdWeChatNews1.0-SNAPSHOTWeChatNews-1.0-SNAPSHOT.pom[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 3.954 s[INFO] Finished at: 2017-05-04T14:51:00+08:00[INFO] Final Memory: 30M/305M[INFO] ------------------------------------------------------------------------Process finished with exit code 0

[root@ebeef2d5a5b3 WeChatNews]# nohup java -cp WeChatNews.jar com.mrd.wechat.WeChatNewsApplication &>start.log &[1] 40713[root@ebeef2d5a5b3 WeChatNews]# tail -f ./start.log nohup: 忽略輸入錯誤: 找不到或無法加載主類 com.mrd.wechat.WeChatNewsApplication

問題解答

回答1:

springboot項目不需要用maven-shade-plugin打jar包啊, 就用spring-boot-maven-plugin就可以了啊

回答2:

使用 mvn package 命令打包 文檔

標簽: java
相關文章:
主站蜘蛛池模板: 久久精品女人毛片国产 | 国产黄色小视频 | 视频日韩| 欧美午夜精品久久久久久黑人 | 亚洲成人高清在线观看 | 国产精品永久免费视频观看 | 碰碰碰免费公开在线视频 | 久草com| 91国内精品久久久久影院优播 | 成人免费高清视频网址 | www.黄网站| 午夜爽爽爽男女免费观看hd | 成人免费观看一区二区 | 免费特黄级夫费生活片 | 亚洲第一男人天堂 | 国产成人最新毛片基地 | 亚洲午夜久久久久国产 | 草草影院私人免费入口 | 在线高清一级欧美精品 | 国产精品香蕉一区二区三区 | 国产精品亚洲欧美 | 国产精品毛片一区二区三区 | 国产精品18久久久久久久久久 | 欧美一区二区视频三区 | 亚洲成人在线视频 | 一机毛片 | 国产麻豆福利a v在线播放 | 日本视频在线免费播放 | 国产精品亚洲精品一区二区三区 | 美女网站在线 | 成人性欧美丨区二区三区 | 免费一区二区三区 | 青青热久久国产久精品 | 亚洲成在人线免费视频 | 亚洲天堂色视频 | 亚洲一区免费在线 | 99国内精品 | 中文三级视频 | 一二三区视频 | 久久久久国产 | 亚洲天堂美女 |