On 04/07/15 21:18, Alex Sviridov wrote:
  Thank you very much. I added the aoache snapshot repository and I got the jar 
file. Can you answer the following questions:
Please add this to the stackoveflow question.

1) is is standart apache policy not to keep snapshot in central maven?

Not Apache specific - maven central has releases, not snapshots.

2) how can I building jena from sources to get this osgi jar? I tried maven 
install both to parent and module. I got the output that jar was copied but in 
local maven repo I had only pom.

Build it from the top, not partially.

As on stackoverflow - probably because you are doing a partial build of one part of jena, so dependent snapshots for the bundling and parent POMs are not available.

        Andy


Суббота,  4 июля 2015, 21:00 +01:00 от Andy Seaborne <[email protected]>:
On 04/07/15 20:40, Alex Sviridov wrote:
   Thank you for you answer. But if I add <type>POM</type> then the necessary 
classes are not found.

<type>pom</type>  Lowercase.

Which classes?

(do you have a mix of 2.13.0 and 3.0.0-SNAPSHOT? because there is a
package name change between them)

Snapshots need

      <repository>
        <id>apache.snapshots</id>
        <name>Apache Snapshot Repository</name>
        <url>http://repository.apache.org/snapshots</url>
        <releases>
          <enabled>false</enabled>
        </releases>
        <snapshots>
          <enabled>true</enabled>
        </snapshots>
      </repository>

because they are not in maven central.


Really, I don't understand who and why did this way. It really as nightmare to 
get jena-osgi jar file. Please, help me to get as I use osgi and need jena as 
osgi bundle.


The artifact is apache-jena-osgi (that currently goes to jena-osgi which
is the jar IIRC)

I'm trying to! (and I don't use OSGI currently)

Andy


Суббота,  4 июля 2015, 20:21 +01:00 от Andy Seaborne < [email protected] >:
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