repository

Maven site warning: The repository url 'https://maven-repository.dev.java.net/nonav/repository' is invalid

假如想象 提交于 2019-12-03 10:05:56
I’m using Maven 3.2.3 on a multi-module project. I want to generate a checkstyle and findbugs report, so I have configured the following: <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.13</version> <reportSets> <reportSet> <reports> <report>checkstyle</report> </reports> </reportSet> </reportSets> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr

Generic Repository

♀尐吖头ヾ 提交于 2019-12-03 10:03:52
I'm working on incorporating some common repository infrastructure into some applications that wrap EF, L2SQL and WCF Data Services (though the underlying Data Access implementations should be arbitrary). I've done some reading on the matter but can't seem to find an example that really satisfies. I started with: public interface IRepository : IDisposable { IQueryable<T> Query<T>(); void Attach(object entity); void ForDeletion(object entity); void SaveChanges(); } But I like the idea of a repository with narrow domain contracts ( http://codebetter.com/blogs/gregyoung/archive/2009/01/16/ddd-the

How to implement IDisposable inheritance in a repository?

孤街醉人 提交于 2019-12-03 10:03:01
问题 I am creating a generic repository and do not know what the correct way to implement the dispose functionality: I'm not using IoC/DI, but i'll refactor my code in the future to do this, so: My code: IUnitOfWork Interface: namespace MyApplication.Data.Interfaces { public interface IUnitOfWork { void Save(); } } DatabaseContext class: namespace MyApplication.Data.Infra { public class DatabaseContext : DbContext, IUnitOfWork { public DatabaseContext(): base("SQLDatabaseConnectionString") {

OS X Server - bot can't get source from repository

那年仲夏 提交于 2019-12-03 09:47:40
问题 I had a previous version of OS X Server set up and running fine, but when I installed the upgrade to 3.2.1, I found that none of my bots would work correctly. These are the issues I get on each attempted integration: Build Service Error Can't fit data in the buffer (-1). Build Service Warning The source control operation failed because no working copy could be found. Build Service Warning An error occurred updating existing checkout. Falling back to a clean checkout.. I may be looking in the

Code Repository. Whats a good one? [closed]

孤人 提交于 2019-12-03 09:47:29
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago . I am trying to setup a repository at my work for all the code (mostly C, Assembler, batch basic) that my colleagues and I use. I know

How to skip the release or specific modules in the maven repo

喜欢而已 提交于 2019-12-03 09:45:41
Heyho, I have a maven project with this scructure: parent: List item API module module2 ... module5 test distribution/assembly So first i run the parent module, then I run the module which builds the api, then the modules which depend on the api, then a test module which contains tools to test and at the end I run a assembly/distribution where I package some modules in a archive. Because of some problems I can not really change the way and it works so far perfect. With the jenkins I release it to the maven repo, but I want only to release for example the API, and a few modules, not the test

How to delete commits from git on Github and Bitbucket

余生长醉 提交于 2019-12-03 08:54:06
问题 I accidentally pushed up files from my .idea directory in my Django project which I had in my .gitignore file. I am trying to completely delete the commit from my bitbucket repository since there is someone else Im working with on the project and he can't pull my changes without affecting his own .idea files. I have seen other SO questions where they say to use git revert, however I remember there was another command where you pushed the last good commit you made, and everything after that

How Do I Mock Entity Framework's Navigational Property Intelligence?

偶尔善良 提交于 2019-12-03 08:44:47
I'm attempting to test my repository using an in-memory mock context. I implement this with an in-memory Dictionary, as most people do. This implements members on my repository interface to Add, Remove, Find, etc, working with the in-memory collection. This works fine in most scenarios: [TestMethod] public void CanAddPost() { IRepository<Post> repo = new MockRepository<Post>(); repo.Add(new Post { Title = "foo" }); var postJustAdded = repo.Find(t => t.Title == "foo").SingleOrDefault(); Assert.IsNotNull(postJustAdded); // passes } However, i have the following test which i cannot get to pass

How to get first EntityKey Name for an Entity in EF4

一世执手 提交于 2019-12-03 08:42:15
How can I get the 1st EntityKey name for an Entity for Entity Framework 4 because I'm building a repository system and I wanted to get an item by Id (which is the primary key oin EF is the 1st entitykey for the entity) I'm using this code public virtual TEntity GetById(string keyName, Guid entityId) { var entityKey = new EntityKey(this.QualifiedEntitySetName, keyName, entityId); object entity; return this.Context.TryGetObjectByKey(entityKey, out entity) ? entity as TEntity : null; } I want to get the entity key name dynamic. Can anyone help me with this issue? var keyName = this.Context

How to install GTest on Mac OS X with homebrew?

半城伤御伤魂 提交于 2019-12-03 08:40:16
问题 I'm trying to install gtest with my packet manager Home Brew but there is no repository for it. I tried to download gtest frome code.google but i cannt understand how to install it, because cmake and make doesnt solve the problem 回答1: If you want the latest version without using Homebrew: git clone https://github.com/google/googletest cd googletest mkdir build cd build cmake .. make make install 回答2: For the question 'Why there is no repository for it?' see related gtest FAQ question. But you