如何将Hibernate添加为Thycho(Maven)依赖项?

如何将Hibernate添加为Thycho(Maven)依赖项?,hibernate,maven-2,eclipse-rcp,tycho,Hibernate,Maven 2,Eclipse Rcp,Tycho,我正试图用Maven 2(使用M2M eclipse插件)和Tycho自动构建我的RCP应用程序 我的应用程序需要hibernate将数据持久化到SQLite数据库中。为此,我将这些XML行放在需要Hibernate运行的插件的pom.XML中: <?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <pare

我正试图用Maven 2(使用M2M eclipse插件)和Tycho自动构建我的RCP应用程序

我的应用程序需要hibernate将数据持久化到SQLite数据库中。为此,我将这些XML行放在需要Hibernate运行的插件的
pom.XML
中:

<?xml version="1.0" encoding="UTF-8"?>

<project>
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <relativePath>../com.myrcpapp.parentplugin.path/pom.xml</relativePath>
        <groupId>my.group.id</groupId>
        <artifactId>parent</artifactId>
        <version>1.0.0.qualifier</version>
    </parent>

    <groupId>my.group.id</groupId>
    <artifactId>com.myrcpapp.dbplugin</artifactId>
    <packaging>eclipse-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>4.2.0.CR1</version>
        </dependency>
    </dependencies>
</project>
你知道我做错了什么吗


提前感谢

希望尝试回答此问题的人:
org.hibernate:hibernate core:4.2.0.CR1
甚至不是一个捆绑包。这将是不平凡的…JBoss maven repo中是否有Hibernate版本,这是一个捆绑包?我更喜欢支持注释的版本。。。
 [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.16.0:compile (default-compile) on project com.myrcpapp.dbplugin: Compilation failure: Compilation failure: com\myrcpapp\dbplugin
 [ERROR] C:\Documents and Settings\user\workspace\com.myrcpapp.dbplugin\src\com\myrcpapp\dbplugin\service\impl\ClientService.java:[3,0]
 [ERROR] import org.hibernate.Session;
 [ERROR] ^^^^^^^^^^^^^
 [ERROR] The import org.hibernate cannot be resolved
 [ERROR] C:\Documents and Settings\user\workspace\com.myrcpapp.dbplugin\src\com\myrcpapp\dbplugin\service\impl\ClientService.java:[4,0]
 [ERROR] import org.hibernate.Transaction;
 [ERROR] ^^^^^^^^^^^^^
 [..]
 [ERROR] Table cannot be resolved to a type
 [ERROR] C:\Documents and Settings\user\workspace\com.myrcpapp.dbplugin\src\com\myrcpapp\dbplugin\model\Client.java:[7,0]
 [ERROR] @Table(name="clients")
 [ERROR] ^^^^
 [ERROR] The attribute name is undefined for the annotation type Table
 [ERROR] 18 problems (18 errors)
 [ERROR] -> [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/MojoFailureException
 [ERROR] 
 [ERROR] After correcting the problems, you can resume the build with the command
 [ERROR]   mvn <goals> -rf :com.myrcpapp.dbplugin