Dubbo專案 是不是啟動不起來?
一:專案啟動是不是一直報項下面的錯誤?有沒有一樣的小朋友....
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dubboxdemo-service 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ dubboxdemo-service >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ dubboxdemo-service ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dubboxdemo-service ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ dubboxdemo-service <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ dubboxdemo-service ---
[INFO] Running war on http://localhost:8081/
[INFO] Creating Tomcat server configuration at D:\pinyougou\dubboxdemo-service\target\tomcat
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.785 s
[INFO] Finished at: 2018-12-27T17:56:44+08:00
[INFO] Final Memory: 11M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project dubboxdemo-service: Execution default-cli of goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run failed: A required class was missing while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run: org/apache/tomcat/util/digester/RuleSet
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/D:/maven/repo/org/apache/tomcat/maven/tomcat7-maven-plugin/2.2/tomcat7-maven-plugin-2.2.jar
[ERROR] urls[1] = file:/D:/maven/repo/org/apache/tomcat/embed/tomcat-embed-core/7.0.47/tomcat-embed-core-7.0.47.jar
[ERROR] urls[2] = file:/D:/maven/repo/org/apache/tomcat/tomcat-util/7.0.47/tomcat-util-7.0.47.jar
[ERROR] urls[3] = file:/D:/maven/repo/org/apache/tomcat/tomcat-coyote/7.0.47/tomcat-coyote-7.0.47.jar
[ERROR] urls[4] = file:/D:/maven/repo/org/apache/tomcat/tomcat-api/7.0.47/tomcat-api-7.0.47.jar
[ERROR] urls[5] = file:/D:/maven/repo/org/apache/tomcat/tomcat-jdbc/7.0.47/tomcat-jdbc-7.0.47.jar
[ERROR] urls[6] = file:/D:/maven/repo/org/apache/tomcat/tomcat-dbcp/7.0.47/tomcat-dbcp-7.0.47.jar
[ERROR] urls[7] = file:/D:/maven/repo/org/apache/tomcat/tomcat-servlet-api/7.0.47/tomcat-servlet-api-7.0.47.jar
[ERROR] urls[8] = file:/D:/maven/repo/org/apache/tomcat/tomcat-jsp-api/7.0.47/tomcat-jsp-api-7.0.47.jar
[ERROR] urls[9] = file:/D:/maven/repo/org/apache/tomcat/tomcat-jasper/7.0.47/tomcat-jasper-7.0.47.jar
[ERROR] urls[10] = file:/D:/maven/repo/org/apache/tomcat/tomcat-jasper-el/7.0.47/tomcat-jasper-el-7.0.47.jar
[ERROR] urls[11] = file:/D:/maven/repo/org/apache/tomcat/tomcat-el-api/7.0.47/tomcat-el-api-7.0.47.jar
[ERROR] urls[12] = file:/D:/maven/repo/org/apache/tomcat/tomcat-catalina/7.0.47/tomcat-catalina-7.0.47.jar
[ERROR] urls[13] = file:/D:/maven/repo/org/apache/tomcat/tomcat-tribes/7.0.47/tomcat-tribes-7.0.47.jar
[ERROR] urls[14] = file:/D:/maven/repo/org/apache/tomcat/tomcat-catalina-ha/7.0.47/tomcat-catalina-ha-7.0.47.jar
[ERROR] urls[15] = file:/D:/maven/repo/org/apache/tomcat/tomcat-annotations-api/7.0.47/tomcat-annotations-api-7.0.47.jar
[ERROR] urls[16] = file:/D:/maven/repo/org/apache/tomcat/tomcat-juli/7.0.47/tomcat-juli-7.0.47.jar
[ERROR] urls[17] = file:/D:/maven/repo/org/apache/tomcat/embed/tomcat-embed-logging-juli/7.0.47/tomcat-embed-logging-juli-7.0.47.jar
[ERROR] urls[18] = file:/D:/maven/repo/org/apache/tomcat/embed/tomcat-embed-logging-log4j/7.0.47/tomcat-embed-logging-log4j-7.0.47.jar
[ERROR] urls[19] = file:/D:/maven/repo/org/eclipse/jdt/core/compiler/ecj/4.2.2/ecj-4.2.2.jar
[ERROR] urls[20] = file:/D:/maven/repo/org/apache/tomcat/maven/common-tomcat-maven-plugin/2.2/common-tomcat-maven-plugin-2.2.jar
[ERROR] urls[21] = file:/D:/maven/repo/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[22] = file:/D:/maven/repo/com/google/guava/guava/10.0.1/guava-10.0.1.jar
[ERROR] urls[23] = file:/D:/maven/repo/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[24] = file:/D:/maven/repo/org/apache/httpcomponents/httpclient/4.3.1/httpclient-4.3.1.jar
[ERROR] urls[25] = file:/D:/maven/repo/org/apache/httpcomponents/httpcore/4.3/httpcore-4.3.jar
[ERROR] urls[26] = file:/D:/maven/repo/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
[ERROR] urls[27] = file:/D:/maven/repo/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[28] = file:/D:/maven/repo/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ERROR] urls[29] = file:/D:/maven/repo/org/apache/tomcat/maven/tomcat7-war-runner/2.2/tomcat7-war-runner-2.2.jar
[ERROR] urls[30] = file:/D:/maven/repo/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
[ERROR] urls[31] = file:/D:/maven/repo/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.jar
[ERROR] urls[32] = file:/D:/maven/repo/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
[ERROR] urls[33] = file:/D:/maven/repo/commons-io/commons-io/2.2/commons-io-2.2.jar
[ERROR] urls[34] = file:/D:/maven/repo/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[35] = file:/D:/maven/repo/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar
[ERROR] urls[36] = file:/D:/maven/repo/org/tukaani/xz/1.0/xz-1.0.jar
[ERROR] urls[37] = file:/D:/maven/repo/org/codehaus/plexus/plexus-archiver/2.1.1/plexus-archiver-2.1.1.jar
[ERROR] urls[38] = file:/D:/maven/repo/junit/junit/4.10/junit-4.10.jar
[ERROR] urls[39] = file:/D:/maven/repo/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
[ERROR] urls[40] = file:/D:/maven/repo/org/codehaus/plexus/plexus-io/2.0.3/plexus-io-2.0.3.jar
[ERROR] urls[41] = file:/D:/maven/repo/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
[ERROR] urls[42] = file:/D:/maven/repo/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar
[ERROR] urls[43] = file:/D:/maven/repo/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
[ERROR] urls[44] = file:/D:/maven/repo/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
[ERROR] urls[45] = file:/D:/maven/repo/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
[ERROR] urls[46] = file:/D:/maven/repo/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[47] = file:/D:/maven/repo/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[48] = file:/D:/maven/repo/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[49] = file:/D:/maven/repo/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
[ERROR] urls[50] = file:/D:/maven/repo/org/slf4j/jcl-over-slf4j/1.7.5/jcl-over-slf4j-1.7.5.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.tomcat.util.digester.RuleSet
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
1. 原因描述:其他同事做這個專案時都可以正常啟動,就我的啟動不了...
2. 原因:maven倉庫裡面沒有這個專案支撐的相關jar包,具體缺失哪個jar包我也不清楚。
3. 解決方案:可以把成功啟動此專案的同事的本地maven倉庫直接拷貝過來替換掉你的本地maven倉庫,再次啟動專案就可以成功啟動了。