-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Error compiling Hibernate search with maven
PostPosted: Tue Feb 16, 2010 9:25 am 
Newbie

Joined: Fri Feb 12, 2010 11:20 am
Posts: 6
Location: italy
When i try with mvn install on hibernate search source ,i have this error in a eclipse console:
(i have jdk 1.6_17 ,maven 2.2.1,windows vista o.s. and i have follow instruction for compile here:https://www.hibernate.org/462.html#A6)

Thanks,

alex.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building A custom project
[INFO]
[INFO] Id: org.hibernate:hibernate-search-quickstart:jar:3.2.0-SNAPSHOT
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/hiber ... Beta-4.pom
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/hiber ... Beta-4.jar
[ERROR]

Transitive dependency resolution for scope: compile has failed for your project.



Error message: Missing:
----------
1) org.hibernate:hibernate-search:jar:3.2.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-search -Dversion=3.2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-search -Dversion=3.2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hibernate:hibernate-search-quickstart:jar:3.2.0-SNAPSHOT
2) org.hibernate:hibernate-search:jar:3.2.0-SNAPSHOT

2) org.hibernate:hibernate-entitymanager:jar:3.5.0-Beta-4

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-entitymanager -Dversion=3.5.0-Beta-4 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-entitymanager -Dversion=3.5.0-Beta-4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hibernate:hibernate-search-quickstart:jar:3.2.0-SNAPSHOT
2) org.hibernate:hibernate-entitymanager:jar:3.5.0-Beta-4

----------
2 required artifacts are missing.

for artifact:
org.hibernate:hibernate-search-quickstart:jar:3.2.0-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

Group-Id: org.hibernate
Artifact-Id: hibernate-search-quickstart
Version: 3.2.0-SNAPSHOT
From file: C:\eclipse\workspace\hibernate-search-archetype\pom.xml



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Mon Feb 15 19:19:23 CET 2010
[INFO] Final Memory: 2M/10M
[INFO] ------------------------------------------------------------------------


Top
 Profile  
 
 Post subject: Re: Error compiling Hibernate search with maven
PostPosted: Tue Feb 16, 2010 11:18 am 
Newbie

Joined: Fri Feb 12, 2010 11:20 am
Posts: 6
Location: italy
if before recompile hibernate core i obtain this error:

Downloading: http://repo1.maven.org/maven2/org/jboss ... -2.0.0.pom
[INFO] Unable to find resource 'org.jboss.maven.plugins:maven-jdocbook-style-plugin:pom:2.0.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.maven.plugins:maven-jdocbook-style-plugin

Reason: POM 'org.jboss.maven.plugins:maven-jdocbook-style-plugin' not found in repository: Unable to download the artifact from any repository


Top
 Profile  
 
 Post subject: Re: Error compiling Hibernate search with maven
PostPosted: Tue Feb 16, 2010 11:26 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Have you added the JBoss repository to your settings.xml file?
Also before running the build from within Eclipse try to build from the command line. This will help to isolate problems. Provided you made the changes to settings.xml you should be able to compile Search out of the box without the need to compile/install anything else. Maven should take care of resolving all dependencies.

Also, hibernate-search-quickstart is part of the source tree. I don't know what this should result in a missing dependency.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.