Dubbo: quick start fails

Created on 12 Jun 2020  ·  10Comments  ·  Source: apache/dubbo

  • [yes] I have searched the issues of this repository and believe that this is not a duplicate.
  • [yes] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Steps to reproduce this issue

read the document.


  1. excute git clone https://github.com/apache/dubbo.git ./dubbo

  2. start IDEA and then ask IDEA to open "./dubbo". Then IDEA automatically calls maven to download dependencies.

  3. It is reported that "Cannot resolve plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0"
    4.
    Ignore the error reported in the third step. Find the org.apache.dubbo.demo.provider.Application according to the documentation. And then try to run it by IDEA. (Zookeeper is running normally.)
    5.
    It's reported that build failed.
    "Build completed with 3 errors and 100 warnings ..."
    the 3 errors:

D:\JAVA\projects\dubbo\dubbo-config\dubbo-config-api\src\test\java\org\apache\dubbo\config\bootstrap\rest\UserService.java
Error:(22, 50) java: 程序包org.apache.dubbo.rpc.protocol.rest.support不存在
Error:(37, 12) java: 找不到符号
符号: 变量 ContentType
Error:(37, 48) java: 找不到符号
符号: 变量 ContentType

after google translator translate:

D:\JAVA\projects\dubbo\dubbo-config\dubbo-config-api\src\test\java\org\apache\dubbo\config\bootstrap\rest\UserService.java
Error:(22, 50) java: The package org.apache.dubbo.rpc.protocol.rest.support does not exist
Error:(37, 12) java: Symbol not found
Symbol: Variable ContentType
Error::(37, 48) java: Symbol not found
Symbol: Variable ContentType

Expected Result

The error reported in the third step and the fifth step no longer appears.

Actual Result

Please see the third and fifth steps in Chapter ”Steps to reproduce this issue“.

Thanks.

Most helpful comment

dubbo-config-api.pom 文件中的maven的作用域更改一下。例如把test 注释掉

All 10 comments

I have the same problem

I found the answer,In the dubbo-config-api.pom, update it to look like this。


org.apache.dubbo
dubbo-rpc-rest
${project.parent.version}

楼上咋解决的,我看配置就是这个啊,求助

dubbo-config-api.pom 文件中的maven的作用域更改一下。例如把test 注释掉

have the same problem

dubbo-config-api.pom 文件中的maven的作用域更改一下。例如把test 注释掉
涉及test的标签很多,需要全部注释吗?

把dubbo-rpc-rest 重新打个包

删除dubbo-config-api | pom.xml文件中dubbo-rpc-dubbo和dubbo-rpc-rest依赖的test作用域。

I have the same problem...

I have the same problem...

Was this page helpful?
0 / 5 - 0 ratings