0

我使用 Maven。

我想用最后一个版本的hibernate-search:4.2.0.Final 我在3.3.0.Final下

我不能为这个版本创建一个有效的 Maven 存储库。

我必须使用哪个 Maven 存储库来获取此版本的休眠搜索?

因为如果你去那里: https ://repository.jboss.org/nexus/index.html#nexus-search;gav~org.hibernate~hibernate-search~~~~kw,versionexpand

你会找到我需要的版本,但是当我下载 hibernate-search-4.2.0.Final.jar 并解压缩它时,我看到 jar 中只有 META-INF 文件夹但没有类:jar 无效!

谢谢你的帮助 !

4

4 回答 4

3

hibernate-search 项目更改了他们的工件结构以使用 hibernate-search-orm 而不是 hibernate-search。Hibernate-search 现在只是一个 jar,它声明了对 hibernate-search-orm 的依赖,maven 将传递解析并包含在您的项目中。

在此处查看升级说明 - https://community.jboss.org/wiki/HibernateSearchMigrationGuide

更具体地说,这个注释 - https://community.jboss.org/wiki/HibernateSearchMigrationGuide#New_jars_Maven_modules_reorganization

如果您在 pom 中查找休眠搜索,您将看到依赖项 - 这一切都应该从中央解决,无需任何额外的存储库。

<dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>hibernate-search-orm</artifactId>
    <version>${project.version}</version>
</dependency>
于 2013-02-07T14:44:42.793 回答
2

JBoss 工件的最佳存储库是:https ://repository.jboss.org/nexus/content/groups/public-jboss/

可用的存储库在其 wiki 中进行了说明:https ://community.jboss.org/wiki/MavenRepository

该组public-jboss包含 JBoss 工件所需的所有版本和第三方工件。

于 2013-02-07T14:44:53.080 回答
1

maven central 还不够好吗?

http://search.maven.org/#search|ga|1|hibernate-search

于 2013-02-07T13:37:20.193 回答
0

由于这是一个 JBoss 项目,您可以从我们的Nexus存储库中获取最新版本。以下是如何在您的~/.m2/settings.xml. 你pom.xmlthen 应该包含这个依赖。

<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-search</artifactId>
     <version>4.2.0.Final</version>
</dependency>
于 2013-02-07T13:54:51.733 回答