You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Andy Seaborne <an...@apache.org> on 2012/06/14 11:58:55 UTC

Re: [] Release Jena 2.7.1 (v2)

On 14/06/12 10:37, Ian Dickinson wrote:
> I had a build failure when I tried to compile the source archive. Log
> attached.
>
> Ian

> ian@ian-desktop $ unzip ../jena-2.7.1-source-release.zip
> Archive:  ../jena-2.7.1-source-release.zip
>    creating: jena-2.7.1/
>    creating: jena-2.7.1/jena-examples/
>    creating: jena-2.7.1/jena-examples/bin/
>
>  [approx 10K lines of unzip output elided ...]

unzip -q ...

> [~/Downloads/temp/jena-2.7.1]
> ian@ian-desktop $ mvn clean compile

You must use mvn install, not mvn compile.

mvn compile works for the main artifact but ARQ requires the "tests" 
classifier sub-artifact from Jena core.  That is not available in a 
plain "mvn compile".  (Nowadays, ideally, a separate "test" module would 
be good ...).  ARQ uses various test framework stuff (e.g. abstract 
classes) from jena core.

That's why it gets to ARQ and managed to compile core.  Core depends on 
the IRI artifact, not the sub-artifact by classifier.

mvn install puts the artifacts from earlier stages in the local repo so 
a later stage can find them.

Could you please try "mvn install"?

I get the same as you with a cleaned repo and "mvn compile" and it all 
works for "mvn install"

	Andy

Re: [] Release Jena 2.7.1 (v2)

Posted by Andy Seaborne <an...@apache.org>.
On 14/06/12 11:41, Ian Dickinson wrote:
> On 14/06/12 10:58, Andy Seaborne wrote:
>> On 14/06/12 10:37, Ian Dickinson wrote:
>>> I had a build failure when I tried to compile the source archive. Log
>>> attached.
>>>
>>> Ian
>>
>>> ian@ian-desktop $ unzip ../jena-2.7.1-source-release.zip
>>> Archive: ../jena-2.7.1-source-release.zip
>>> creating: jena-2.7.1/
>>> creating: jena-2.7.1/jena-examples/
>>> creating: jena-2.7.1/jena-examples/bin/
>>>
>>> [approx 10K lines of unzip output elided ...]
>>
>> unzip -q ...
>>
>>> [~/Downloads/temp/jena-2.7.1]
>>> ian@ian-desktop $ mvn clean compile
>>
>> You must use mvn install, not mvn compile.
> Doh. Yes, of course.

No "doh" about it.  It's the secondary artifacts that make it required - 
and why it gets to ARQ before failing.  It got past core depending on 
jena-iri.

Instructions added for next time.  And put in the right place.

>
>> Could you please try "mvn install"?
> Works.

:-)

>
> Ian
>

	Andy

Re: [] Release Jena 2.7.1 (v2)

Posted by Ian Dickinson <ia...@epimorphics.com>.
On 14/06/12 10:58, Andy Seaborne wrote:
> On 14/06/12 10:37, Ian Dickinson wrote:
>> I had a build failure when I tried to compile the source archive. Log
>> attached.
>>
>> Ian
>
>> ian@ian-desktop $ unzip ../jena-2.7.1-source-release.zip
>> Archive: ../jena-2.7.1-source-release.zip
>> creating: jena-2.7.1/
>> creating: jena-2.7.1/jena-examples/
>> creating: jena-2.7.1/jena-examples/bin/
>>
>> [approx 10K lines of unzip output elided ...]
>
> unzip -q ...
>
>> [~/Downloads/temp/jena-2.7.1]
>> ian@ian-desktop $ mvn clean compile
>
> You must use mvn install, not mvn compile.
Doh. Yes, of course.

> Could you please try "mvn install"?
Works.

Ian