• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find the location of Repository of my project?

 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ 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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Velu Kasirajah
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic