dependency-management

Nesting My Own Frameworks with Carthage

99封情书 提交于 2019-12-10 12:52:50
问题 I'm having problems trying to realize the following dependency setup between two frameworks and an app, all developed by me: Util containts a bunch of low-level utilities and extensions to Foundation types such as String , Date , etc. UI contains a bunch of custom UIView and UIViewController subclasses, class extensions for UIColor , UIImage , etc.. The app and each framework has its own repository on GitHub. The UI framework is set up to depend on the Util framework, using Carthage: The

How to disable auto-depend on the project but not the only jar when using maven in Intellij IDEA?

坚强是说给别人听的谎言 提交于 2019-12-10 12:20:37
问题 I am using Maven in Intellij IDEA 11.1.2, and i am working on two different projects and one of them depends on the other one. Project A's pom.xml as following <dependency> <groupId>project.b</groupId> <artifactId>project.b</artifactId> <version>1.0-SNAPSHOT</version> </dependency> Then IntellIj IDEA will automaticly depend on project B. Sometimes i can compile project A useing mvn command line, but the IDEA shows there are many errors in the source code, and the only way to fix this is

Managing project dependencies in Eclipse

孤人 提交于 2019-12-10 11:34:41
问题 I see a number of posts on this, but I'm still struggling. I've got a workspace with two projects, one with the robotium library and one using it(we'll call this one foo). I would like to click run on foo, and have it re-compile robotium into a jar, add it to foo's build path, and then run foo. How can I do this? Also, I'm starting to learn maven so I'm not opposed to doing this that way, I just don't know how -- I've been assuming this is something Eclipse can do standalone. 回答1: You can

Adding JBoss AS 7 libs as Gradle Dependency

烈酒焚心 提交于 2019-12-10 10:06:34
问题 I need to add JBoss 7.1.1 libs as a Gradle dependency in my project, because I need them in compile time. But all the dependencies I have are added from a Maven Repo. I have seen how to do it, I can add them as a providedCompile dependency, using this technique right here. But what do I associate it to? How do I add libs that I have in my JBoss Modules as a Gradle dependency? EDIT I have seen I can add a file tree to my dependencies like this: dependencies { provided fileTree(dir: 'myDir',

CMake: dependency management in a multi-library package export

孤人 提交于 2019-12-10 09:31:57
问题 I have a package called MYLIBS consisting of two libraries, lib1 and lib2 , which I want to export through the configuration file for the package. The project structure is as follows: ├── Lib1 │ ├── CMakeLists.txt │ ├── lib1-class.cpp │ └── lib1-class.h ├── lib2 │ └── CMakeLists.txt │ ├── lib2-class.cpp │ ├── lib2-class.h ├── cmake │ └── LIBSConfig.cmake.in ├── CMakeLists.txt In lib2 I have: add_library(lib2 STATIC ${SOURCE_FILES} ) target_include_directories(lib2 PRIVATE /path/to/lib1)

How can I use different JARs for compiling and testing in maven?

此生再无相见时 提交于 2019-12-10 03:36:37
问题 I compile my programm against javaee-api. But for Junit testing I must use a specific implementation like glassfish's javaee.jar to avoid errors like java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/Persistence (see also 1). So avoid using methods, that are only available in glassfish implementation, I want to compile my artifact with the general api, but run junit with the implementation jar. But both provide equal

Organizing Different Versions of App in Xcode

和自甴很熟 提交于 2019-12-09 23:29:16
问题 I'm developing an iPhone app that can edit images. Ultimately, I want to have a small version that allows the user to simply edit their images, and a large version that allows social networking of the images. Then I'd like to develop a version of each for the iPad. Being that this is my first foray into commercial mobile development, I'm confused about how to organize all these versions in Xcode. Obviously, there will be file reuse shared between each version. I guess my question is, how do I

Dependency management and build tool for JavaScript

一笑奈何 提交于 2019-12-09 16:42:53
问题 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:

How can I fix missing conf files when using shadowJar and Scala dependencies?

亡梦爱人 提交于 2019-12-09 14:58:13
问题 Writing this for users who have future issues like me. Libraries that are built on the Typesafe config typically use their own reference.conf files and refer to certain configuration keys. When building a fat JAR using the Gradle shadowJAR plugin, these files aren't included. Dependencies like Spray and Akka throw errors when the fat JAR attempts to run. Errors look like: Exception in thread "main" com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'spray'

javascript dependencies in python project

百般思念 提交于 2019-12-09 14:47:43
问题 I'm writing software that allows one to publish mathematical books as websites. It is based mostly on Python + Flask, but to deal with equations I'm using MathJax. MathJax can be used either client-side or server-side (through MathJax-node). In the latter case I have to use npm to install MathJax-node in some place accessible to my main Python script, then invoke it from the script. In the former case, I have to provide MathJax.js as an asset, available to client (currently I use Flask's send