On 04/07/15 13:15, Alex Sviridov wrote:

I can't get apache-jena-osgi jar. I tried central repo
<dependency>
     <groupId>org.apache.jena</groupId>
     <artifactId>apache-jena-osgi</artifactId>
     <version>2.13.0</version>
</dependency>
but constanly get
The POM for org.apache.jena:jena-osgi:jar:2.12.2-SNAPSHOT is missing, no 
dependency information available


I think it is because you need to add <type>pom</type>

 <dependency>
      <groupId>org.apache.jena</groupId>
      <artifactId>apache-jena-osgi</artifactId>
      <version>2.13.0</version>
      <type>pom</type>
 </dependency>

org.apache.jena:apache-jena-osgi is not the bundle itself but an indirection point that pulls in the right modules (which the project reserves the right to change, hence the indirection point).

I don't know why it is saying 2.12.2-SNAPSHOT -- the released apache-jena-osgi looks OK to me.

(there is supposed to be some documentation at /download/osgi.html but no one has written it yet. Hint, hint :-)

        Andy


Finally I downloaded sources and built it myself. Here is the output of maven 
install:
[INFO]--- maven-install-plugin:2.5.2:install (default-install)@ jena-osgi 
---[INFO]Installing/home/Me/SoftProjects/LIB/jena-master/apache-jena-osgi/jena-osgi/target/jena-osgi-3.0.0-SNAPSHOT.jar
 to 
/home/Me/.m2/repository/org/apache/jena/jena-osgi/3.0.0-SNAPSHOT/jena-osgi-3.0.0-SNAPSHOT.jar
[INFO]Installing/home/Me/SoftProjects/LIB/jena-master/apache-jena-osgi/jena-osgi/pom.xml
 to 
/home/Me/.m2/repository/org/apache/jena/jena-osgi/3.0.0-SNAPSHOT/jena-osgi-3.0.0-SNAPSHOT.pom
[INFO][INFO]--- maven-bundle-plugin:2.5.3:install (default-install)@ jena-osgi 
---[INFO]Installing 
org/apache/jena/jena-osgi/3.0.0-SNAPSHOT/jena-osgi-3.0.0-SNAPSHOT.jar
[INFO]Writing OBR metadata
[INFO]------------------------------------------------------------------------[INFO]ReactorSummary:[INFO][INFO]ApacheJena-OSGi................................
 SUCCESS [4.898s][INFO]ApacheJena-OSGi bundle ......................... SUCCESS 
[26.290s][INFO]------------------------------------------------------------------------[INFO]
 BUILD SUCCESS
[INFO]------------------------------------------------------------------------[INFO]Total
 time:32.665s[INFO]Finished at:SatJul0414:32:44 MSK 
2015[INFO]FinalMemory:30M/450M[INFO]------------------------------------------------------------------------
However in  /home/Me/.m2/repository/org/apache/jena/jena-osgi/3.0.0-SNAPSHOT/ 
there is not jar file. Only pom.

How can I get jena-osgi.jar? I have never had such strange problem with getting 
jar file.






Reply via email to