Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
找不到org.hibernate:hibernate依赖项:pom:3.3.2.GA_Hibernate_Maven_Repository - Fatal编程技术网

找不到org.hibernate:hibernate依赖项:pom:3.3.2.GA

找不到org.hibernate:hibernate依赖项:pom:3.3.2.GA,hibernate,maven,repository,Hibernate,Maven,Repository,我使用的是Maven 3.0.3。我在下载依赖项时遇到问题,并收到错误,“未能在本地存储库中缓存org.hibernate:hibernate依赖项:pom:3.3.2.GA,在google api服务的更新间隔结束或强制更新之前,将不会重新尝试解析”。我在Maven中使用了“-U”标志,但没有用。这是我得到的错误 davea$ mvn clean install -U -Dmaven.test.skip=true [INFO] Scanning for projects... [INFO]

我使用的是Maven 3.0.3。我在下载依赖项时遇到问题,并收到错误,“未能在本地存储库中缓存org.hibernate:hibernate依赖项:pom:3.3.2.GA,在google api服务的更新间隔结束或强制更新之前,将不会重新尝试解析”。我在Maven中使用了“-U”标志,但没有用。这是我得到的错误

davea$ mvn clean install -U -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building event-maven 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://mavenrepo.google-api-java-client.googlecode.com/hg/org/hibernate/hibernate-dependencies/3.3.2.GA/hibernate-dependencies-3.3.2.GA.pom
Downloading: https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/org/hibernate/hibernate-dependencies/3.3.2.GA/hibernate-dependencies-3.3.2.GA.pom
Downloading: http://repo.maven.apache.org/maven2/org/hibernate/hibernate-dependencies/3.3.2.GA/hibernate-dependencies-3.3.2.GA.pom
[WARNING] The POM for org.hibernate:hibernate-dependencies:pom:3.3.2.GA is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.401s
[INFO] Finished at: Thu Mar 01 14:23:05 CST 2012
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project event-maven: Could not resolve dependencies for project com.myco.eventmaven:event-maven:war:1.0-SNAPSHOT: Failure to find org.hibernate:hibernate-dependencies:pom:3.3.2.GA in http://mavenrepo.google-api-java-client.googlecode.com/hg was cached in the local repository, resolution will not be reattempted until the update interval of google-api-services has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
我将包含完整的pom.xml,包括存储库。有人知道我如何解决这个错误吗?谢谢-戴夫

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.myco.eventmaven</groupId>
<artifactId>event-maven</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>event-maven</name>
<url>http://maven.apache.org</url>

<!-- Shared version number properties -->
<properties>
    <org.springframework.version>3.0.5.RELEASE</org.springframework.version>
</properties>

<repositories>
    <repository>
        <id>google-api-services</id>
        <url>http://mavenrepo.google-api-java-client.googlecode.com/hg</url>
    </repository>
    <repository>
        <id>repository.jboss.org-public</id>
        <name>JBoss.org Maven repository</name>
        <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
    </repository>
</repositories>

<dependencies>
    <!-- Library for parsing RSS feeds -->
    <dependency>
        <groupId>rome</groupId>
        <artifactId>rome</artifactId>
        <version>1.0</version>
    </dependency>
    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-calendar</artifactId>
        <version>v3-1.3.1-beta</version>
    </dependency>
    <dependency>
        <groupId>google</groupId>
        <artifactId>gdata-core</artifactId>
        <version>1.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>google</groupId>
        <artifactId>gdata-calendar</artifactId>
        <version>2.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>google</groupId>
        <artifactId>gdata-client</artifactId>
        <version>1.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>google</groupId>
        <artifactId>gdata-client-meta</artifactId>
        <version>1.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>google</groupId>
        <artifactId>gdata-calendar-meta</artifactId>
        <version>2.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>google</groupId>
        <artifactId>collect</artifactId>
        <version>1.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>javax.annotation</groupId>
        <artifactId>jsr305</artifactId>
        <version>1.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

    <!-- Core utilities used by other modules. Define this if you use Spring 
        Utility APIs (org.springframework.core.*/org.springframework.util.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Expression Language (depends on spring-core) Define this if you use 
        Spring Expression APIs (org.springframework.expression.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-expression</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Bean Factory and JavaBeans utilities (depends on spring-core) Define 
        this if you use Spring Bean APIs (org.springframework.beans.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Aspect Oriented Programming (AOP) Framework (depends on spring-core, 
        spring-beans) Define this if you use Spring AOP APIs (org.springframework.aop.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aop</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Application Context (depends on spring-core, spring-expression, spring-aop, 
        spring-beans) This is the central artifact for Spring's Dependency Injection 
        Container and is generally always defined -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Various Application Context utilities, including EhCache, JavaMail, 
        Quartz, and Freemarker integration Define this if you need any of these integrations -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context-support</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Transaction Management Abstraction (depends on spring-core, spring-beans, 
        spring-aop, spring-context) Define this if you use Spring Transactions or 
        DAO Exception Hierarchy (org.springframework.transaction.*/org.springframework.dao.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-tx</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- JDBC Data Access Library (depends on spring-core, spring-beans, spring-context, 
        spring-tx) Define this if you use Spring's JdbcTemplate API (org.springframework.jdbc.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jdbc</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, 
        and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx) 
        Define this if you need ORM (org.springframework.orm.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Object-to-XML Mapping (OXM) abstraction and integration with JAXB, 
        JiBX, Castor, XStream, and XML Beans. (depends on spring-core, spring-beans, 
        spring-context) Define this if you need OXM (org.springframework.oxm.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-oxm</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Web application development utilities applicable to both Servlet and 
        Portlet Environments (depends on spring-core, spring-beans, spring-context) 
        Define this if you use Spring MVC, or wish to use Struts, JSF, or another 
        web framework with Spring (org.springframework.web.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Spring MVC for Servlet Environments (depends on spring-core, spring-beans, 
        spring-context, spring-web) Define this if you use Spring MVC with a Servlet 
        Container such as Apache Tomcat (org.springframework.web.servlet.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Spring MVC for Portlet Environments (depends on spring-core, spring-beans, 
        spring-context, spring-web) Define this if you use Spring MVC with a Portlet 
        Container (org.springframework.web.portlet.*) -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc-portlet</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

    <!-- Support for testing Spring applications with tools such as JUnit and 
        TestNG This artifact is generally always defined with a 'test' scope for 
        the integration testing framework and unit testing stubs -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>${org.springframework.version}</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.15</version>
        <exclusions>
<exclusion>
    <groupId>com.sun.jmx</groupId>
    <artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
    <groupId>com.sun.jdmk</groupId>
    <artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
        <groupId>javax.jms</groupId>
        <artifactId>jms</artifactId>
</exclusion>
</exclusions>
    </dependency>

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-dependencies <!--or hibernate-core--></artifactId>
        <version>3.3.2.GA</version>
        <type>pom</type>
        <!--hibernate-dependencies is a pom, not needed for hibernate-core -->
    </dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-annotations</artifactId>
        <version>3.4.0.GA</version>
    </dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator</artifactId>
        <version>3.1.0.GA</version>
    </dependency>

    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.1</version>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.1.3</version>
            <configuration>
                <container>
                    <containerId>jboss71x</containerId>
                    <type>remote</type>
                </container>
            </configuration>
            <executions>
                <execution>
                    <id>deploy</id>
                    <phase>install</phase>
                    <goals>
                        <goal>deploy</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
</project>

4.0.0
com.myco.eventmaven
事件专家
战争
1.0-快照
事件专家
http://maven.apache.org
3.0.5.1发布
谷歌api服务
http://mavenrepo.google-api-java-client.googlecode.com/hg
repository.jboss.org-public
org Maven存储库
https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/
罗马
罗马
1
com.google.api
谷歌api服务日历
v3-1.3.1-测试版
谷歌
杏仁核
1
罐子
编译
谷歌
格达塔历
2
罐子
编译
谷歌
gdata客户端
1
罐子
编译
谷歌
gdata客户端元
1
罐子
编译
谷歌
格达塔日历元
2
罐子
编译
谷歌
收集
1
罐子
编译
javax.annotation
jsr305
1
罐子
编译
org.springframework
弹簧芯
${org.springframework.version}
org.springframework
弹簧式
${org.springframework.version}
org.springframework
春豆
${org.springframework.version}
org.springframework
春季aop
${org.springframework.version}
org.springframework
spring上下文
${org.springframework.version}
org.springframework
spring上下文支持
${org.springframework.version}
org.springframework
德克萨斯州春季
${org.springframework.version}
org.springframework
SpringJDBC
${org.springframework.version}
org.springframework
春季甲虫
${org.springframework.version}
org.springframework
弹簧oxm
${org.springframework.version}
org.springframework
弹簧网
${org.springframework.version}
org.springframework
SpringWebMVC
${org.springframework.version}
org.springframework
SpringWebMVCPortlet
${org.springframework.version}
org.springframework
弹簧试验
${org.springframework.version}
测试
log4j
log4j
1.2.15
com.sun.jmx
jmxri
com.sun.jdmk
jmxtools
javax.jms
jms
org.hibernate
休眠依赖
3.3.2.GA
聚甲醛
org.hibernate
休眠注释
3.4.0.GA
org.hibernate
休眠验证器
3.1.0.GA
朱尼特
朱尼特
4.8.1
测试
org.codehaus.cargo
cargo-maven2-plugin
1.1.3
jboss71x
遥远的
部署
安装
部署

Maven存储库中不存在hibernate依赖项

如果要使用Hibernate,请使用
Hibernate core

<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-core</artifactId>
     <version>3.3.2.GA</version>
</dependency>

org.hibernate
冬眠核心
3.3.2.GA
另外,要小心,我认为最好对所有Hibernate工件使用相同的版本