maven - Hibernate pom exception -
i getting following error when trying execute maven build:
[error] failed execute goal on project hellohibernate: not resolve dependencies project org.nsingh.hibernate:hellohibernate:war:1.0: not find artifact org.hibernate:hibernate:jar:3.5.4-final in central (http://repo.maven.apache.org/maven2) -> [help 1] [error]
for following pom :
<project> <modelversion>4.0.0</modelversion> <version>1.0</version> <groupid>org.nsingh.hibernate</groupid> <artifactid>hellohibernate</artifactid> <packaging>war</packaging> <url>http://maven.apache.org</url> <build> <plugins> <plugin> <artifactid>maven-war-plugin</artifactid> <version>2.4</version> <configuration> <warsourcedirectory>webcontect</warsourcedirectory> <failonmissingwebxml>false</failonmissingwebxml> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>5.0.0.cr1</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-entitymanager</artifactid> <version>5.0.0.cr1</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-annotations</artifactid> <version>3.5.6-final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate</artifactid> <version>3.5.4-final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>ejb3-persistence</artifactid> <version>3.3.2.beta1</version> </dependency> </dependencies> </project>
how resolve ?
let me answer myself:
add
<type>pom</type>
dependency.
Comments
Post a Comment