VOTG
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » IDEs, Version Control and other tools
 
RSS feed
 
New topic
Author

How to find the location of Repository of my project?

Vinod Vijay
Ranch Hand

Joined: Aug 30, 2009
Messages: 64

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 Nair
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Messages: 651

@ 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.

SCJP 5.0 97% JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - API - Generics FAQ - JLS - JVM Spec - Java FAQs
David Newton
Author
Bartender

Joined: Sep 29, 2008
Messages: 6740

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.

Consultant/Trainer | Polyglottal Developer | Struts Committer/PMC | Struts 2 Web Application Development
Velu Kasirajah
Greenhorn

Joined: Feb 06, 2010
Messages: 15

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

Velu Kasirajah
Peter Johnson
author
Bartender

Joined: May 14, 2008
Messages: 2345

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.

JBoss In Action
Vinod Vijay
Ranch Hand

Joined: Aug 30, 2009
Messages: 64

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


Vinod Nair
David Newton
Author
Bartender

Joined: Sep 29, 2008
Messages: 6740

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.

Consultant/Trainer | Polyglottal Developer | Struts Committer/PMC | Struts 2 Web Application Development
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » IDEs, Version Control and other tools
 
RSS feed
 
New topic
hibernate profiler