I just had to also copy net.sourceforge.owlapi:owlapi:3.2.3 (verbatim from the commons.owl bundle) in the contrib/reasoners/hermit Maven repo as well. I'm sorry for having to do that, but without it the module was not building here anymore. If I tried from a fresh checkout and after doing

  rm -R ~/.m2

then a full Stanbol build (where commons.owl builds the owlapi, same groupId, same artifactId, same version)

it was not finding the owlapi artifact despite the fact that it is in my local repository (see build trace below).

By the way, can we avoid the whole embedded maven repositories to be included in the target JARs? They are much larger than they need to be. I don't know the best way to do so, maybe:

    <build>
        <resources>
            <resource>
<directory>src/main/resources</directory>
                <excludes>
                    <exclude>maven/repo</exclude>
                </excludes>
            </resource>
        </resources>
    </build>


Now let's hope for owlapi 3.3.0 to enter maven-central soon...

Alessandro


====== BUILD TRACE =======

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Stanbol Reasoners: HermiT 0.10.0-incubating-SNAPSHOT
[INFO] ------------------------------------------------------------------------ Downloading: http://repo.maven.apache.org/maven2/org/apache/sling/maven-sling-plugin/2.0.6/maven-sling-plugin-2.0.6.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/sling/maven-sling-plugin/2.0.6/maven-sling-plugin-2.0.6.pom (5 KB at 3.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/sling/maven-sling-plugin/2.0.6/maven-sling-plugin-2.0.6.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/sling/maven-sling-plugin/2.0.6/maven-sling-plugin-2.0.6.jar (35 KB at 103.0 KB/sec) Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0.pom Downloading: http://repo.maven.apache.org/maven2/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0.pom (3 KB at 16.4 KB/sec) Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/hermit/hermit/1.3.6/hermit-1.3.6.pom Downloaded: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/hermit/hermit/1.3.6/hermit-1.3.6.pom (1020 B at 12.6 KB/sec) Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/net/sourceforge/owlapi/owlapi/3.2.3/owlapi-3.2.3.pom [WARNING] The POM for net.sourceforge.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/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.pom Downloading: http://repo.maven.apache.org/maven2/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.pom Downloaded: http://repo.maven.apache.org/maven2/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.pom (2 KB at 7.5 KB/sec) Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/jautomata/core/2.0.0-alpha-1/core-2.0.0-alpha-1.pom Downloaded: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/jautomata/core/2.0.0-alpha-1/core-2.0.0-alpha-1.pom (190 B at 18.6 KB/sec) 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/hermit/hermit/1.3.6/hermit-1.3.6.jar Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/net/sourceforge/owlapi/owlapi/3.2.3/owlapi-3.2.3.jar Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.jar Downloading: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/jautomata/core/2.0.0-alpha-1/core-2.0.0-alpha-1.jar Downloaded: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/jautomata/core/2.0.0-alpha-1/core-2.0.0-alpha-1.jar (101 KB at 3872.9 KB/sec) Downloaded: file://localhost//Users/alessandro/workspaces/IKS/main/stanbol/contrib/reasoners/hermit/src/main/resources/maven/repo/hermit/hermit/1.3.6/hermit-1.3.6.jar (3376 KB at 15345.1 KB/sec) Downloading: http://repo.maven.apache.org/maven2/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.jar Downloaded: http://repo.maven.apache.org/maven2/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.jar (173 KB at 593.6 KB/sec) [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.088s
[INFO] Finished at: Mon Jun 25 17:40:48 CEST 2012
[INFO] Final Memory: 8M/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 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]

On 6/24/12 3:42 PM, Fabian Christ wrote:
Hi,

2012/6/23 Rupert Westenthaler <[email protected]>:
However - Fabian please correct me if I am wrong - we are not allowed
to release embedded maven repositories as part of our source releases.
If I lookup the same in the 0.9.0 branch [2] there is no such embedded
repository and this is also the reason for the
"apache-stanbol-0.9.0-incubating-deps" available for download at [3].
the only reason why I did not made that change in the trunk was my
hope that OWLAPI 3.0.0 would be available soon via Maven central. Then
we could have updated to 3.0.0 and the problem would be solved in the
trunk. Technically, there was no reason to also change the trunk as it
has worked fine so far. The problem with the embedded repos is only
for releases. But to make releases possible there should be not
embedded repos.

The apache-stanbol-0.9.0-incubating-deps uses already groupId
"net.sourceforges.owlapi".

Best,
  - Fabian



--
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

Reply via email to