Hi,
I am not sure the Jena distribution zip is ready: ARQ is missing from it
and we have the old problem of circular dependencies between Jena and ARQ.

I tried fixing this doing this:

Index: pom.xml
===================================================================
--- pom.xml     (revision 1202912)
+++ pom.xml     (working copy)
@@ -33,11 +33,20 @@
   </properties>

   <dependencies>
+
     <dependency>
-       <groupId>org.apache.jena</groupId>
-       <artifactId>jena-iri</artifactId>
-       <version>0.9.0-incubating-SNAPSHOT</version>
+      <groupId>org.apache.jena</groupId>
+      <artifactId>jena-iri</artifactId>
+      <version>0.9.0-incubating-SNAPSHOT</version>
     </dependency>
+
+    <dependency>
+      <groupId>org.apache.jena</groupId>
+      <artifactId>jena-arq</artifactId>
+      <version>${ver.arq}</version>
+      <scope>runtime</scope>
+    </dependency>
+
   </dependencies>

   <build>
@@ -121,6 +130,31 @@
       </plugin>

       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <configuration>
+          <outputDirectory>${project.basedir}/lib</outputDirectory>
+          <overWriteReleases>false</overWriteReleases>
+          <overWriteSnapshots>true</overWriteSnapshots>
+        </configuration>
+        <executions>
+          <execution>
+            <id>copy-source-dependencies-for-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>copy-dependencies</goal>
+            </goals>
+            <configuration>
+              <classifier>sources</classifier>
+ <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
+              <includeScope>runtime</includeScope>
+ <outputDirectory>${project.build.directory}/dependency-sources</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <executions>
           <execution>
Index: assembly.xml
===================================================================
--- assembly.xml        (revision 1202912)
+++ assembly.xml        (working copy)
@@ -38,8 +38,7 @@
       <directory>${project.basedir}/lib</directory>
       <outputDirectory>lib</outputDirectory>
       <includes>
-        <include>arq-*</include>
-        <include>lucene-*</include>
+        <include>jena-arq-*</include>
         <include>stax-api-*</include>
         <include>wstx-asl-*</include>
       </includes>
@@ -50,7 +49,8 @@
       <directory>${project.build.directory}/dependency-sources</directory>
       <outputDirectory>lib-src</outputDirectory>
       <includes>
-        <include>iri-*-sources.jar</include>
+        <include>jena-iri-*-sources.jar</include>
+        <include>jena-arq-*-sources.jar</include>
       </includes>
     </fileSet>

@@ -58,8 +58,8 @@
       <directory>${project.build.directory}</directory>
       <outputDirectory>lib-src</outputDirectory>
       <includes>
-        <include>jena-${project.version}-sources.jar</include>
-        <include>jena-${project.version}-tests-sources.jar</include>
+        <include>jena-core-${project.version}-sources.jar</include>
+        <include>jena-core-${project.version}-tests-sources.jar</include>
       </includes>
     </fileSet>


However, ARQ dependencies are not included transitively. This is a problem.

What about creating a jena-dist | jena-all module whose aim is just to create
the distribution? We discussed this already, but I am not sure this is included
in the first Apache release or not. This module can depend on Jena as well as
ARQ and therefore we can have an assembly.xml which includes all the necessary
dependencies.

If we agree on this, I'll provide an initial version tomorrow (just let me know
your preference for the name of the module).
If we do not agree on this, well we have a problem and at the moment I do not
have another proposal on how to solve this.

Paolo

Reply via email to