dependencies

Local dependencies in Leiningen without creating a Maven repo?

时光毁灭记忆、已成空白 提交于 2020-01-22 19:28:12
问题 I'm building a Compojure web application, and I'd like it to use functions from another Clojure project I wrote. I'm not at all familiar with Maven, and from what I've heard, it has a very steep learning curve. Unfortunately, everything I've seen suggests using a private Maven repo as a dependency and doesn't suggest an alternative. I'd really like to avoid struggling with Maven if possible. Does anyone know of an alternative? I'm currently using the latest version of Leiningen. 回答1: If the

Stop Rails from unloading a module in development mode

限于喜欢 提交于 2020-01-22 12:46:53
问题 I have a module in my Rails app that lives in /lib module MyModule mattr_accessor :the_variable class << self def setup yield this end end end From my environments/#{RAILS_ENV}.rb file I can then set an environment-specific value for the_variable : MyModule.setup do |my_module_config| my_module_config.the_variable = 42 end This is lovely, and it seems to work (almost) fine. The problem is that in development mode, Rails via ActiveSupport::Dependencies unloads a load of modules, and reloads

Convert Doc to PDf with documents4j

流过昼夜 提交于 2020-01-22 03:03:03
问题 I wanted to try to use documents4j in order to convert a doc to PDF. I follow these instructions here http://documents4j.com/#/develop. When I type mvn package and then press enter, everything seems to work well, but I got this C:\Users\Fabio\Downloads\docs-to-pdf-converter-master\docs-to-pdf-converter-master\docs-to-pdf-converter\documents4j [ma ster +0 ~0 -237 | +24 ~0 -0 !]> mvn package [INFO] Scanning for projects... [INFO] -----------------------------------------------------------------

How does Maven resolve version conflicts of transitive dependencies ? nearest-wins strategy

白昼怎懂夜的黑 提交于 2020-01-21 02:36:08
问题 I just finally got used to not having any Used undeclared or Unused declared dependencies in my projects. Although it is very hard to track Unused declared runtime/test dependencies that are listed in dependency:analyze... One just must write comments to them in pom.xml or otherwise manage them to know that they are needed for testing or runtime. But the way of resolving version conflict is still unclear to me. Regarding transitive dependencies. How does the nearest-wins strategy work exactly

ASP.NET Custom Control - What is the best way to include embedded CSS reference only once?

亡梦爱人 提交于 2020-01-21 01:41:11
问题 The problem: I am embedding a CSS file into a custom control library with several controls. I want to share the same CSS file for all of the controls regardless of how many instances of them are on a given form. When more than one control is on the form, I would like exactly 1 reference to the CSS file in the HTML header of the ASP.NET page. Here is what I have come up with (so far): Public Sub IncludeStyles(ByVal Page As System.Web.UI.Page) 'Don't include the reference if it already exists..

Ivy: how do I remove transitive dependencies?

非 Y 不嫁゛ 提交于 2020-01-19 20:29:22
问题 I'm using Ivy to manage the dependencies on my project. So far, I've specified a dependency on Hibernate and servlet-api. However, the hibernate jar itself has a lot of dependencies that aren't really needed, such as jaas and jacc. This becomes a show-stopper because jaas and jaac are Sun libraries and therefore their licenses forbid to place them in the Maven repos, so Ivy can't find them there. How do I make Ivy download Hibernate but not these two ? As a bonus, if I actually needed those

Ivy: how do I remove transitive dependencies?

老子叫甜甜 提交于 2020-01-19 20:28:58
问题 I'm using Ivy to manage the dependencies on my project. So far, I've specified a dependency on Hibernate and servlet-api. However, the hibernate jar itself has a lot of dependencies that aren't really needed, such as jaas and jacc. This becomes a show-stopper because jaas and jaac are Sun libraries and therefore their licenses forbid to place them in the Maven repos, so Ivy can't find them there. How do I make Ivy download Hibernate but not these two ? As a bonus, if I actually needed those

Maven: Failed to read artifact descriptor

浪子不回头ぞ 提交于 2020-01-18 04:46:12
问题 I am hoping someone can help me with a problem I am struggling with. When I try to build my project from the terminal I get this error: Failed to read artifact descriptor for com.morrislgn.merchandising.common:test-data-utils:jar:0.3b-SNAPSHOT: Could not find artifact com.morrislgn.merchandising:merchandising:pom:0.3b-SNAPSHOT The common.test-data-utils jar is created by a separate project and shared between this and another project (the other project doesn't build either, but that is down to

how to exclude(disable) PackageReference's (transitive)dependency in MSBuild?

若如初见. 提交于 2020-01-16 19:31:09
问题 I'm using a package Xamanimation which has a dependency of Xamarin.Forms 4.1.0 ( written in its nuspec file): <dependencies> <group targetFramework=".NETStandard2.0"> <dependency id="Xamarin.Forms" version="4.1.0.581479" exclude="Build,Analyzers" /> </group> </dependencies> but I have built the Xamarin.Froms for my own and added the output dll files into my project's reference: <Reference Include="Xamarin.Forms.Xaml"> <HintPath>..\thirdparty\xforms\Xamarin.Forms.Xaml.dll</HintPath> <

How to build dependent projects using Bit Bucket pipeline

荒凉一梦 提交于 2020-01-16 10:30:17
问题 I am trying to get my build working with pipeline using maven . I have two bit bucket repositories for two maven projects. repository1 -> project1 repository2 -> project2. project2 has dependency on project1. Now I dont have problem in building project1 as it doesn't has dependency on any projects. But when I try to build project2 using pipeline build is failing because maven is not finding the project1 artifact. I got to know that every pipeline runs within a docker image. So my guess is