repository

Maven Snapshot Repository vs Release Repository

谁说我不能喝 提交于 2019-11-26 19:13:20
问题 What is the difference between a Snapshot Repository and Release Repository? This is with reference to setting up Repositories (like Artifactory, Nexus etc) 回答1: Release Artifacts These are specific, point-in-time releases. Released artifacts are considered to be solid, stable, and perpetual in order to guarantee that builds which depend upon them are repeatable over time. Released JAR artifacts are associated with PGP signatures and checksums verify both the authenticity and integrity of the

Domain Driven Design - how the layers should be organized?

放肆的年华 提交于 2019-11-26 18:58:23
问题 I'm very much new to software development. I think layered architecture is a great way to reduce the complexities that arise in the process of object oriented software development and, not to mention, to keep your code organized. I'm interested to learn about Domain Driven Design approach and I've run into some problems to get myself introduced to it (of course, beginner level ones). Here it is - I want to build an application to save person related data in database and display person details

“tag already exists in the remote" error after recreating the git tag

ぐ巨炮叔叔 提交于 2019-11-26 18:47:49
问题 I get the following error after I run the steps below: To git@provider.com:username/repo-name.git ! [rejected] dev -> dev (already exists) error: failed to push some refs to 'git@provider.com:username/repo-name.git' hint: Updates were rejected because the tag already exists in the remote. Created the repository Cloned the repo on the local machine. Modified the README file, commited the changes and pushed the commit. Created tag dev : git tag dev Pushed tags: git push --tags Modified the

Should I abstract the validation framework from Domain layer?

こ雲淡風輕ζ 提交于 2019-11-26 18:46:28
I am using FluentValidation to validate my service operations. My code looks like: using FluentValidation; IUserService { void Add(User user); } UserService : IUserService { public void Add(User user) { new UserValidator().ValidateAndThrow(user); userRepository.Save(user); } } UserValidator implements FluentValidation.AbstractValidator. DDD says that domain layer have to be technology independent. What I am doing is using a validation framework instead of custom exceptions. It's a bad idea to put validation framework in the domain layer? Just like the repository abstraction? Well, I see a few

How can I get Maven to stop attempting to check for updates for artifacts from a certain group from maven-central-repo?

白昼怎懂夜的黑 提交于 2019-11-26 18:46:12
问题 I'm working on a fairly big Maven project. We have probably around 70 or so individual artifacts, which are roughly split into two libraries of shared code and maybe ten applications which use them. All of these items live in the namespace com.mycompany.* . Most of the time we're running against snapshot builds. So to do a full build of an application, I might first build the library projects so that they are installed to my local repository (as, say, mycompany-libname-2.4-SNAPSHOT.jar ). The

Git: add vs push vs commit

扶醉桌前 提交于 2019-11-26 18:43:03
问题 What is the difference between git add , push and commit ? Just a little confused coming from SVN, where "update" will 'add' stuff, and commit does a "push" and will 'add' as well There are all different functions within git. Hoping for some explanation from your experience. 回答1: git add adds your modified files to the queue to be committed later . Files are not committed git commit commits the files that have been added and creates a new revision with a log... If you do not add any files,

Merge changes from remote github repository to your local repository

☆樱花仙子☆ 提交于 2019-11-26 18:04:20
I have forked a repository on github some time ago, made a small change and pushed the change back to my github fork. The original repository has changed since. I would like to merge the changes from the original repository to my fork. I am new to both git and github, and I need specific commands how to do it. git remote add {name} {Public Clone URL} git pull {name} master git push Example: git remote add bret git://github.com/bret/watir.git git pull bret master git push Simply add original repo as a remote and merge your fork with it; then push merged fork to github. There's also a ruby gem

How do I move a single folder from one Subversion repository to another repository?

核能气质少年 提交于 2019-11-26 18:03:42
I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project_docs". I'd like to move the "docs" folder ( and all of its revisions ) to the "project_docs" repository. Is there a way to do this? Samuel If you have access the repository itself (not a working copy), you should be able to dump the current repository, filter it to only include information about the docs folder, and load it into the other repository. Would be something like this: svnadmin dump /svn/old_repos > .

How do you organize your version control repository?

只谈情不闲聊 提交于 2019-11-26 18:02:45
First, I know about this: How would you organize a Subversion repository for in house software projects? Next, the actual question: My team is restructuring our repository and I'm looking for hints on how to organize it. (SVN in this case). Here's what we came up with. We have one repository, multiple projects and multiple svn:externals cross-references \commonTools /*tools used in all projects. Referenced in each project with svn:externals*/ \NUnit.v2.4.8 \NCover.v.1.5.8 \<other similar tools> \commonFiles /*settings strong name keys etc.*/ \ReSharper.settings \VisualStudio.settings \trash /

How do I make a Git commit in the past?

ぐ巨炮叔叔 提交于 2019-11-26 18:00:01
I'm converting everything over to Git for my own personal use and I found some old versions of a file already in the repository. How do I commit it to the history in the correct order according the the file's "date modified" so I have an accurate history of the file? I was told something like this would work: git filter-branch --env-filter="GIT_AUTHOR_DATE=... --index-filter "git commit path/to/file --date " --tag-name-filter cat -- --all Chris Johnsen The advice you were given is flawed. Unconditionally setting GIT_AUTHOR_DATE in an --env-filter would rewrite the date of every commit. Also,