Skip to content

Commit ef4fbe5

Browse files
committed
fix: 优化依赖解析失败错误提示
1 parent 9ee38db commit ef4fbe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/classpath-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function getDependencyPaths(modulePaths: string[], refresh = false) {
8787
], { stdio: 'pipe' });
8888

8989
if (result.status !== 0) {
90-
throw new Error(`依赖解析失败: ${absPath}\n${result.stderr}`);
90+
throw new Error(`依赖解析失败: ${absPath}\n尝试执行 mvn clean install -U \n${result.stdout?.toString()}`);
9191
}
9292

9393
// 收集当前模块路径

0 commit comments

Comments
 (0)