父pom中直接添加 <repositories> <repository> <id>central</id> <name>Maven Repository</name> <url>https://repo.maven.apache.org/maven2</url> </repository> <repository> <id>ECAN私服【全局】</id> <name>ECAN私服【全局】</name> <url>http://192.168.1.8:6666/nexus/content/repositories/releases</url> </repository> </repositories>
底下是版本依赖管理
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>2020.0.0</version> <type>pom</type> <scope>import</scope> </dependency> <!-- Spring Cloud Alibaba Dependencies --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <version>2021.1</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>