dependency-management

How to develop a dependent composer package without the need to commit or publish changes?

痞子三分冷 提交于 2019-12-01 13:04:33
问题 I have an application A which has a composer.json file defining a dependency on package P, which is my own new shiny package. My package P has a composer.json file, which defines dependencies on library L and framework F. My package P has no remote repository yet and it's not yet published on packagist.org - I'm basically tinkering on it, trying out different things by running application A in the browser and modifying my package P continuously, which application A depends on. There are some

NuGet packages in Unity

落花浮王杯 提交于 2019-12-01 09:30:01
I want to use some NuGet packages inside Unity. I achieved that Unity finds the downloaded DLLs according to this article ( https://www.what-could-possibly-go-wrong.com/unity-and-nuget/ ). The nuget.config file can be configured to download the packages into the Plugins folder inside the Assets folder. The Problem is that NuGet downloads multiple versions of each DLL (eg net46, netcore50, netstandard21, so forth) and Unity doesn't like multiple DLLs with the same name. I know I could simply put the DLL inside the Plugins folder by hand, but unfortunately that is not a solution which would

Dependency management in Zend Framework 2 MVC applications

房东的猫 提交于 2019-12-01 07:12:41
As the ServiceLocatorAwareInterface will likely be removed from the AbstractController in ZF3 , dependencies should instead be passed via the constructor or via setter methods. With this in mind, consider the use case of a user or site controller with actions such as register, activate account, login, logout, etc. At a minimum, this would require a UserService and 2 forms. Add a few more related actions (remote authentication, linking of accounts, etc.) and you end up with 4 or 5 forms. Passing all these dependencies via the constructor would be messy at best, and more importantly, only 1 form

How do I configure the SVN HTTP proxy from the command line?

≯℡__Kan透↙ 提交于 2019-12-01 03:11:05
I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image). As part of this process, certain dependencies are retrieved from public SVN repositories. The build machines sit behind a proxy, so I need to configure SVN to use the proxy. Several of the options that come immediately to mind are unpalatable for various reasons: I could edit the ~/.subversion/servers file manually, but I would far rather keep the build process as self-contained and as automated as possible. Alternatively, I could "proxy" the various public

Why does maven release plugin allow for SNAPSHOT version in dependency management?

試著忘記壹切 提交于 2019-12-01 03:06:51
问题 We have 1 company parent pom. This uses dependencyManagement to manage the versions for all the dependencies of all the artifacts used. What is alarming, is that SNAPSHOT versions can be defined in dependencyManagement. Though when maven release is performed, the pom is allowed to be released with SNAPSHOT version in dependencyManagement. Why? If I point a child project to a released version of the company parent pom, and this child project uses a dependency defined in dependencyManagement

Gradle downloading dependency into cache instead of maven repository

馋奶兔 提交于 2019-12-01 02:59:24
I am trying to maintain the same repository on my filesystem for maven and gradle. But I am running into some problems. I have the following in my build.gradle file. repositories { mavenLocal() mavenCentral() } dependencies { compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.3.9' runtime group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.3.9' runtime 'org.xerial:sqlite-jdbc:3.8.7' } GRADLE_HOME is D:\Programming\Java\gradle-2.2.1 GRADLE_USER_HOME is D:\Programming\Java\.m2 My gradle home is the same as my Maven repository. But when the dependencies are downloaded

Gradle Does Not Include Optional Dependency

偶尔善良 提交于 2019-11-30 20:42:40
I have a project which has the apache-compress library as a compile time dependency. This library appears to use Maven and has a POM file with a dependency set up as "optional". Here is the relevant section of the POM file: <dependency> <groupId>org.tukaani</groupId> <artifactId>xz</artifactId> <version>1.5</version> <optional>true</optional> </dependency> Gradle does not seem to include this library in to my project, I'm guessing it is because of the "optional" attribute. Is there some way to tell Gradle to include this dependency without explicitly including the xz library myself? Here is my

Maven dependency for self placed jars in project level

本秂侑毒 提交于 2019-11-30 20:34:00
I created the java class and converted into jar files. So, I want to use those jar files which I have placed in project level in some folder like "External Jar". So I need to write a dependency in maven that when someone imports my project they should be able to run the program. Basically you created your own jar and you want to publish this jar, so that when somebody else clone/use your project, this jar comes with (assuming that you have a maven project and dependency of your jar is included in pom.xml). To achieve this, you need to publish your jar to maven , you can follow many of the

Maven exclude transitive dependency of a transitive dependency

本小妞迷上赌 提交于 2019-11-30 19:27:20
问题 Is there a syntactic way in a pom file to exclude a dependency of a transitive dependency. For example, if A has a dependency B and B has a dependency C and C has a dependency on D, a way to exclude dependency D when compiling A. Exclusions for a dependency only seem to go one level deep. How I have accomplished this in the past is to include dependency C in A's pom and then add the exclusion for D in C's dependency declaration. Is this the recommended way? 回答1: You can add an <exclusions>

Circular Dependencies in modules using requireJs

风流意气都作罢 提交于 2019-11-30 18:46:08
Reading the requireJs documentation, in order to fix the Circular Dependencies, is suggested to use exports to create an empty object for the module that is available immediately for reference by other modules. I try this code but it seems to do not work. What is wrong? P.S.: read the comments for seeing the output, especially the B module inside setTimeout call. // A module define([ 'b' ], function (b) { console.log('B:', b); // B, Object var A = { boo: 1 }; return A; }); // B module define([ 'a', 'exports' ], function (a, exports) { console.log('A:', a); // A, undefined (as I was expecting)