How to find the location of Repository of my project?
Vinod Vinu
Ranch Hand
Joined: Aug 30, 2009
Posts: 217
posted
0
hi first of all i want to know what is the meaning of 'Repository' in project. Iam using eclipse and working on a java j2ee project using struts, spring, hibernate, svn, and tomcat server in my office.
At home iam trying to setup the same envirnoment in my home laptop.
I have the copy of my project repository from office so that in my home laptop i want to find the new repository and replace it with my copied office's repository.
Where is the location of repository?
Thanks in advance.
Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
@ Vinod
In short whenever you make changes to project data that changes are automatically reflected in common shared project which is used at team level and shared by all team members so other can know what changes done to main project data.
A "repository" is the source code control system's (SCCSs) location. We have no way of knowing where *your* repository is--but even if you have one, it's *not* the same one you have at work (unless you're using a distributed source control system, which is a different issue).
If you want to have a *local* repository, and accept that it's not the same one as your work repository, then set up and configure Subversion.
Velu Kasirajah
Greenhorn
Joined: Feb 06, 2010
Posts: 15
posted
0
Vinod,
A repository in general is a central place where your artifacts (such as code) are stored. In your case this may be your source control system (CVS, SVN etc.) . If you are just trying to setup your project locally (not connected to any SVN repository) and have the complete code including the .project files, you can do this from Eclipse. Use the File-->Import-->General-->Existing Projects into Workspace option. This option looks for .project files. Good luck.
I have the copy of my project repository from office
Exactly what is it that you have? For a source control repository, this would often consist of database files (or for subversion, a directory tree and its files). And usually those things are on a server that you can't get at. To make use of that at home you would have to install the source control software and figure out how to get it to use the files you have instead of the files it will create during installation.
Or do you mean a Maven repository? If so, the default location for the Maven repository is at .m2/repository in your home directory. If you meant a maven repository you can copy the files you have there.
thank you Peter Johnson ....i was actually talking abt the maven repository which is usually found under
.m2/repository
just tell me what is this? Is this the same as others above users has told me as a centralised shared project or something different?
This message was edited 1 time. Last update was at by Vinod Vijay
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
No, it's not a source repository--it's a Maven repository. When you try to build the project locally, Maven will "download the internet" to you have all the required dependencies locally, and that's it. In general you never need to, or want to, worry about it.
subject: How to find the location of Repository of my project?