Stephen Connolly-2 wrote:
> 
> sounds like you are not using versions correctly.
> 
> -SNAPSHOT versions are for untested local stuff.
> 
> non-SNAPSHOT versions are pulled from repositories and have been
> tested.  They are only produced from a build machine, so no developer
> should have a non-SNAPSHOT version unless it came from a remote repo
> 

Maybe we're not using versions and SNAPSHOTs as expected. It's not
practicable in our context here. Well I'm the supervisor of the build
server, where one central installation of maven runs, and designed the
release process, trying to use maven. There are several company rules that
have to be fulfilled. Every build of every java developer group in the
company has to be done via this central installation. Builds can only be
started out of scm (cvs in our case). Moving an artifact to another
repository has to be done without re-building it, so its absolutly sure,
that nothing has changed. 

So using SNAPSHOT gets very complicated, because first developers have to
check in all their poms with all dependencies (which can count up to more
than 100) with a SNAPSHOT version and test it. This could not be used, so
they have to build it again, removing all SNAPSHOT entries in every of the
poms (and the poms dependencies ...), check In again an re-build. Then have
to test again, because there is no guarantee everything is the same as
tested before. Deploying artifacts into a share-repository by re-building
them is not allowed. 

So I always get into trouble with the local repository. Well I'm just trying
to bring maven into this company, but I have to concern the development
contexts already existing. In my oppinion maven seems to be flexible enough
for that. This is really the last obstacle before my release process can get
productive. But there are things that cannot be changed now, so I have to
find a possibility to exclude localRepsitory from the artifact search
process in maven. 

I'd prefer a solution maven might provide in his depth somewhere. My other
option is to delete artifacts from localRepository after every build and
deploy. 
-- 
View this message in context: 
http://www.nabble.com/Can-I-prevent-maven-from-searching-dependencies-in-localRepository--tp24054742p24068271.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to