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

On Fri, Jun 22, 2012 at 7:47 PM, Rupert Westenthaler
<[email protected]> wrote:
> Hi,
>
> Alessandro I do not understand your problem. I think there are some
> misunderstandings so I will try to describe form the beginning what is
> working for me.
>
> The install.sh script in apache-stanbol-0.9.0-incubating-deps.zip calls
>
> mvn install:install-file -DpomFile=deps/owlapi-3.2.3/owlapi-3.2.3.pom
> -Dfile=deps/owlapi-3.2.3/owlapi-bin.jar
> -Dsources=deps/owlapi-3.2.3/owlapi-src.jar
>
> this will install the dependency
>
>    <dependency>
>      <groupId>owlapi</groupId>
>      <artifactId>owlapi</artifactId>
>      <version>3.2.3</version>
>    </dependency>
>
> to you local repository
>
> therefore the pom.xml of "org.apache.stanbol.reasoners.hermit" needs also to 
> use
>
>    <dependency>
>      <groupId>owlapi</groupId>
>      <artifactId>owlapi</artifactId>
>    </dependency>
>
> and "hermit-1.3.6.pom" needs to refer
>
>    <dependency>
>      <groupId>owlapi</groupId>
>      <artifactId>owlapi</artifactId>
>      <version>3.2.2</version>
>    </dependency>
>
> in that case with the version, because it does not know about the parent pom
>
> If I change the files as described here than calling
>
>    mvn clean install -PinstallBundle
> -Dsling.url=http://localhost:8080/system/console
>
> succeeds, the bundle
>
>    org.apache.stanbol.reasoners.hermit:0.10.0.incubating-SNAPSHOT
>
> is active and also the
>
>    org.apache.stanbol.reasoners.hermit.HermitReasoningService
>
> is active.
>
> If you want to change to "groupId" form "owlapi" to
> "net.sourceforge.owlapi" as requested by STANBOL-619 that is fine with
> me, but than you need
>
> * to remove the owlapi:owlapi dependency from the parent pom
> * add the net.sourceforge.owlapi:owlapi to the parent pom
> * replace the group name in all bundles that use it
> * create a apache-stanbol-0.10.0-incubating-deps that ensures that
> net.sourceforge.owlapi:owlapi is intalled to the local repository
> instead.
>
> However I would suggest to wait with all that until
>
> * there is some reason to use a newer version of owlapi that is no
> longer available with "owlapi:owlapi" or
> * "net.sourceforge.owlapi:owlapi" is available via maven central as
> this would remove the requirement of an
> apache-stanbol-*-incubating-deps altogether.
>
> I hope this
>
>
> On Fri, Jun 22, 2012 at 7:12 PM, Alessandro Adamou <[email protected]> wrote:
>> On 6/22/12 5:38 PM, Rupert Westenthaler wrote:
>>>
>>> You can just change the dependency in the pom.xml of the hermit
>>> bundle. I just used the one I found in the parent pom.
>>>
>>> While doing so you might also want to resolve
>>>
>>>     https://issues.apache.org/jira/browse/STANBOL-619
>>
>>
>> I did that too, but it just wouldn't work. It just changes the error message
>> into
>>
>> [ERROR] Failed to execute goal on project
>> org.apache.stanbol.reasoners.hermit: Could not resolve dependencies for
>> project
>> org.apache.stanbol:org.apache.stanbol.reasoners.hermit:bundle:0.10.0-incubating-SNAPSHOT:
>> Could not find artifact net.sourceforge.owlapi:owlapi:jar:3.2.3 in
>> reasoners-hermit-embedded
>> (file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo)
>> -> [Help 1]
>>
>> The problem is that when I build the reasoners.hermit it wants owlapi to be
>> inside the embedded repo. I have it in my .m2 local repo but it just ignores
>> it. It doesn't even seem to look for it there. no matter what group ID I use
>> it won't find it.
>>
>> I've committed the new groupID, you can update it but it's not solving the
>> issue for me...
>>
>> best,
>> --alessandro
>>
>>
>>
>>>>> On Fri, Jun 22, 2012 at 5:01 PM, Alessandro Adamou<[email protected]>
>>>>>  wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> No dice, but perhaps it can be solved with a repository setup or
>>>>>> something?
>>>>>>
>>>>>> I cleaned up my local m2 repo, did a full Stanbol build then tried to
>>>>>> build
>>>>>> hermit. It cannot find owlapi:owlapi:3.2.3 despite having built it when
>>>>>> it
>>>>>> built commons.owl. Apparently it's only looking for it in the embedded
>>>>>> repository...
>>>>>>
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Building Apache Stanbol Reasoners: HermiT
>>>>>> 0.10.0-incubating-SNAPSHOT
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> Downloading:
>>>>>>
>>>>>>
>>>>>> file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/owlapi/owlapi/3.2.3/owlapi-3.2.3.pom
>>>>>> [WARNING] The POM for owlapi:owlapi:jar:3.2.3 is missing, no dependency
>>>>>> information available
>>>>>> Downloading:
>>>>>>
>>>>>>
>>>>>> file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/org/apache/stanbol/org.apache.stanbol.reasoners.servicesapi/0.10.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>>> Downloading:
>>>>>>
>>>>>>
>>>>>> file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/org/apache/stanbol/stanbol-parent/2-incubating-SNAPSHOT/maven-metadata.xml
>>>>>> Downloading:
>>>>>>
>>>>>>
>>>>>> file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/org/apache/stanbol/org.apache.stanbol.reasoners.owlapi/0.10.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>>> Downloading:
>>>>>>
>>>>>>
>>>>>> file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/org/apache/stanbol/org.apache.stanbol.commons.owl/0.10.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>>> Downloading:
>>>>>>
>>>>>>
>>>>>> file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/owlapi/owlapi/3.2.3/owlapi-3.2.3.jar
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] BUILD FAILURE
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Total time: 1.991s
>>>>>> [INFO] Finished at: Fri Jun 22 16:55:38 CEST 2012
>>>>>> [INFO] Final Memory: 7M/81M
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] Failed to execute goal on project
>>>>>> org.apache.stanbol.reasoners.hermit: Could not resolve dependencies for
>>>>>> project
>>>>>>
>>>>>>
>>>>>> org.apache.stanbol:org.apache.stanbol.reasoners.hermit:bundle:0.10.0-incubating-SNAPSHOT:
>>>>>> Could not find artifact owlapi:owlapi:jar:3.2.3 in
>>>>>> reasoners-hermit-embedded
>>>>>>
>>>>>>
>>>>>> (file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo)
>>>>>> ->  [Help 1]
>>>>>>
>>>>>> --Alessandro
>>>>>>
>>>>>>
>>>>>>
>>>>>>  On 6/22/12 4:14 PM, Alessandro Adamou wrote:
>>>>>>>
>>>>>>> Thank you Rupert. I'm trying to do a fresh build right now.
>>>>>>>
>>>>>>> On 6/22/12 3:27 PM, Rupert Westenthaler wrote:
>>>>>>>>
>>>>>>>> The problem its the hermit-1.3.4.jar itself as it includes all the
>>>>>>>> dependencies. I think this happens because hermit (even the newest
>>>>>>>> version) still uses owl-api 3.2.2 and o.a.s.commons.owl exports
>>>>>>>> owl-api 3.2.3.
>>>>>>>
>>>>>>>
>>>>>>> That's correct (and unfortunately the ontology manager code is built
>>>>>>> after
>>>>>>> owlapi 3.2.3), but I wonder how come it has been working for almost a
>>>>>>> year
>>>>>>> with these two owlapi versions together.
>>>>>>>
>>>>>>>> I think I have solved this problem by
>>>>>>>>
>>>>>>>> * using the source release of hermit (used the newest version 1.3.6)
>>>>>>>> * building it myself with the ant task HermiT-standalone-no-libraries
>>>>>>>> * adapting the POM to include dependencies of HermiT
>>>>>>>>    * had to add "automata:core:2.0.0-alpha-1" to the included maven
>>>>>>>> repo
>>>>>>>>
>>>>>>>> This avoids that owl-api is present in two different versions.
>>>>>>>
>>>>>>>
>>>>>>> Ok. I have unpacked the jars for hermit and jautomata, and noticed
>>>>>>> that
>>>>>>> the *.aut files that are in the standard Hermit distribution are not
>>>>>>> there.
>>>>>>> I think they are from dk.brics.automaton library (another dependency
>>>>>>> of
>>>>>>> hermit), IIRC weird results were delivered when it was not packaged...
>>>>>>> let's
>>>>>>> see.
>>>>>>>
>>>>>>> Thanks again
>>>>>>>
>>>>>>> Alessandro
>>>>>>>
>>>>>>>
>>>>>>>>>> On Fri, Jun 22, 2012 at 12:23 PM, Rupert Westenthaler
>>>>>>>>>> <[email protected]>      wrote:
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Jun 22, 2012 at 9:56 AM, Alessandro
>>>>>>>>>>> Adamou<[email protected]>
>>>>>>>>>>>  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> I had tried that too. The bundle would start but not the
>>>>>>>>>>>> component
>>>>>>>>>>>>
>>>>>>>>>>>> org.apache.stanbol.reasoners.hermit.HermitReasoningService
>>>>>>>>>>>>
>>>>>>>>>>>> Did it start for you?
>>>>>>>>>>>
>>>>>>>>>>> it is active for me.
>>>>>>>>>>>
>>>>>>>>>>> If you can send me instructions on how to test it (e.g. a shell
>>>>>>>>>>> script
>>>>>>>>>>> with curl requests) I will test if it is also functional
>>>>>>>>>>>
>>>>>>>>>>> best
>>>>>>>>>>> Rupert
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> | Rupert Westenthaler             [email protected]
>>>>>>>>>>> | Bodenlehenstraße 11
>>>>>>>>>>> ++43-699-11108907
>>>>>>>>>>> | A-5500 Bischofshofen
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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
>>>>>>>>>
>>>>>> --
>>>>>> 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
>>>>>>
>>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>
>>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> | Rupert Westenthaler             [email protected]
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen



-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to