dependencies

Including a non-Mavenized dependency so it works with maven-shade-plugin

本秂侑毒 提交于 2019-12-09 12:22:41
问题 I want to include GData Client, which doesn't use Maven, as a dependency into my Maven project. It ships as a bunch of JAR files. Additionaly, I use Maven Shade Plugin to build an executable JAR without any external dependencies (with the default configuration, no renaming/including/excluding/transforming of dependencies). How can I do that? (Just adding the JARs as resources wouldn't work, since the Shade plugin must extract them). 回答1: you want to check the maven docs on installing 3rd

usemin revved filenames and requirejs dependencies

可紊 提交于 2019-12-09 11:47:49
问题 I'm running into the following problem with requirejs and usemin: I want to setup a multipage application, where I dynamically load modules that only contain page specific functionality (e.g. about -> about.js, home -> home.js). I could go ahead and pack everything in a single file, but that just leads to a bigger file size and overhead on functionality that isn't necessary on each site! (e.g. why would I need to load a carousel plugin on a page that doesn't have a carousel!) I checked out

Resolving a Maven dependency differently if the JVM in use is x86 or x64?

岁酱吖の 提交于 2019-12-09 11:42:44
问题 I have a Maven repository set up to host some dlls, but I need my Maven projects to download different dlls depending on whether the JVM in use is x86 or x64. So for example, on a computer running an x86 version of the JVM I need ABC.dll to be downloaded from the repository as a dependency, but on another computer running an x64 version of the JVM, I need it download XYZ.dll instead. How would I go about doing this? An example pom.xml file would be nice. 回答1: This will work on any VM. You can

Can someone show me what a good dependency matrix looks like and specify why?

廉价感情. 提交于 2019-12-09 09:23:40
问题 I would like to start using DSM, but not sure how to get started. What does a good dependency matrix look like and why? How does it work? 回答1: On this blog post Identify Code Structure Patterns with No Effort it is explained how to use a Dependency Structure Matrix to identify Code Structure Patterns. The screenshots are done with the Dependency Structure Matrix of the tool NDepend. Here are a few patterns: Layered code (code with no cycle, certainly the coolest thing that a DSM can show you

How do I stop Maven 2.x from trying to retrieve non-existent pom.xml files for dependencies every build?

僤鯓⒐⒋嵵緔 提交于 2019-12-09 09:10:44
问题 In my project, there are a number of dependencies that are transitively included from other dependencies that do not have pom.xml files available in any of our corporate repositories. These are internal jar-only libraries supported by various teams which have been uploaded into repositories for convenience from non-Maven teams, however these repositories are unfortunately not mine to play with. For these dependencies, Maven insists on trying to retrieve the poms from each of my repository

C++ two libraries depend on same lib but different versions?

感情迁移 提交于 2019-12-09 07:48:27
问题 If i have libs A, B and C in C++ using GCC compiler. Lib A and B both depend on C but on different versions of it. Can i then use A and B together in another program? or will the different versions required of C by A and B conflict? And how do i resolve this and can i? 回答1: I'm assuming that you're linking dynamically. If both A and B completely encapsulate their respective versions of C then it might be possible to do this. You might have to make sure that the different versions of C are

Cleanest way in Gradle to get the path to a jar file in the gradle dependency cache

帅比萌擦擦* 提交于 2019-12-09 07:28:53
问题 I'm using Gradle to help automate Hadoop tasks. When calling Hadoop, I need to be able to pass it the path to some jars that my code depends on so that Hadoop can send that dependency on during the map/reduce phase. I've figured out something that works, but it feels messy and I'm wondering if there's a feature I'm missing somewhere. This is a simplified version of my gradle script that has a dependency on the solr 3.5.0 jar, and a findSolrJar task that iterates through all of the jar files

Composer and Yii

余生长醉 提交于 2019-12-09 06:08:01
问题 I'm using composer as my dependency manager and since I need to develop with Yii Framework I added it to my composer.json file, so it looks like this: //other properties... "require": { //other dependencies... "yiisoft/yii": "dev-master" } Composer.json is ok, Yii downloaded correctly, but there is a feature I think composer misses. My yii directory now is full of "rubbish", demo folders, build files bla bla that I don't really need. There is a way to tell composer to keep only some directory

make deleting dependency files

℡╲_俬逩灬. 提交于 2019-12-09 05:31:06
问题 I'm not sure if it's gmake or gcc that I don't understand here. I'm using the -MM and -MD options to generate dependency rules for the Unit Testing framework I'm using. Specifically: $(TEST_OBJ_DIR)/%.d: $(TEST_SRC_DIR)/%.cpp @$(CPPC) -MM -MD $< -o $@ @sed -i -e 's|\(.*\)\.o:|$(OBJ_DIR)/\1.o $(TEST_OBJ_DIR)/\1.d $(TEST_OBJ_DIR)/\1.o:|' $@ -include $(TEST_DEP_FILES) When I run make , after all binaries are linked (properly), I see the following extra (unexplained) line before make exits rm

Could not find metadata in local

流过昼夜 提交于 2019-12-09 04:38:58
问题 Locally on the machine i have an Artifactory installed with maven repositories, and i have a very simple .pom file for my project which points to it: <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>MYGROUP</groupId> <artifactId>NAME</artifactId> <packaging>jar</packaging> <version>VERSION</version>