FAQ Database Discussion Community


Offline installation of a list of packages: getting dependencies in order

r,dependency-management,install.packages
I've got the source files for a bunch of packages and their dependencies that I want to install on computers that have no internet access. I want to install all of these on other computers using as USB stick, but the install fails for some packages because the dependencies are...

Build dependencies and local builds with continuous integration

continuous-integration,teamcity,dependency-management,build-server,teamcity-9.0
Our company currently uses TFS for source control and build server. Most of our projects are written in C/C++, but we also have some .NET projects and wouldn't want to be limited if we need to use other languages in the future. We'd like to use Git for our source...

Archiva / Maven as corporate repository

java,maven,jar,dependency-management,archiva
I am setting up Maven corporate repository using Apache Archiva for my company. Our requirements for now are quite basic - have an internal repo for our jar files and dependency management. I want to make sure that Archiva does not upload any of our proprietary code / jar files...

NoClassDefFoundError : org.apache.commons.lang.StringUtils

maven,dependency-management
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath(FileWagon.java:206) at org.apache.maven.wagon.providers.file.FileWagon.putDirectory(FileWagon.java:157) at org.apache.maven.plugins.site.deploy.AbstractDeployMojo.push(AbstractDeployMojo.java:441) at org.apache.maven.plugins.site.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:323) at...

Gradle non-managed dependency from source

java,gradle,dependency-management
I need to configure a dependency in gradle to the source of another project (P1). Unfortunately, it is not possible to get a jar of the said project, nor is it possible to configure it to use gradle (company restrictions). Now, I am writing a new java project (Pnew) that...

How to have different dependencies depending on OS family

windows,unix,rust,dependency-management,rust-cargo
I'm writing a cross-platform library that has platform specific dependencies, one for unix-like platforms, and one for windows. These crates only compile on specific platforms, wherefore I can't just add them all under dependencies normally. In the actual rust code I use cfg attributes, like #[cfg(unix)] to compile certain code...

transitive dependency defined in parent pom's dependency management

maven,dependency-management,transitive-dependency
'Dependency1' transitively pulls 'dependency2' and I would like to manage 'dependency2' version in my project. what version of 'dependency2' will be pulled in by project if I have both 'dependency1' and 'dependency2'in dependency management section in parent pom and just 'dependency1' child pom of the project? something like this: ParentPOM...

Overriding Grails built-in library?

grails,dependency-management
Grails "rendering" plugin uses org.xhtmlrenderer. Grails itself comes packaged with org.xhtmlrenderer:core-renderer:R8, which apparently from dependency-report is used grails-docs. There's a bug in this version of xhtmlrender which conflicts with twitter bootstrap and which is only fixed in the github repository. I've built this new version and successfully installed it via...

PHP error - “There is no disk in the drive”

php,windows,dependency-management
How come when I run php from the command prompt I get a message from php.exe saying "There is no disk in the drive. Please insert a disk into drive F:." What does drive F have to do with anything?! I can still do PHP commands, but it sure is...

Eclipse - How to add a project as a Maven dependency to another, instead of adding as a jar?

java,eclipse,maven,dependencies,dependency-management
I have two Maven projects. One should be a dependency to another. Both have pom.xml files. When I search repository, it sees the local project and automatically added. The pom.xml entry when I add it: <dependencies> <dependency> // for another dependency, an external jar <groupId>..</groupId> <artifactId>..</artifactId> <version>...</version> </dependency> <dependency> //...

Grails 2.2.x unresolved dependencies without any changes to previously working build

maven,grails,dependency-management,grails-2.2
We have a Grails 2.2.4 project that I was looking to do some work on. There has been no work done on it for six months, but it built just fine back then. When I try to run grails clean now I get a host of UNRESOLVED DEPENDENCIES errors. This...

Gradle dependencies for several projects

android,gradle,dependencies,dependency-management
I have some projects in directory Dir |____ Progect 1 |____ Progect 2 |____ Progect 3 In project 1 i need use class from project 2. How do I get the required dependencie on the project 1...

How can I make a transitive dependency in gradle also use the dependency's original source?

maven,gradle,dependency-management
I have a library, which I call core, which is a dependency of another project, called Museum. In core's build.gradle, I am using gson-fire, which is specified as a dependency in the following manner: repositories { maven { url 'https://raw.github.com/julman99/mvn-repo/master'} } ... dependencies { compile 'com.github.julman99:gson-fire:0.11.0' } This works fine...

Ivy repository for maven projects

maven-2,pom.xml,dependency-management,ivy
We have an Ivy repository in place and we would like to develop new projects as maven projects but use Ivy for dependency management. Is it possible for maven to download artifacts from Ivy ? The articles I see are quite old, around 2011. Hence would like to check in...

'Provided' dependency in Gradle

java,gradle,dependency-management
I have build.gradle in fron of me and there are some dependencies declared as provided but in documentation I do not see this dependency scope. dependencies { compile("org.springframework.boot:spring-boot-starter-web:1.2.4.RELEASE") .... provided 'backport-util-concurrent:backport-util-concurrent:3.1' provided 'org.javolution:javolution:[email protected] .... } Is this provided by a plugin? If so how do I found out which plugin...

Staying up to date with software releases of dependencies

dependencies,monitoring,updates,dependency-management,software-release
I think everybody uses some third party software (dependencies) in his projects. Often you drop in one version at a time and never update it, cause you don't know there is a new version and if there is you may have some migration work. Most of these 3rd party projects...

Gradle & local Ivy repository not finding transitive dependencies

maven,gradle,dependencies,ivy,dependency-management
I am building a Spring Boot web application and in my setup I have a local repository that hosts all my thirdparty JARs - the repository is ivy format. I have been able to build the WAR file whilst connecting to Maven Central repository, and I now need to be...

Confused with Gradle Dependencies

gradle,dependencies,dependency-management
I am trying to add my dependencies to Gradle Dependencies library in eclipse, and when I run this, it downloads these dependencies, however my other dependencies are in the Gradle Dependencies folder under Gradle Project in eclipse but this one is not. Please help, I just need to add a...

Host TimeLineJS on Meteor app without smart package

meteor,dependency-injection,dependency-management,timeline.js
I'd like to host the TimeLineJS library on my Meteor app locally and not use the smart package because I need to fine tune it. I've tried declaring the createStoryJS function in the Meteor space like this in create Timeline.js. However, there are other dependencies (storyjs-embed.js, storyjs-embed-generator.js, storyjs-embed.js, and everything...

integrationTestCompile gradle dependency ignored

gradle,dependency-management,integration-tests
Following a few blog posts I tried to create a separate source folder for integration testing in gradle. I wanted also to add some additinal (arquillian) dependencies to my integrationTest task, but the integrationTestCompile seems to be ignored and I get a compilation error with the additional dependecy not resolved....

Godep restore doesn't use the code saved in _workspace

go,dependency-management
I started using godep a while ago but I think I'm failing to understand the principal, and I may be using it incorrectly entirely. I thought godep maintains _workspace in order to have a local copy of the packages in case some revisions/projects are removed or become unavailable. But godep...

Order or inherited dependencies in Maven 3

maven,inheritance,dependency-management
I am using Maven 3.0.4. Say I have a parent pom with dependency dep-A and a child pom, inheriting from the parent, with dependencies dep-B and dep-C. When I look at the effective pom of the child project, I see that the dependencies end up declared in the following order:...

Using an external java library in OSGI bundle

java,eclipse,osgi,dependency-management,osgi-bundle
I want to use this java library [1]enj-library in my OSGI bundle that will be executed under KURA eclipse platform. I compiled the library as jar and then I created a new plugin project under eclipse "Plug-in from existing JAR archive" then I tried to add it to my bundle,...

Distribution of js library [closed]

javascript,node.js,bower,dependency-management
I want to create a js library for helping with jasmine tests. What is the js-way of distributing such library? Node modules? Bower? Both? Something else? What is the industry standard in js world?

Local Nexus Maven repository for common java libraries

maven,maven-3,dependency-management,nexus,sonatype
We have a Nexus install that has a collection of commonly used java dependencies (commons-codec, jodatime etc.) The directory structure is similar to the below commonjavalibraries | |_ commons-codec | |_commons-codec | |_1.2 |_ commons-compress |_commons-compress |_1.3 I am in the process of adding the latest version of these dependencies...

In spring make sure Guava Event Bus listener beans are instantiated before events are dispatched

java,spring,events,guava,dependency-management
Say I have the following: Config Sets up the guava EventBus bean. @Configuration public class AppConfig { @Bean public EventBus eventBus() { return new EventBus(); // guava event bus } } Event listener Listens and handles to some/all of the events that are put on the event bus. May have...

Spring REST Data

maven,spring-boot,spring-data,dependency-management,spring-data-rest
I'm trying to expose Spring REST Data using a demo application found in the documentation: package hello; import java.util.List; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @RepositoryRestResource(collectionResourceRel = "people", path = "people") public interface PersonRepository extends MongoRepository<Person, String> { List<Person> findByLastName(@Param("name")...

Maven hamcrest parent depedency failed to resolve

maven,maven-3,dependency-management
I have the following POM with a single dependency: <?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.xxx</groupId> <artifactId>mavenproject1</artifactId> <version>1.0-SNAPSHOT</version>...

Play framework: package javax.inject does not exist

java,build,playframework-2.0,sbt,dependency-management
In my Play 2.0 Framework Java project, the following line yields errors both in Eclipse and during the sbt compile step: import javax.inject.*; I already added the javax.inject dependency to my build.sbt file: libraryDependencies ++= Seq( javaCore, javaJdbc, javaEbean, javaWs, javaFooBar, cache, "javax.inject" % "javax.inject" % "1", "org.atmosphere" % "atmosphere-play"...

SBT with Maven Central - get rid of Scala version in artifact url

scala,sbt,dependency-management,maven-central
I am trying to use in my Scala project Java library which is on Maven Central. While resolving this dependency, SBT appends Scala version to the repository url which obviously does not exist in such a format. Can I somehow disable appending Scala version for this specific artifact?

Importing an OSGI bundle into eclipse

java,eclipse,maven,dependency-management,osgi-bundle
I try to import this OSGI bundle [2]enj-library into eclipse (after compiling it with Maven) , I used: "File > Import...> Plug-in Development > Plug-ins and fragments" and I imported the binary but I got the following unresolved dependencies: These dependencies were mentionned in pom.xml: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>1.2.1</version> <extensions>true</extensions>...

Having a python module, install its own dependencies before running

python,virtualenv,dependency-management
A lot of software packages require users of the system to install a set of dependencies first before they can use the software. (This is a general question not specific to python, but I'll speak in context of python.). Can't we make the python module install its own dependencies before...

Titunium Studio Cannot find Android SDK

android,installation,titanium,appcelerator,dependency-management
I have a problem with Titanium Studio. It doesn't recognize my Android SDK installation.In the Platform->Android prefs panel, it says "No Android SDK found in the selected location" When I first ran Titanium, it installed/updated a bunch of it's own and some Node plugins, so it's fulfilled all dependencies. details:...

How to exclude dependencies of other subproject in Gradle build?

java,eclipse,gradle,dependencies,dependency-management
I am developing a sub-project that is a part of the huge multi-project Gradle build. I need some Java classes from these other sub-projects, but I do not need any dependencies they drag in because some libraries I use require different versions of these. I initially configured the needed subprojects...

maven license plugin aggregate licenses from resources

maven,licensing,pom.xml,dependency-management
We're using the maven license plugin (third-party-aggregate goal) to produce a list of third party project dependencies - this is good and we've got it working. I would like to extend that to include the licenses for our resources (i.e. not just code/dependencies), but don't know where to start -...

LoggerFactory is not a Logback LoggerContext but Logback is on the classpath

java,logging,spring-security,spring-boot,dependency-management
I think some module in spring-boot-starter-security is conflict with log4j, but I don't know which one. my gradle dependence is as following: compile("org.springframework.boot:spring-boot-starter-thymeleaf") compile("org.springframework.boot:spring-boot-starter-security"){ exclude module: "spring-boot-starter-logging" } compile "org.apache.logging.log4j:log4j-api" compile "org.apache.logging.log4j:log4j-core" compile "org.apache.logging.log4j:log4j-slf4j-impl" compile('org.apache.poi:poi:3.10.1')...

Does webpack allow to run my app without building like jspm?

javascript,dependency-management,browserify,webpack,jspm
I was just wondering about this. Can webpack work in the browser without doing any builds, like JSPM? Or is it the same as browserify? I looked at the official docs and found no mention of this.

Can I have a RPM depend on a directory?

linux,dependency-management,rpm,rhel,rpmbuild
I'm creating an RPM file (with rpmbuild) whose post-install script will create a file in /etc/X11/xinit/xinitrc.d/. To make sure that the directory already exists, I'd like to specify a dependency on a package which creates it. Is it correct in this case to add a Requires: /etc/X11/xinit/xinitrc.d line to the...

What happens to a dependency defined in a root project in a subproject in gradle?

java,gradle,dependency-management
I have a gradle project with several subprojects. I have defined several dependencies with version numbers in the root project but not all subprojects use all of these dependencies. root - build.gradle - compile 'math:math:1.0.0' - settings.gradle - include 'messages' - include 'message-handler' \ messages - build.gradle - //no math...

How to mix ResolutionStrategies with Gradle

gradle,dependency-management,transitive-dependency
Let's say I have the following in my gradle build script: configurations.all { resolutionStrategy { failOnVersionConflict() force 'com.google.guava:guava:18.0' } } This will fail if more than one version of a jar is found, except for guava where it will force to version 18.0. Now let's imagine that I want to...