1. The goal you specified requires a project to execute but there is no POM in this directory (/path/ruoyi-ui). Please verify you invoked Maven from the correct directory. -> [Help 1]
pom 根目录下包含了一个 ruoyi-ui 的目录,没有pom.xml 文件
在windows执行 call mvn clean compile 就不会报错了
2. Could not find artifact com.sun:tools:jar:1.8 at specified path C:\repo\com\alibaba\druid\1.2.6/lib/openjdk-1.8-tools.jar
修改 pom 的依赖
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>jconsole</artifactId>
</exclusion>
</exclusions>
</dependency>