While experimenting with Maven2 I experienced the following error:
Missing:
----------
1) jsr170:jcr:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jsr170 -DartifactId=jcr \
-Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.moesol.bv:BattlespaceVideo:jar:1.0-SNAPSHOT
2) jsr170:jcr:jar:1.0
So I took the error message's advice and did the "mvn install:install-file
.". That fixed the problem and patched my local repository. However this
leads sort an uncomfortable situation. If I have 15 developers on my team I
now have to notify them to manually patch their repositories and answer
their queries about how "I broke the build." Not a tolerable situation.
So what I'd like to do is this. I'd like to host a maven repository on our
server (linux running apache and ssh). However I don't want it to be a
full-blown rsynch'ed repository that mirrors www.ibiblio.org/maven2. I want
the repository to be just like my local repository in that it has only the
jars that our project needs, but one that I can point all our development
team to. So when I come across this problem in the future, I can go out to
that one shared, but local and minimal, repository do the "mvn
install:install-file" and all our developers will see the change. Although
I can find docs on how to accomplish the rsynch'ed full mirror repository
model, I can't find much about how to have a local repository that can be
shared. In terms of layout, our developers develop on windows supplemented
by cygwin and the available server would be a linux box with apache web
server and ssh.
Any help would be appreciated.
Adam