In the eclipse project, dubbo.xml does not recognize the schema and reports an error

The dubbo framework was added in the eclipse project development process, and the project can be started normally, but the red mark of dubbo.xml makes people uncomfortable. . . . How to eliminate it?

The first step:

Go to dubbo's official website to download the jar package: After entering the above address, enter the following picture: The




second step,
after downloading the jar package, I downloaded version 2.5.3, and opened the jar package with a compression tool , find the dubbo.xsd file, and copy it to a folder path of your own, as shown below: Step 3: Put the above dubbo.sxd file in a location, mine is under D:\git_document, as shown below As shown, remember the path, you will need it later. Step 4: Open eclispe, and add according to the location of eclispe-->window-->preferences-->xml catalog-->add location: "D:\gitdocument\dubbo.xsd" (the dubb.xsd file path was just placed) key Add the location: "http://code.alibabatech.com/schema/dubbo/dubbo.xsd" Step 5: Click ok, switch to the pom.xml directory of the project in the dos environment, execute: mvn eclipse:eclipse, and then Execute mvn:clean install, open eclipse, click on your project, refresh it, and see if your dubbo.xml file is no longer showing an error.






















Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327049418&siteId=291194637