dependency-management

Is there a way to specify a dependency on another branch when building my Cocoapod?

北城以北 提交于 2019-12-11 03:01:29
问题 I'm trying to build a Cocoapod that (currently - this will change when iOS 9 and Xcode 7 are out of beta) depends on different branches of Alamofire and SwiftyJSON. This is because my Cocoapod was coded in Swift 2.0. To be more specific, my pod currently depends on the swift2-0 Alamofire branch and xcode7 SwiftyJSON branch. My Podspecs file currently looks like this: # # Be sure to run `pod lib lint ALSMAL.podspec' to ensure this is a # valid spec and remove all comments before submitting the

Difference between dependency and package managers?

烂漫一生 提交于 2019-12-11 02:56:39
问题 Practically speaking, are these essentially synonymous? Or is there something I'm missing? I've use Composer (PHP), CocoaPods (Objective-C), and Bundler (Rails). I believe they describe themselves as dependency managers but can they also be consider as package mangers? 回答1: I'd say yes. Given that the javascript community calls their version of those tools (NPM and bower) " package managers ", I think that the development community has essentially synonymized those terms. EDIT I'm going to

How should I share Maven DepdendencyManagement from multiple sources?

回眸只為那壹抹淺笑 提交于 2019-12-11 02:48:28
问题 I have a Maven project multimodule project. Some of the modules create custom packaging for the libraries produced by the other modules. The packaging being used has its own suite of versioned dependencies that I need to play nice with. As an example: my parent POM might have an entry for e.g. commons-codec:commons-codec 1.4 , my "core-lib" POM includes it as a dependency (sans explicit version), and I want to make sure my packaging module bundles in the right version. However, the specific

Play framework: package javax.inject does not exist

試著忘記壹切 提交于 2019-12-11 02:14:45
问题 In my Play 2.0 Framework Java project, the following line yields errors both in Eclipse and during the sbt compile step: import javax.inject.*; I already added the javax.inject dependency to my build.sbt file: libraryDependencies ++= Seq( javaCore, javaJdbc, javaEbean, javaWs, javaFooBar, cache, "javax.inject" % "javax.inject" % "1", "org.atmosphere" % "atmosphere-play" % "2.1.1" ) and executed clean , update & eclipse with-source=true like mad: [myproject] $ eclipse with-source=true [info]

How do I define a “default” implementation in HK2?

萝らか妹 提交于 2019-12-10 23:59:49
问题 I am using HK2 to resolve dependencies of services in my Jersey / Jetty web service. I have a situation where for one particular interface, I want to use a specific implementation as a "default" implementation. By "default" I mean no names or qualifiers - it is what you get if you do not specify any annotations on top of the field or argument. However, in a few very specific situations, I want to provide an alternative implementation that will be qualified with an annotation. As a result of

How to tell composer to use a branch of my fork?

心不动则不痛 提交于 2019-12-10 22:59:06
问题 In a symfony2 project, I am using "jms/serializer-bundle" and I have an issue with one of its dependencies, namely the jms/metadata libary. I have forked the metadata library and included a fix in the bugfix-doctrine-proxy branch. Now I am wondering how to tell composer, that it should use my branch when requiring the dependency? The composer.json of the serializer library: { "name": "jms/serializer", "type": "library", ... ], "require": { "php": ">=5.3.2", "jms/metadata": "~1.1", "jms/parser

Pulling my own private repository from Bitbucket via Composer

时光毁灭记忆、已成空白 提交于 2019-12-10 22:33:59
问题 I have a big library that is hosted on Bitbucket as a private repository. I use this library for a lot of projects of mine. I am having a trouble updating my library in each project where it's used whenever I do some changes, therefore I'd like to simply put it in the composer.json file of each project, then use composer update to pull the newest version. How do I put my private repository which is hosted on Bitbucket in a composer.json file without making it public? 回答1: First set up ssh for

Ensure Ruby version in Nix Dev Environment when using latest version

删除回忆录丶 提交于 2019-12-10 22:22:06
问题 Currently, the default and latest Ruby in Nix is 2.2.2-p0. When I run nix-env -qaP ruby it returns a list, which says that this ruby version is accessed via nixpkgs.ruby . I expect that this Ruby link will change to stay up-to-date with the latest supported ruby version. There is no optional nixpkgs.ruby_2_2_2 for me to use to ensure my ruby version. Looking at the .nix definition file at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/ruby/ruby-2.2.2.nix, however,

Eclipse Maven dependency doesn't find

大城市里の小女人 提交于 2019-12-10 20:44:33
问题 I have add to pom.xml of my project repository: <repository> <id>java.net</id> <name>java.net</name> <url>http://download.java.net/maven/2</url> </repository> But when I go to tab dependencies of pom - click add I don't see version jsf-impl 2.0 or more How to fix it? Thanks. 回答1: You can't unless Maven can download the remote index to power the dependency search. Check the Maven console for log details. 回答2: To fix search dependency search engine you have to "download repository index". To do

Composer pull dependency from another branch on the same repo

ε祈祈猫儿з 提交于 2019-12-10 19:12:51
问题 I have the following Composer 1.6.5 setup: "require": { "CRMPicco/GolfBundle": "dev-golf-bundle" }, "repositories": [ { "type": "git", "url": "git@git.crmpicco.com:frontend/app.git" } ], On the origin of git.crmpicco.com:frontend/app.git there exists the main branch of master and also a golf-bundle branch. I want to have the contents of the golf-bundle branch as a composer dependency in the /vendor directory. When I run a composer update CRMPicco/GolfBundle I get the following error: Your