They are completely different albeit related subjects...
You have a code repository to manage versions of source files. You could perhaps attempt to use Maven without a code repository but virtually all modern development efforts will utilize some kind of code repo. You have a Maven repository to manage versions of compiled Java modules. Maven pulls code from your code repository to build the modules, which are then deployed to your Maven repository. Everything in the Maven repo is intrinsically "versioned" through the project object model. You can safely ignore his comment about "versioning everything in Maven using source control" until you fully understand these points. Then you can revisit this point, but understand that very few people in the world who are using Maven will bother to put their Maven repo under source control. Wayne On 2/13/07, lightbulb432 <[EMAIL PROTECTED]> wrote:
Thanks for your answer. Could you expand on why there's little point in versioning things in Maven. I guess maybe I can understand why for the library repository (is it because it in itself is almost "versioned"?), but what about everything else in Maven? e.g. your project tree that you're developing with the source code, configuration files, etc... I'm not sure what you meant by there might be a point to versioning everything in Maven using source control "only when you version control server can behave like a webserver" Graham Leggett wrote: > > On Tue, February 13, 2007 6:40 pm, lightbulb432 wrote: > >> What's the difference between Maven and version control repositories when >> you're using both? Maven has its repository, but so does my version >> control. > > "repository" is the word used in both cases to describe the data store of > record for each system, but a maven repository doesn't work anything like > a version control repository, and vice versa. > > They aren't the same thing. > > In a version control system, a repository is the place where all the > versions of the source being stored is kept. > > In maven, the repository is a big directory tree where jar files[1] are > stored, in such a way that the jar files can be referenced quickly and > easily by maven. > >> Is it possible to version everything in Maven using source control, >> including the library repository? > > No[2], there is little point in doing this. > > [1] Or other files, maven repos can contain artifacts other than jar, but > jar is most common. > > [2] Ok, theoretically yes, but only when you version control server can > behave like a webserver. > > Regards, > Graham > -- > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Maven-vs-source-control-tf3221731s177.html#a8948205 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
