saad120 / dkpro-wsd

Automatically exported from code.google.com/p/dkpro-wsd
0 stars 0 forks source link

Problem with different dependent hibernate-core versions #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem: The following two dependencies require distinct versions of the 
indirect hibernate-core dependency:
(i) de.tudarmstadt.ukp.wikipedia.api (which is a dependency in 
de.tudarmstadt.ukp.dkpro.wsd.graphconnectivity)
(ii) de.tudarmstadt.ukp.uby.persistence.transform-asl

When I added (ii) to the DKPro-WSD-GPL-examples pom.xml (because I want to use 
GermaNet from UBY), where (i) was already existent, this caused the following 
error:

2013-10-01 15:07:24 ERROR [main] (SchemaUpdate) - HHH000388: Unsuccessful: 
alter table Frequency add index FK7345A53C56B52CE0 (lexicalEntryId), add 
constraint FK7345A53C56B52CE0 foreign key (lexicalEntryId) references 
LexicalEntry (lexicalEntryId)
2013-10-01 15:07:24 ERROR [main] (SchemaUpdate) - Can't create table 
'uby_release_1_0.#sql-3ce_7' (errno: 150)
Exception in thread "main" 
org.apache.uima.resource.ResourceInitializationException: Unexpected Throwable 
or Error thrown when initializing Custom Resource 
"de.tudarmstadt.ukp.dkpro.wsd.si.resource.UbySenseInventoryResource" from 
descriptor "<unknown>".

The order in which the two dependencies are added to the pom is relevant: "if 
two dependency versions are at the same depth in the dependency tree, until 
Maven 2.0.8 it was not defined which one would win, but since Maven 2.0.9 it's 
the order in the declaration that counts: the first declaration wins" [Source: 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism
.html]

Solution 1: reorder the two dependencies insofar that the one that is needed 
comes first (see figures "before.tiff" and "after.tiff").

Remaining problem: probably when both (i) and (ii) are required.

Solution 2: you might want to synchronize the UBY and Wikipedia libraries to 
use the same hibernate-core version. 

Original issue reported on code.google.com by verenahe...@gmail.com on 1 Oct 2013 at 2:07

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by tristan.miller@nothingisreal.com on 1 Oct 2013 at 2:17

GoogleCodeExporter commented 9 years ago
Verena, I have removed the Wikipedia dependencies from the graphconnectivity 
module (Issue 34).  Could you update to the latest version from the repository 
and see if this solves the problem for you?

Original comment by tristan.miller@nothingisreal.com on 8 Oct 2013 at 5:17

GoogleCodeExporter commented 9 years ago
Tristan, thanks for the update. Yes, now the problem is gone when version 0.9.1 
of the graphconnectivity module is used. That is, for 
de.tudarmstadt.ukp.dkpro.wsd.examples-gpl, which still points to 0.9.0, the pom 
needs to be updated manually. You might want to consider updating the 
examples-gpl/pom.xml to point to 0.9.1 to solve this.

Original comment by verenahe...@gmail.com on 8 Oct 2013 at 5:49

GoogleCodeExporter commented 9 years ago

Original comment by tristan.miller@nothingisreal.com on 20 Nov 2013 at 3:03