dependency-management

Playframework [1.2.7] dependencies failing

会有一股神秘感。 提交于 2019-12-04 05:31:50
问题 We're experiencing a problem with play frameworks dependency management which was working fine a couple of days ago. We haven't made any configuration changes or changes to the dependency file but are getting the following errors on both our build server and locally (both located on different networks and ISP's). :: problems summary :: :::: WARNINGS module not found: vsvr1#minifymod;1.0.9 ==== vsvr1: tried -- artifact vsvr1#minifymod;1.0.9!minifymod.jar: https://github.com/maklemenz/minifymod

How does one consolidate version management in Ivy, like parent-pom <dependencyManagement> in Maven?

醉酒当歌 提交于 2019-12-04 05:29:06
问题 We have many projects that need to use common version numbers. What is best practice for doing this with Ant/Ivy? Do you just inherit a wad of properties from Ant that have the version numbers in them, or is there a more formal mechanism a la Maven? 回答1: As you've pointed out I think this is the problem which the new extends functionality has been designed to solve. To be completely honest I'm not a fan of parent-child modules in Maven.... However, just like you sometimes I want to nail lots

Dependency management and build tool for JavaScript

喜你入骨 提交于 2019-12-04 05:08:01
I have many JS snippets and files shared across multiple projects. I have to either copy-past them into a single file for each project, or serve them as individual files on cdn. Both are bad ideas. Is there any dependency management and build tool like Maven for JavaScript? Ideally it would take a set of js dependencies and build a single js file which can be served on cdn. I can write a script to do that. But I'm looking to find if anything comparable to Maven exists for JS. Update 2014: Based on answers here and my research following are most popular tools: Bower, NPM, RequireJS, Browserify,

Spring throws NoClassDefFoundError: MethodInterceptor although class exists within classpath

一曲冷凌霜 提交于 2019-12-04 04:39:03
问题 I'm developing a simple, training application with Spring MVC and Hibernate. I'm using Maven as build tool. All dependencies (spring, hibernate, aopalliance , junit etc.) are resolved using Maven's pom.xml file. $ mvn war:war glassfish:deploy works absolutley fine, the project is being deployed to the GlassFish server - all *.jar files are copied (including com.springsource.org.aopalliance-1.0.0.jar ). I've made a simple servlet to test whether aopalliance exisists within classpath: protected

Which pom dependency should I use for jar commons-lang.jar

允我心安 提交于 2019-12-04 03:58:17
问题 How do I know which version of a pom dependency I should use if its version is not in the jar name. For example the jar commons-lang.jar, what version of the pom dependency should I use ? Here are its search results on maven central repo - http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.sf.staccatocommons%22%20AND%20a%3A%22commons-lang%22 回答1: If you are migrating to Maven and just have a bunch of jars then you can try examining their META-INF/MANIFEST.MF files inside of those jars. I

Git Submodules vs. Cocoapods [closed]

最后都变了- 提交于 2019-12-04 03:55:16
What are the advantages/disadvantages of using Cocoapods vs. Git Submodules? I am aware that there are several differences, but I would like to find out more about the advantages and disadvantages of using either system. Thanks! Git submodules shouldn't be used for dependancy management. I suggest you to use Cocoapods. Git Submodule Pros Basically a one liner to initiate it, no need for extra files / configuration. Cons You can't specify target directories, you always have to clone the whole repository. When the repository moves you have to manually update it. You have to check in the actual

Consolidating ASP.NET MVC Controller Dependencies (StructureMap)

拜拜、爱过 提交于 2019-12-04 03:14:10
I'm looking at the controllers in my website, and most of their constructors look like this: public SomeController( IServiceOne serviceOne, IServiceTwo serviceTwo, ILoggingService loggingService, IGeospatialService geoSpatialService) { // copy to class variables. } In other words, it's very hairy and makes refactoring difficult. Some controllers have around 8 dependencies. Is there any way i can somehow "group" these dependencies into one of more buckets? For example, ILoggingService is required in every controller, IGeospatialService is required by controllers who do spatial stuff, and

Maven - Copy specific dependency with its transitive dependencies to a give location

女生的网名这么多〃 提交于 2019-12-04 03:02:15
I have a maven project which I have say spring framework libraries as dependencies, I want to copy spring framework dependencies with there transitive dependencies to a location specified. I have gone through maven dependency plugin guides at apache, I have several options where non of them will solve the complete problem. copy dependencies option <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals>

Why do I have to specify both 'runtime' and 'compile' for the same dependency?

馋奶兔 提交于 2019-12-04 01:50:56
I am depending on a few artifacts that I need to both compile and run my application. According to the Gradle docs, the runtime configuration extends the compile configuration, so surely adding a dependency using runtime implies an implicit compile dependency? At least that was my assumption, but it does not work. When just depending on the artifact using runtime , my project does not compile anymore. I literally have to: compile 'oauth.signpost:signpost-core:1.2.1.2' runtime 'oauth.signpost:signpost-core:1.2.1.2' for the application to both compile and see the Signpost classes at runtime. Am

Why can the C# compiler “see” static properties, but not instance methods, of a class in a DLL that is not referenced?

不羁岁月 提交于 2019-12-04 00:39:34
The premise of my question, in plain english: A library named Foo depends on a library named Bar A class within Foo extends a class within Bar Foo defines properties/methods that simply pass-through to Bar An application, FooBar , depends only on Foo Consider the following sample: class Program { static void Main(string[] args) { Foo foo = Foo.Instance; int id = foo.Id; // Compiler is happy foo.DoWorkOnBar(); // Compiler is not happy } } Foo is defined as follows public class Foo : Bar { public new static Foo Instance { get => (Foo)Bar.Instance; } public new int Id { get => Bar.Id; } public