Maven项目报 cvc-complex-type.2.4.c 错误

阅读更多
Maven项目导入之后报:
Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.
- schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not
find the document; 2) the document could not be read; 3) the root element of the document is not .


cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:protocol'.

这两类错误。
解决方法:

Window -->  Preferences   XML Catalog  
Add User Specfied Entries  Key  = http://code.alibabatech.com/schema/dubbo/dubbo.xsd

Location = D:\service\dubbo.xsd

dubbo.xsd 内容为:



xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:tool="http://www.springframework.org/schema/tool"
targetNamespace="http://code.alibabatech.com/schema/dubbo">






















































































































































































































               
                   
                       
                   

               

















              
              
              
              

              

           

           
              
              
              
              

              

           

           
              
              
              
              

              

           

           
              
              
              
              

              

           


















































































































































































































































































































































































































































































































































































































































































































































































































































































































 

你可能感兴趣的:(maven)