Interesting, which compiler are you using?I can compile fine both on Java 5 and 6 using Apple JDKThere seems to be a bunch of bugs related to method overloading and generics in Sun's bug database. I am inclined to believe that method overloading is evil like the FAN guys think.I have just committed a fix for it, try it out.
On Mar 25, 2009, at 15:54, Marcel Overdijk wrote:
OK I managed to compile Core successfully (after disabling the tests).However compiling Hibernate Search gives some errors.It's complaining about:D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptimizationHelper.java:[63,34] name clash: mergeByBitAnds(java.util.List<org.apache.lucene.util.DocIdBitSet>) and mergeByBitAnds(java.util.List<org.apache.lucene.search.DocIdSet>) have the same erasureFull build trace:D:\Grails\hibernate\search>mvn install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Hibernate Search
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
Downloading: http://repository.jboss.com/maven2/woodstox/wstx-asl/3.2.7/wstx-asl
-3.2.7.pom
[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.7' in repository jboss
(http://repository.jboss.com/maven2)
Downloading: http://snapshots.jboss.org/maven2/woodstox/wstx-asl/3.2.7/wstx-asl-
3.2.7.pom
[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.7' in repository jboss
-snapshot (http://snapshots.jboss.org/maven2)
Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.7/wstx-asl-3.2.
7.pom
[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.7' in repository centr
al (http://repo1.maven.org/maven2)
[INFO] [compiler:compile]
[INFO] Compiling 188 source files to D:\Grails\hibernate\search\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failureD:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim
izationHelper.java:[63,34] name clash: mergeByBitAnds(java.util.List<org.apache.
lucene.util.DocIdBitSet>) and mergeByBitAnds(java.util.List<org.apache.lucene.se
arch.DocIdSet>) have the same erasureD:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim
izationHelper.java:[85,33] name clash: mergeByBitAnds(java.util.List<org.apache.
lucene.util.OpenBitSet>) and mergeByBitAnds(java.util.List<org.apache.lucene.sea
rch.DocIdSet>) have the same erasureD:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim
izationHelper.java:[47,42] mergeByBitAnds(java.util.List<org.apache.lucene.searc
h.DocIdSet>) in org.hibernate.search.filter.FilterOptimizationHelper cannot be a
pplied to (java.util.List<org.apache.lucene.util.OpenBitSet>)D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim
izationHelper.java:[50,42] mergeByBitAnds(java.util.List<org.apache.lucene.searc
h.DocIdSet>) in org.hibernate.search.filter.FilterOptimizationHelper cannot be a
pplied to (java.util.List<org.apache.lucene.util.DocIdBitSet>)On Wed, Mar 25, 2009 at 6:36 PM, Emmanuel Bernard <emmanuel@hibernate.org> wrote:
Long story short, it's all in Maven now.
> svn co http://anonsvn.jboss.org/repos/hibernate/core/trunk/ core
> svn co http://anonsvn.jboss.org/repos/hibernate/search/trunk/ search
> cd core
> mvn install (1)
> cd ../search mvn install
(1) might fail on some doc generation but as long as the snapshot are published to your local repo you're good.
Also make sure to use the proper maven settings http://hibernate.org/422.html
I use maven 2.0.9 and it works.
On Mar 25, 2009, at 10:58, Hardy Ferentschik wrote:_______________________________________________On Wed, 25 Mar 2009 15:38:45 +0100, Marcel Overdijk <marceloverdijk@gmail.com> wrote:
I've checked out the latest Hibernate Search from trunk and I'm trying to
build it. I know I need the latest annotations code also.
You might want to update your source again. I finally completed HSEARCH-82 today and
converted Hibernate Search to a maven only build. All obsolete ant files are now removed.
As described on http://hibernate.org/449.html Local latest version I changed the commons-annotations rev to "latest" in ivy.xml but it's not working
either.
Really http://hibernate.org/449.html is obsolete. I am in the process of updating it.
--Hardy
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev