您能告诉我在哪里可以找到Apache Geode的 spring-data 包吗?有一个spring-data-gemfire项目为 Pivotal Gemfire 生成定期版本。spring-data-geode 应该是该项目的一部分,但我无法找到有关的任何信息。Maven Central 中只有一个 1.0.0.INCUBATING-RELEASE 版本的工件。
提前致谢, 瓦迪姆
您能告诉我在哪里可以找到Apache Geode的 spring-data 包吗?有一个spring-data-gemfire项目为 Pivotal Gemfire 生成定期版本。spring-data-geode 应该是该项目的一部分,但我无法找到有关的任何信息。Maven Central 中只有一个 1.0.0.INCUBATING-RELEASE 版本的工件。
提前致谢, 瓦迪姆
好问题!
有一个Spring Data Geode项目,你是对的,最新版本的Spring Data Geode是1.0.0.INCUBATING-RELEASE
(见Maven Central)。SD Geode 的特定版本基于Apache Geode 1.0.0-incubating
,版本匹配,因此用户在声明对 SD Geode 的依赖时清楚他们获得的 Apache Geode 版本。
作为Spring Data Geode项目负责人,我敏锐地意识到Apache Geode在 2 月底发布了 1.1.0 版本,并在 3 月发布了后续 1.1.1 补丁(请参阅Apache Geode 页面上的发布)。
此外,我已经有一段时间没有削减Spring Data Geode的新版本以匹配当前版本的Apache Geode(即 1.1.1)。有几个原因...
Strings
)。简而言之,我使用Spring中经常使用的标准约定、“配置器”以及“众所周知和记录的”属性而不是我之前的意图(Property Placeholders and SpEL Expressions in Annotation attributes,然后将要求他们是Strings
,糟糕)。注意: SD Geode 和 GemFire 中这个新的注释模型的开始在我的博客1 中有所描述。随后的后续博客文章专门介绍了对 Geode 新的集成安全框架的注释支持。
其次,我在 SD Geode中添加了对Apache Geode 的 Lucene Integration的支持。
最后,Spring Data Geode曾经存在于Spring Data GemFire 的GitHub Repositoryapache-geode
的分支中。但是,自从上一个 SD Geode 版本(即)以来,@Oliver Gierke(Spring Data 团队负责人)已经同意将Spring Data Geode变成一个顶级Spring Data项目,就像Spring Data GemFire一样,因此,Spring Data Geode将加入Spring Data Release Train,希望在下一个Spring Data Kay Milestone 4 (M4)版本中。但是,这完全取决于即将推出的Apache Geode 1.0.0.INCUBATING-RELEASE
首先发布1.2.0 版本。如您所见,现在已经有一个专门用于Spring Data Geode项目的专用 GitHub 存储库。
注意:虽然我在这里的所有文档引用都指向Spring Data GemFire,但它们同样适用于Spring Data Geode,尤其是在Spring Data GemFire 2.0.0 Milestone版本 (SD Kay ) 中,因为 SD GemFire基于Pivotal GemFire 9.x,它基于Apache Geode 1.0.0-incubating。
这意味着几件事...
首先,也是最重要的,Spring Data Geode将拥有自己的spring.io 项目页面(在Spring Data下)和自己的文档,与Spring Data GemFire分开,将其标识为单独/个人和适当的Spring Data项目。
其次, Spring Data发生了很多变化……与Java 8保持一致,核心Spring Framework 5用于响应式/功能架构,以及Spring Data本身的重大变化。有关详细信息,请参阅SD Kay 中的“核心主题”。因此,基于 Apache Geode 1.2.0 的Spring Data Geode将是 2.0.0 版本(与Apache Geode不同),因此,Spring Data Geode和Apache Geode之间的版本号将不再一致。
然而,积极的一面是,一旦到位,Spring Data Geode将与其他Spring Data模块一起以可预测的发布节奏移动,包括Spring Data GemFire。这意味着将有一个过渡期来整理所有位,因此Spring对最新版本Apache Geode(即1.1.1)的支持似乎存在差距。
话虽如此,我仍计划再发布 1 个基于Apache Geode 1.1.1的个人Spring Data Geode版本(即) ,希望很快。1.1.1.RELEASE
在此期间,您可以将Spring Data Geode 1.0.0.INCUBATING-RELEASE
与最新版本的Apache Geode(即1.1.1
)一起使用,只需包含 SD Geode依赖项并声明对Apache Geode1.0.0.INCUBATING-RELEASE
的直接依赖项,这将覆盖由Apache Geode 引入的版本SD Geode,在您的应用程序 POM 文件中,像这样...... 1.1.1
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-geode</artifactId>
<version>1.0.0.INCUBATING-RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
<version>1.1.1</version>
</dependency>
<!-- along with any other geode dependencies you need -->
无论如何,希望这会有所帮助,我对延误感到抱歉;目前处理许多优先事项。
干杯,约翰