[英]Spring Social Google - maven dependency not found
我找不到spring-social-google( https://github.com/GabiAxel/spring-social-google )的maven依赖关系。 根据文档,依存关系的定义如下:
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-google</artifactId>
<version>${org.springframework.social-google-version}</version>
</dependency>
但是,它不在maven存储库中。 谁能确认?
根据Maven存储库,spring-social-google的最新版本为1.0.0.RELEASE,如下所示:
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-google</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>
将其添加到您的POM中就足够了。 在您的情况下,您正在使用${org.springframework.social-google-version}
版本的占位符。
因此,在您的POM中,您应该具有以下内容:
<properties>
<org.springframework.social-google-version>1.0.0.RELEASE</org.springframework.social-google-version>
</properties>
Maven将替换依赖项声明中的属性值并对其进行解析。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.