Hi Bradley, Sorry for that :-)
Yes, this library is currently in an unfortunate state, as in the maven 2 repository, there is only the pom file which points you to download from the day site. Unfortunately it also does not help pointing maven at the day repository, as maven keeps trying repo1. So you will (for the moment, see below) have to manually download and locally install the jcr.jar file as instructed by maven. I will update the first-steps page with this information. Now, why "for the moment": Day is currently investigating whether and how the jcr-1.0.jar file could be made publicly available in the official maven repo. The problem is however not of a technical but of a licensing nature. Until that time, the manual installation is unfortunately required. Hope this helps. Regards Felix Am Montag, den 24.09.2007, 21:16 +1000 schrieb Bradley Beddoes: > Hi, > Just ran into the following: > > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Sling - Repository API and Commons Bundle > [INFO] task-segment: [install] > [INFO] > ---------------------------------------------------------------------------- > Downloading: http://repo1.maven.org/maven2/javax/jcr/jcr/1.0/jcr-1.0.jar > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > 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 > Alternatively, if you host your own repository you can deploy the file > there: mvn deploy:deploy-file -DgroupId=javax.jcr -DartifactId=jcr \ > -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file \ > -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) > org.apache.sling:sling-jackrabbit-api:bundle:2.0.0-incubator-SNAPSHOT > 2) javax.jcr:jcr:jar:1.0 > > ---------- > 1 required artifact is missing. > > for artifact: > org.apache.sling:sling-jackrabbit-api:bundle:2.0.0-incubator-SNAPSHOT > > from the specified remote repositories: > apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), > central (http://repo1.maven.org/maven2) > > > I seem to be able to resolve the file from www.day.com if that helps you > I haven't manually installed it however. It seems weird that the error > occurs in the Install task segment which you advise to disable. I did > excute the build as: > [EMAIL PROTECTED] sling]$ mvn -Dsling.install.skip=true install > > Also tired exporting with JAVA_OPTS made no difference. Is latest SVN > trunk head code as of a few minutes ago. > > [EMAIL PROTECTED] sling]$ mvn -version > Maven version: 2.0.7 > Java version: 1.6.0_02 > OS name: "linux" version: "2.6.22.1-41.fc7" arch: "i386" > > Any ideas? > > Bradley > > Bradley Beddoes wrote: > > Hi Felix, > > > > Felix Meschberger wrote: > >> Hi Bradly, > >> > >> I am very glad to head, that you are trying to use Sling. > >> > >> Now, for what you can expect: Currently the code is in an early stage > >> and we are constantly improving it almost on an hourly basis. Just today > >> I fixed a few rough bugs around JSP compilation and execution reported > >> by Edgar. > > > > No problems for me I am used to working on the edge of new codebases its > > always interesting until things start becoming more stable. > > > >> > >> So, after getting the source, you have - for now - to build it by > >> yourself and deploy. I added a page [1] listing the steps to get a > >> running Sling instance from the SVN checkout. > >> > >> Of course, it would be great if you would report any issues you find, so > >> that we can improve the system :-) > > > > Certainly will. Building now, have a few things to do at the present > > with our other big project so a response may be a few days. > > > >> > >> Hope this helps. > > > > Certainly has given I come from an Ivy background not Maven. (Ivy is > > another incubating project at Apache which I personally prefer over Maven). > > > > regards, > > Bradley > > > >> > >> Regards > >> Felix > >> > >> [1] http://incubator.apache.org/sling/site/first-steps.html (may take > >> some time before you see it due to synchronization issues) > >> > >> Am Samstag, den 22.09.2007, 14:47 +1000 schrieb Bradley Beddoes: > >>> Hi All, > >>> Have spent the afternoon reading about your sling project and I must > >>> say I think you've covered some excellent ground in a direction we > >>> have been planning to head in here at intient which is great. > >>> > >>> Going to have a play from SVN today/tonight, anything in particular I > >>> should be looking out for in regards to current issues?. > >>> > >>> regards, > >>> Bradley > >>> > >> > > > > > > > -- > Bradley Beddoes > Lead Software Architect > Intient > > http://intient.com - "Building intelligent open source solutions for > your enterprise"
