【问题标题】:Hibernate JPA2.0 and Maven休眠 JPA2.0 和 Maven
【发布时间】:2010-12-27 11:56:13
【问题描述】:

我尝试构建简单的应用程序,我想使用 spring、wicket 和 JPA2.0 (Hibernate)。为了将所有这些放在一起,我使用 maven。而且我有休眠问题。下面是我的 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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>comicsTest</groupId>
  <artifactId>comicsTest</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <repositories>
    <repository>
     <id>jboss-public-repository-group</id>
    <name>JBoss Public Repository Group</name>
    <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
    </repository>
  </repositories>


  <dependencies>
   <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>3.0.5.RELEASE</version>
    <exclusions>
     <exclusion>
      <artifactId>commons-logging</artifactId>
      <groupId>commons-logging</groupId>
     </exclusion>
    </exclusions>
   </dependency>
   <dependency>
    <groupId>wicket</groupId>
    <artifactId>wicket</artifactId>
    <version>1.2.7</version>
   </dependency>
   <dependency>
    <groupId>wicket</groupId>
    <artifactId>wicket-spring</artifactId>
    <version>1.2.7</version>
   </dependency>
   <dependency>
    <groupId>wicket</groupId>
    <artifactId>wicket-extensions</artifactId>
    <version>1.2.7</version>
   </dependency>
   <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-orm</artifactId>
    <version>3.0.5.RELEASE</version>
   </dependency>
   <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aspects</artifactId>
    <version>3.0.5.RELEASE</version>
   </dependency>
   <dependency>
    <groupId>org.hiberante</groupId>
    <artifactId>hibernate-entitymanager</artifactId>
    <version>3.6.0.Final</version>
   </dependency>
  </dependencies>
  <modules>
  </modules>
  <properties>
   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>

我得到的只是

27.12.10 12:41:44 CET: Refreshing [/comicsTest/pom.xml]
27.12.10 12:41:48 CET: Downloaded https://repository.jboss.org/nexus/content/repositories/releases/org/hiberante/hibernate-entitymanager/3.6.0.Final/hibernate-entitymanager-3.6.0.Final.pom
27.12.10 12:41:48 CET: [WARN] The POM for org.hiberante:hibernate-entitymanager:jar:3.6.0.Final is missing, no dependency information available
27.12.10 12:41:50 CET: Downloaded https://repository.jboss.org/nexus/content/repositories/releases/org/hiberante/hibernate-entitymanager/3.6.0.Final/hibernate-entitymanager-3.6.0.Final.jar
27.12.10 12:41:50 CET: Missing artifact org.hiberante:hibernate-entitymanager:jar:3.6.0.Final:compile

上面的网址是正确的,文件在那里:(

【问题讨论】:

    标签: hibernate maven jpa-2.0


    【解决方案1】:

    org.hibernate 在你的 pom 中拼写错误为org.hiberante.

    【讨论】:

      猜你喜欢
      • 2015-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-29
      • 1970-01-01
      相关资源
      最近更新 更多