You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Ned Collyer <ne...@gmail.com> on 2007/03/02 04:37:15 UTC

Re: [jira] Compiling with eclipse/maven2



Christoph Kiehl-2 wrote:
> 
> Yusuf M wrote:
>> Hi,I'm having problems with Maven2. It says that the javax.jcr dependency
>> is missing. I have tried everything including downloading the jar and
>> pointing maven's dependency's local dir to it. Everything else is
>> standard out of the box, no changes. Does anyone use
>> eclipse/subclipse/maven to work on jackrabbit?Which other IDEs do people
>> prefer?Thanks.
> 
> If the javax.jcr dependency is missing you should get an error message
> like that 
> when trying to execute "mvn eclipse:eclipse":
> 
> Missing:
> ----------
> 1) javax.jcr:jcr:jar:1.0
> 
>    Try downloading the file manually from:
>        http://www.day.com/maven/jsr170/jars/jcr-1.0.jar
> 
>    Then, install it using the command:
>        mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \
>            -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
> 
>    Path to dependency:
>    	1) org.apache.jackrabbit:jackrabbit-api:jar:1.2-SNAPSHOT
>    	2) javax.jcr:jcr:jar:1.0
> 
> This already states how to install the javax.jcr dependency in your local 
> repository. After executing the "install:install-file" goal just execute
> the 
> "eclipse:eclipse" goal again and refresh your eclipse project.
> 
> Cheers,
> Christoph
> 
> 
> 

Surely there is a more elegant way to do this.  The idea behind Maven is
that it manages dependencies.  

Sure I can install this manually here, or deploy it to my own repository but
this is not satisfactory for managing code between different offices, or
deploying to cargo or cruise control.
-- 
View this message in context: http://www.nabble.com/Compiling-with-eclipse-maven2-tf3242400.html#a9263496
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Re: Compiling with eclipse/maven2

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 3/2/07, Christoph Kiehl <ki...@subshell.com> wrote:
> Well, I would like this artifact to be available on a global repository as well,
> but apparently this is not possible due to licensing issues. See
> http://issues.apache.org/jira/browse/JCR-432 and this thread
> http://www.arcknowledge.com/gmane.comp.apache.jackrabbit.devel/2004-09/msg00049.html.
> Please correct me if I'm wrong!

(With my Day hat on.) We at Day are working out the details to get the
JCR API jar out there in the global Maven repository. The policy
decision of making the jar available in the central repository has
already been made, so now it's only a matter of getting the bits out
there. We'll keep you posted.

BR,

Jukka Zitting

Re: Compiling with eclipse/maven2

Posted by Christoph Kiehl <ki...@subshell.com>.
Ned Collyer wrote:

>>    Then, install it using the command:
>>        mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \
>>            -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file

> Surely there is a more elegant way to do this.  The idea behind Maven is
> that it manages dependencies.  
> 
> Sure I can install this manually here, or deploy it to my own repository but
> this is not satisfactory for managing code between different offices, or
> deploying to cargo or cruise control.

Well, I would like this artifact to be available on a global repository as well, 
but apparently this is not possible due to licensing issues. See 
http://issues.apache.org/jira/browse/JCR-432 and this thread 
http://www.arcknowledge.com/gmane.comp.apache.jackrabbit.devel/2004-09/msg00049.html.
Please correct me if I'm wrong!

I actually deployed this jar to our local repository. That solves the problem 
for my company.

Cheers
Christoph