dependencies

Should I rely on transitive dependencies in Maven if they come from other sub-module of my parent?

我怕爱的太早我们不能终老 提交于 2019-12-20 02:34:10
问题 Suppose we are working on mortgage sub-module, and we are directly using the Google Guava classes in module code, but the dependcy for the guava is defined in other sub-module under the same parent and we have access to Guava classes only by transitive dependency on "investment" module: banking-system (parent pom.xml) | |-- investment (pom.xml defines <dependency>guava</dependency>) | |-- mortgage (pom.xml defiens <dependency>investment</dependency>) Should we still put a <dependency> to

spring-core dependency version error with a Jenkins Plugin

假装没事ソ 提交于 2019-12-20 02:11:11
问题 I'm trying to make a Jenkins plugin that uses a library that requires spring-core 3.2.2 (cloudfoundry-client-lib). I simply used the mvn command to create a skeleton plugin, then added my Maven dependency to pom.xml and a few simple code lines that uses the library. I'm not getting any problem running the skeleton plugin without my dependency. Upon compiling with "mvn package", I'm getting a test error: WARNING: Failed to scout hudson.security.PAMSecurityRealm java.lang.InstantiationException

How to subtract ivy dependency sets

为君一笑 提交于 2019-12-20 01:57:11
问题 My goal is to demarcate project transitive dependencies into several not crossing sets: system (jars already present in j2ee container; listed manually with explicit fixed versions) provided (jars to be copied to j2ee container; listed manually) ear (jars to be packed inside ear/lib, the rest) My current solution listed below has some shortcomings: have to exclude system and provided libraries from ear conf one by one new third-party transitive deps that weren't already explicitly excluded

Google Play Game Services + BaseGameUtils added to a Gradle project = package does not exist

社会主义新天地 提交于 2019-12-20 01:41:56
问题 I already read many answers on this subject but can't fix my problem, and here it is : I have a gradle project that is a game, in that game I want to add google game services like I successfully did with 'type-a-number' (which is NOT a gradle project). But I get the following error: Gradle: error: package com.google.example.games.basegameutils does not exist Gradle: error: cannot find symbol class BaseGameActivity Gradle: error: cannot find symbol variable super NOTE : in my activity

Google Play Game Services + BaseGameUtils added to a Gradle project = package does not exist

时光毁灭记忆、已成空白 提交于 2019-12-20 01:41:01
问题 I already read many answers on this subject but can't fix my problem, and here it is : I have a gradle project that is a game, in that game I want to add google game services like I successfully did with 'type-a-number' (which is NOT a gradle project). But I get the following error: Gradle: error: package com.google.example.games.basegameutils does not exist Gradle: error: cannot find symbol class BaseGameActivity Gradle: error: cannot find symbol variable super NOTE : in my activity

Eclipse Plugin project with other project dependencies

时光总嘲笑我的痴心妄想 提交于 2019-12-19 17:16:31
问题 I have an Eclipse plugin project, and it depends on other projects that I have in my Eclipse workspace. After adding the project dependencies under "Java Build Path" -> "Projects" tab, and also selecting the project in the "Order and Export" I get a java.lang.NoClassDefFoundError. I'm assuming that the other projects have not been properly included into the plugin. Does anyone know how to fix this? Thanks, James 回答1: An Eclipse plug in project manages dependencies differently than a regular

Maven: Is it possible to upload a set of 3rd party jars to repository, which can then be referenced as a single dependency?

╄→гoц情女王★ 提交于 2019-12-19 12:02:29
问题 We are using an internal Nexus Repository for third party jars which are dependencies in our applications. I am starting a new project, and have a set of 4 third party jar files which I want to upload to Nexus, and then reference, ideally, as a single dependency (i.e. artifactId/version) from my project pom.xml. These jars are always given together, never versioned separately, so having a separate artifactId/version combination for each jar is not useful. Is it possible to upload all the jars

Unresolved Dependencies for a new play 2.0 scala project

守給你的承諾、 提交于 2019-12-19 11:43:20
问题 Good day, After " play new todo " (new scala project) -> " cd todo " -> " play dependencies " I get this one unresolved dependency " org.slf4j:slf4j-api:1.6.1 required by "net.sf.ehcache:ehcache-core:2.5.0, org.hibernate:hibernate-validator:4.2.0.Final, play:play_2.9.1:2.0" reason " Evicted by 1.6.4 ". Actually there is already org.slf4j:slf4j-api:1.6.4 in resolved dependencies. I tried different things, nothing worked. It seems that in the internets there is only one guy here who have the

Write a query that returns the dependencies of an object

♀尐吖头ヾ 提交于 2019-12-19 09:47:06
问题 I'm looking for exactly what Management Studio shows with the "View Dependencies" menu. Management Studio connected to SQL Server 2008 Right click on an object and choose "View Dependencies" Now you can navigate through the dependencies back and forth. How do I get the same information programmatically? (an SQL query?) 回答1: Before you run the following query, replace <database_name> and <schema_name.function_name> with valid names USE <database_name>; GO SELECT OBJECT_NAME(object_id) AS

JNA: Native Library dependencies and JAR extraction

我是研究僧i 提交于 2019-12-19 09:22:03
问题 I will access the MSP430.dll (see here) via JNA. But this library has a dependency to other native library, which cames bundled with the MSP430.dll. This dependend native library is called HIL.dll. With use of jna.library.path all does work perfect. Now I would bundle the native librarys to my own .jar package. Then I would use the automatic native library loading from jar of the JNA framework. But this makes problems with native librarys that have dependencies. If I package the MSP430.dll