diff --git a/issuefix#237 b/issuefix#237 new file mode 100644 index 00000000..c2dd2893 --- /dev/null +++ b/issuefix#237 @@ -0,0 +1,25 @@ +# 🚀 Fix: Dependency & Yarn Issues in RocketMQ Dashboard + +## **Issue Description** +1. **Maven Build Failure** + - The build failed due to a missing dependency: + ``` + Could not find artifact io.grpc:grpc-core:jar:1.50.0 + ``` + - This caused Maven to be unable to resolve dependencies correctly. + +2. **Yarn Build Failure** + - Error: `'yarn' is not recognized as an internal or external command` + - Error: `Couldn't find a package.json file` + - This happened because the `frontend` folder had `package-lock.json` but not `package.json`, causing Yarn to fail. + after adding +### **1️⃣ Maven Dependency Fix** +- Added the missing `grpc-core` dependency in `pom.xml`: + ```xml + + io.grpc + grpc-core + 1.50.0 + + After mvn clean it build sucess + diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 00000000..f72c61a6 --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "rocketmq-dashboard", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity new file mode 100644 index 00000000..94cbf038 --- /dev/null +++ b/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "win32-x64-115", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 69b20ab0..c68d9a6a 100644 --- a/pom.xml +++ b/pom.xml @@ -260,6 +260,12 @@ easyexcel ${easyexcel.version} + + io.grpc + grpc-core + 1.50.0 + + org.ow2.asm asm diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 00000000..fb57ccd1 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + +