2012-03-01 7 views
5

मैवेन 3.0.3 का उपयोग कर रहा हूं। मुझे निर्भरता डाउनलोड करने में त्रुटि हो रही है और त्रुटि मिल रही है, "org.hibernate को ढूंढने में विफलता: हाइबरनेट-निर्भरता: पोम: 3.3.2. http://mavenrepo.google-api-java-client.googlecode.com/hg में स्थानीय भंडार में कैश किया गया था, संकल्प अंतराल तक संकल्प को पुनः प्राप्त नहीं किया जाएगा google-api-services का विस्तार हो गया है या अपडेट मजबूर हैं "। मैं मेवेन में "-यू" ध्वज का उपयोग कर रहा हूं, लेकिन इसका कोई फायदा नहीं हुआ। यहां त्रुटि है जो मुझे मिल रही है ...org.hibernate को खोजने में विफलता: हाइबरनेट-निर्भरता: पोम: 3.3.2.GA

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> 

उत्तर

7

hibernate-dependencies मैवेन रिपॉजिटरीज़ में मौजूद नहीं है।

आप हाइबरनेट उपयोग करना चाहते हैं, hibernate-core का उपयोग करें:

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

इसके अलावा, सावधान रहना, मुझे लगता है कि यह सब हाइबरनेट कलाकृतियों के लिए एक ही संस्करण का उपयोग करने के लिए बेहतर है।

संबंधित मुद्दे