dependencies

How to tell M2Eclipse to install jar file as a maven dependency

久未见 提交于 2019-12-17 18:15:12
问题 I want to add jpoller.jar as a maven dependency, so I edited my pom.xml file to include it: <dependency> <groupId>org.sadun</groupId> <artifactId>jpoller</artifactId> <version>1.5.2</version> </dependency> Now, as expected, when I compile from the command line I get an error because jpoller isn't in any of the repositories I have listed in my pom, nor could I find one for it. Although I could create a repository for it, I'd rather not at this point. Thus, I get the following error: [INFO]

Maven failing to resolve recursive dependencies with multiple repositories

拥有回忆 提交于 2019-12-17 18:07:52
问题 I'm new to maven so there must be something I don't understand. But, I've added multiple repositories to resolve multiple dependencies in my POM file. For some reason its failing while pulling a recursive dependency. I'm dependent on spring and spring depends upon jms, and it can't find jms. I'm not sure who tells maven where to find jms is it me or is it inside the POM for spring? Anyway I've tried adding another repository that contains jms, but it still says it can't find it. Here is my

Could not load file or assembly '***.dll' or one of its dependencies

梦想的初衷 提交于 2019-12-17 17:56:06
问题 I have this dll that I created a long time ago and use to connect to the db of a specific software that I develop for. I have had no issues for well over 4 years and countless applications with this dll. Trying to deploy my latest creation, I get the following error: System.IO.FileNotFoundException: Could not load file or assembly '***.dll' or one of its dependencies. The specified module could not be found. So, for every dll I ever wrote, I always made a simple forms application to test that

Ruby Gemspec Dependency: Is possible have a git branch dependency?

扶醉桌前 提交于 2019-12-17 17:42:12
问题 Is possible have a git branch dependency, inside mygem.gemspec? I'm thinking something similar to the following: gem.add_runtime_dependency 'oauth2', :git => 'git@github.com:lgs/oauth2.git' ... but it doesn't work. 回答1: This is not possible, and likely never will be because it would be rather heavy-handed for RubyGems to allow gem developers to require that users have a specific version control system installed to access a gem. Gems should be self-contained with a minimal number of

RequireJS Compilation in Maven project with external JS dependencies

て烟熏妆下的殇ゞ 提交于 2019-12-17 17:34:37
问题 I have a web project that's built with Maven and I'm trying to figure out the best way to compile the JavaScript files with the RequireJS compiler (this question could apply to any compiler/minifier as well). I have a setup that works, but it needs improvement: I've packaged the 3rd party JavaScript libraries and they are being downloaded as dependencies and then added with the WAR Overlay plugin. I have an Exec plugin task that runs the RequireJS compiler inside the target directory. I

How To: Eclipse Maven install build jar with dependencies

倖福魔咒の 提交于 2019-12-17 17:32:34
问题 I am using Eclipse Maven (m2e) inside Eclipse and I am running my project like this: My pom.xml looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>ro.project</groupId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>ro.project</name> <properties> <org.springframework

generate dependencies for a makefile for a project in C/C++

久未见 提交于 2019-12-17 17:26:50
问题 I have a project that has a makefile with broken dependencies. Is there any best known way to generate a list of dependencies for the project that I can use in the makefile, other than examining each source file by hand or with a hand written perl script? 回答1: GNU make's documentation provides a good solution. Absolutely. g++ -MM <your file> will generate a GMake compatible list of dependencies. I use something like this: # Add .d to Make's recognized suffixes. SUFFIXES += .d #We don't need

Can the -ObjC flag be applied selectively to static libraries?

风格不统一 提交于 2019-12-17 16:36:30
问题 TL;DR How can I make the -ObjC linker flag target a specific static library and not all the static libraries I am linking against in order to avoid unused object files being linked in with my app? Too Long; Did Read So you are developing a new iOS app and you add in your homegrown "objcutil" static library which contains a variety of useful Objective-C classes (not implemented as categories) to do various things that have been useful in the past. So far, so good, and only those object files

importing AppDelegate

纵饮孤独 提交于 2019-12-17 16:04:27
问题 Often times I initialize my model class variables in my AppDelegate so they can be used by different ViewControllers without passing their instance across class files. However, every time I import AppDelegate into a .m file to access these variable's data I feel like I'm doing some wrong. Is this the the correct way for accessing these variables or should I be doing something differently? EDIT: My problem isn't how to access the variables. I currently use this line of code to get my

Is it possible to package all the jar dependencies in one big jar?

一曲冷凌霜 提交于 2019-12-17 15:56:30
问题 I know this isn't "best practice", but can I include all of the dependencies in one big jar? 回答1: There's a utility called One-Jar which does what you want, although I'd advise against it. The performance is usually awful. 回答2: My feeling is that calling One-Jar's performance awful and poor is unjust. For moderately sized application one can expect startup will take a couple of seconds longer (which does not affect JVM splash screen though). Memory overhead of tens of megabytes is negligible