Indeed, I had to add the exclusion for net.sourceforge.owlapi:owlapi as
well, but after I did that it worked. The reasoner seems to run fine.
I committed the new exclusion and also saw to it that the embedded
repositories are not copied into the target bundle.
Thanks a lot for all the help, it's really, really appreciated.
Alessandro
On 6/25/12 7:28 PM, Rupert Westenthaler wrote:
Hi Alessandro,
I reverted you change to add the
"net.sourceforge.owlapi:owlapi:jar:3.2.3" to the embedded maven
repository of the hermit reasoner as I think I have found an other way
to deal with this problem.
When looking at the dependency tree of the
"org.apache.stanbol.reasoners.hermit" module I recognized that
hermit:hermit:jar:1.3.6
had an dependency to
owlapi:owlapi:jar:3.2.2
because of that I was getting a similar exception as you, but with
"owlapi:owlapi:jar:3.2.2" instead of
"net.sourceforge.owlapi:owlapi:jar:3.2.3" reported by you.
So even your addition of "net.sourceforge.owlapi:owlapi:jar:3.2.3" to
the local repository had not solved this issue for me.
However you need to note that this dependency is unwanted in anyway,
that the "org.apache.stanbol.reasoners.hermit" module needs to use the
owlapi version exported by "org.apache.stanbol.commons.owl". because
of that I added the following exclusion to the hermit dependency
<dependency>
<groupId>hermit</groupId>
<artifactId>hermit</artifactId>
<version>1.3.6</version>
<scope>compile</scope>
<exclusions>
<exclusion><!-- we want to use owlapi version exported by
o.a.s.commons.owl -->
<groupId>owlapi</groupId>
<artifactId>owlapi</artifactId>
</exclusion>
</exclusions>
</dependency>
I do think that this will not solve the issue for you, as you got -
for some reason unknown to me - an other exception.
So if this the case you will need to add an 2nd exclusion with
<exclusion><!-- we want to use owlapi version exported by
o.a.s.commons.owl -->
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi</artifactId>
</exclusion>
I really hope that this finally solves this
best
Rupert
--
M.Sc. Alessandro Adamou
Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna - Italy
Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy
"I will give you everything, just don't demand anything."
(Ettore Petrolini, 1917)
Not sent from my iSnobTechDevice