repository

How do you stop maven from trying to access http://repo.maven.apache.org?

瘦欲@ 提交于 2019-11-28 16:06:15
The development machine cannot access the internet, and take about 60s to timeout. When I try to build, I see Downloading: http://repo.maven.apache.org/maven2/com/google/gsa-connector/2.8.0/gsa-connector-2.8.0.pom However, I have the following in my POM: <repository> <id>bb-nexus</id> <url>http://repo.dev.bloomberg.com/content/groups/public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>nexus-3rdparty</id> <url>http://repo.dev.bloomberg.com/content/repositories/thirdparty/</url> <releases><enabled>true</enabled><

Loading Subrecords in the Repository Pattern

邮差的信 提交于 2019-11-28 15:49:46
Using LINQ TO SQL as the underpinning of a Repository-based solution. My implementation is as follows: IRepository FindAll FindByID Insert Update Delete Then I have extension methods that are used to query the results as such: WhereSomethingEqualsTrue() ... My question is as follows: My Users repository has N roles. Do I create a Roles repository to manage Roles? I worry I'll end up creating dozens of Repositories (1 per table almost except for Join tables) if I go this route. Is a Repository per Table common? If you are building your Repository to be specific to one Entity (table), such that

Tips for maintaining an internal Maven Repository?

删除回忆录丶 提交于 2019-11-28 15:48:58
I'm interested in maintaining a Maven 2 repository for my organization. What are the some of the pointers and pitfalls that would help. What are guidelines for users to follow when setting up standards for downloading from or publishing their own artifacts to the repository when releasing their code? What kinds of governance/rules do you have in place for this type of thing? What do you include about it in your developer's guide/documentation? UPDATE : We've stood up Nexus and have been very happy with it - followed most of Sal's guidelines and haven't had any trouble. In addition, we've

Maven private remote repository setup

雨燕双飞 提交于 2019-11-28 15:36:04
I'm trying to set up a private remote repository for our team. Now the repository serves the following with so far I have tried - When a ' mvn compile ' is issued, then it searches dependencies in "~/.m2". If it is not found there then it goes to the remote private repository and when the dependencies still absent here then it goes to the central repository. Before compilation, I have to put all dependencies in our private (and remote) repository along with checksum and metadata. When we need an artifact(eg - spring-mvc), we need to put it in the remote private repository along with all

git repo says it's up-to-date after pull but files are not updated

假如想象 提交于 2019-11-28 15:18:08
问题 I have 3 repos. A bare repo which I use as a master repo, a dev repo in which I make and test changes, and prod repo from which scripts are executed in the prod environment. After I have tested changes in the dev repo I push them to the bare repo and they are auto pulled down into the prod repo on a cronjob using a basic script (carrying out git pull command). I followed through the above procedure for a change, but the altered file will not update in the prod repo. The change is checked in

Git's local repository and remote repository — confusing concepts

こ雲淡風輕ζ 提交于 2019-11-28 15:17:59
If I understand correctly, Git has two sorts of repositories: one called local, another called remote. My questions are extremely naive ones about the two types of repositories. Is that correct to say Git local repository is the one on which we will make local changes, typically this local repository is on our computer. Git remote repository is the one of the server, typically a machine situated at 42 miles away. Another question: some tutorial shows me this workflow mkdir myproject cd myproject git init touch README git add README git commit -a -m " I see that git init creates myproject a

Change old commit message on Git

◇◆丶佛笑我妖孽 提交于 2019-11-28 15:07:55
I was trying to edit an old commit message as explained here . The thing is that now, when I try to run rebase -i HEAD~5 it says interactive rebase already started . So then I try: git rebase --continue but got this error: error: Ref refs/heads/master is at 7c1645b447a8ea86ee143dd08400710c419b945b but expected c7577b53d05c91026b9906b6d29c1cf44117d6ba fatal: Cannot lock the ref 'refs/heads/master'. Any ideas? VonC It says: When you save and exit the editor, it will rewind you back to that last commit in that list and drop you on the command line with the following message: $ git rebase -i HEAD

Working offline with SVN on local machine temporary

会有一股神秘感。 提交于 2019-11-28 14:54:06
问题 I am working on a project currently on SVN. I however will not have access to the internet for a few days, and will be working on my project. Is there any way to make a clone of the repository on my local machine, commit changes to it, and when I gain access to the internet "push" them onto the shared repository? Thinking in terms of Mercurial here, is it worth migrating completely?! 回答1: Your problem sounds to me like the use case for git-svn: set up your Git repo: git svn clone http://svn

How do I use Git Extensions with a Bitbucket repository?

感情迁移 提交于 2019-11-28 14:28:49
问题 I have repository on both github.com and bitbucket.org, and I am very familiar using Git Extensions for all repository functions... But when I started using bitbucket.org repositories I have to use TortoiseHg SVN for it ... so I want to ask that is there a way I can use Git Extensions for Bitbucket repositories? 回答1: I haven't fully tested it, but these steps allowed me to clone a Bitbucket repository in Git Extensions. You can use PuTTY to generate a public/private SSH key, then add that key

How can I host Git repositories and manage my content-hosting myself?

柔情痞子 提交于 2019-11-28 14:09:08
Things such as Github, Bitbucket, DropBox -- manages the content-hosting such as tickets and repo -hosting (DB not tickets but can be used to store repos). I want a solution where I manage myself the content-hosting of thing such as Git -repositories and tickets. Trial 0: trying to tune Git, too time-consuming I followed the instructions here but some difficulties then I followed a lot of other tutorials with much more difficulties. I got cloning with "git clone --bare xxx xxx.git; cd xxx; git update-server-info" working but unable to push things with "--shared" , got fed up to this kind of