dependency-management

Use of 3rd party libraries/components in production

When using 3rd party libraries/components in production projects, are you rigorous about using only released versions of said libraries? When do you consider using a pre-release or beta version of a library (in dev? in production, under certain circumstances)? If you come across a bug or shortcoming of the library and you're already ...

What are the hidden features of Maven2?

What are the hidden features of Maven2? ...

What's the best way to manage a dependency tree in .NET?

In my last project we used MSBuild as a scripting language. (yeah, really!) We also wrote hundreds of custom MSBuild tasks, for the parts that made more sense in C#. (I even wrote an MSBuild task to generate the boilerplate code for an MSBuild task. Yes, it consumed itself.) While I don't recommend anyone else take this same approach, ...

How do you package external libraries in your .Net projects?

A lot of my projects contain the Castle/NHibernate/Rhino-Tools stack. What's confusing about this is that Castle depends on some NHibernate libraries, NHibernate depends on some Castle libraries, and Rhino-Tools depends on both. I've built all three projects on my machine, but I feel that copying the NHibernate/Castle libraries is a bit...

What's the best way to define dependencies between multiple ant build files?

I have a bunch of modules which I'd like to all have their own ant build files. However, modules have dependencies on other modules. What's the best way to define dependencies between build files? I've looked at the <import>, <ant>, and <antcall> tasks, but it seems like maybe there's a better way to do this. ...

How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

If my ivysettings.xml file includes: <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]...

Maven-like dependency management for C++?

Say I have a C++ project that is split in several subprojects. The subproject all produce a DLL and different teams of developers work on each of the subproject. Now if I want to build the main project, is there a way to avoid having to build all the subprojects by myself? In short, I'm looking for something that does the dependency man...

Should I use Eclipse plug-ins (or OSGi Bundles) as a plain dependency management tool?

Heya, once again it has happened... I joined a new project, composed of several plain Eclipse Java Projects, with interdependencies, all managed through the Project build path. I find this all a bit of a chaos. And when it comes to run configurations - you just enter hell. In the past I've sticked to create plug-in projects, instead of...

Choosing the right version of Apache Commons Logging

I've got dependencies on several Apache TLPs (Top Level Projects) like Apache Axis, Commons HttpClient, Commons DBCP, Commons Transaction etc. Each of these projects has a dependency on JCL (Commons Logging) and every project depends on a different version of JCL. Which version of JCL should I be choosing - will the highest version be ...

How do you handle library dependencies during deployment using PHP?

Hey guys - this is a question on PHP mainly. I was wondering: How do you make sure that all necessary libaries are packaged with your application when you do a deployment to (production) servers? A more concrete example: I have an app running on Zend Framework and each time I roll the application to a server the deployment process crea...

Sharing common Ant targets between projects

Is there a well-established way to share Ant targets between projects? I have a solution currently, but it's a bit inelegant. Here's what I'm doing so far. I've got a file called ivy-tasks.xml hosted on a server on our network. This file contains, among other targets, boilerplate tasks for managing project dependencies with Ivy. For exa...

Maven Grails Building with 'mvn clean install' doesn't work

Hi, I've built a Maven Grails project which can be build fine using command mvn grails:war. However, using the standard mvn install fails to work - I get exceptions complaining that a util Java class (held under the grails-app/util folder) can't compile because it can't find one of the domain classes. I'm not using any package structu...

maven dependencies groovy

I'm running a project that has a dependency on groovy 1.7-beta-1. The gmaven plugin uses groovy version 1.6 as a dependency. In my pom, I specify in the dependency management section the grooyv-all version as : <dependencyManagement> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</arti...

How to do deployment for php application

I am currently developing a php-application for a charity organization and I am now in the stage of defining the deployment practices. Our application is using both Zend Framework and Doctrine. The application will be rolled out to different servers, each with a different configuration file. The machines are both Windows and Linux (but ...

why does maven release plugin allow for SNAPSHOT version in dependency managment?

We have 1 company parent pom. This uses dependencyManagement to manage the versions for all the dependencies of all the artifacts used. What is alarming, is that SNAPSHOT versions can be defined in dependencyManagement. Though when maven release is performed, the pom is allowed to be released with SNAPSHOT version in depende...

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

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 a...

Are there any good/automateable dependency management tools for managing application, database & external resources dependencies?

I would like to build an overview/map of as many of our applications dependencies as possible. Analyzing .NET application dependencies is fairly easy using tools such as NDepend (which I love!). But when it comes to external dependencies, such as databases and webservices, I need something better, and preferably something that can be aut...

Is there an .NET alternative for Java artifact repositories like Nexus or Artifactory? Where do you store versioned DLL's?

Where to store binaries needed for automatic builds on Team System? Are you storing them along with the code in the SCM or someplace else? Is having a big amount of binaries in SCM causing any performance issues with source controol? There is a need to be able to revert to earlier version of some external library in order to fix bugs in...

Java dependencies during development and deployment

I have a general question on what is the proper way to manage your compile and deployment jar dependencies. I typically lay out the dev directories like the following for a simple library/application. Calculator src test build lib … There are many ways to do this, but this is my typical layout for generic projects. My...

Creating a directed acyclic graph out of recursive nmake makefile?

Hello, As an exercise and in an effort to (better understand|help other people better understand) the build process at my company, I am hoping to create a directed acyclic graph of the build process. The current build process at my work is, as I understand, is essentially running nmake on a makefil at the root build directory. This m...