dependencies

How to set up MS Visual Studio 2005 project dependencies for efficient compiling (c++)?

How do I set up MS Visual Studio 2005 project dependencies such that making a change in a higher level project does not force a recompile of all other projects it depends on. If I have 5 dll projects, which are related in various ways... Under the 'Project'->'Dependencies' I have identified the next project down, but only down one level...

What's the best way to handle circular dependencies amongst objects?

In my code, I have the the following objects: ErrorManager - controls how errors are logged in the application ConfigManager - controls how the configuration information is obtained On the project I'm working on, the ErrorManager needs to pull configuration information using the ConfigManager instance while the ConfigManager uses the...

ModelForms in Django where the underlying model depends on another model (via OneToOneField)

I have two models in my Django application, for the purposes of storing search parameters used for some homology search programs: # models.py class Search(models.Model): """A class to represent search runs.""" program = models.CharField(max_length=20) results_file = models.FileField( upload_to=(SEARCH_RESULTS_DIR) ...

Spring 2.5 in EJB container

Hi, I would like to use the spring framework within an EJB3 project. In detail I would like to use the JDBC template class which should be instantinated from a given data source. When I put the spring.jar to my Jboss lib directoy everything is working fine. But when I put the JAR inside my EAR only there seems to be external dependencie...

How to make maven place all jars common to wars inside the same EAR to EAR root?

We have a solution with numerous wars. Wars are similar in the sense they all use hibernate and spring. This means that we have a number of same jars inside each war. This is becoming a problem, because the size of the ear is starting to grow out of proportion. I would like to use Maven to calculate dependencies and to place all jars co...

Unable to update snapshots or run the install goal with Maven

Does anyone have an idea how to resolve this Maven error? I get the following when I attempt to update my project's snapshots: Build errors for my-projects-name; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-dependency-plugin:2.0:u...

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

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

Is it possible to have version-independent DLL references in a class?

I would like to create a class that compiles into a single DLL. This DLL would add functionality to an existing product. To make this work, the custom class references DLLs contained in the underlying product. These references are needed to compile. Everything works fine here and the custom class compiles. I can drop the DLL produ...

Problem with dependencies using Ant from the shell.

I'm having problems building my project, using an Ant script, from the command prompt using Ant itself. It can't find a certain import for a particular Java file in my project (which has nearly 5,000 source files as it is). The import is included in a .jar package whose location I have set in the Ant file itself. (As a pathelement, along...

VS2008 MSTest command line program hanging when loading unit test assembly

Within Visual Studio 2008 SP1, you can create a unit test project which uses MSTest as the test runner. I've been writing tests now at work that test unmanaged C++ MFC from the managed MSTest project, and it's been quite an interesting ride. There seems to be a difference between using the IDE's test runner versus using the command lin...

Django App Dependency Cycle

I am in the middle of developing a Django application, which has quite complicated models (it models a university - courses, modules, lectures, students etc.) I have separated the project into apps, to make the whole thing more organised (apps are courses, schools, people, modules and timeperiods). I am having a problem whereby a model ...

Which is better for a dependency: Web Service vs XML?

I’m creating an application that has a data dependency on another group’s data feed. They can give me a daily xml dump of the data that I can simply load into cache once a day OR I can make calls to a web service to get the data that way. If the data provider doesn't care which I use (same work for them either way) which should I ask fo...

Grouping maven dependencies across projects

I have a multi-module project where there are various components which follow a fairly standard layout. For example: root (pom) ... module-NN (pom) module-NN-launcher (jar) module-NN-runtime (jar) ... (where there are many module-NN projects) Each *-launcher project uses ...

How do I tell cpan to install all dependencies?

How do I tell cpan to install all dependencies? Edit: After following Sinans link. I tried setting these in cpan: cpan> o conf prerequisites_policy follow cpan> o conf commit I still had to answer y a couple of times. (but fewer than before it feels like) Any way to get it to always go ahead and install? I want to make it unattended...

Dependency injection for Silverlight?

I normally use StructureMap.dll (from MvcContrib) for dependency injection in .NET. Is there an equivalent for Silverlight, or any tools anyone uses? I can do it by hand, obviously, and it's not difficult. But I wondered if there was something formalised like StructureMap but for Silverlight. ...

Apache Ivy: resolving dependencies embedded in an installer

I have a problem with a build where I have to resolve non-standard artifacts through Apache Ivy. Problem: I have dependencies on two artifacts (a.jar and a-lib.jar). The two dependencies come only as part of a single installer (a_installer.jar). The installer can be downloaded, the embedded artifacts themselves not. It's possible to ...

How to fix visual studio 'projects out of date' message each time I run it

I have a visual studio (2005) solution file with 70 projects. Each time I press F5 to run it, it tells me that 4 of the projects are out of date, and asks me if I want to rebuild them. It does this even though I have just done a full build. I understand (in principle) that one of the other projects must update something that these projec...

DLL Dependencies - different on different systems?

I created an application, with the mingw compiler in a WinXP system. It worked fine. I then tried to run it in an older WinXP box(this has been in the shelf for some 6 months). The application terminated with an exception --'The application could not initialize (0xc0150002)'. Running depends.exe on the app shows two unavailable dlls(ie...

Ways of keeping DLLs up to date

I've recently joined a company which has had a number of developers of varying quality work for them over the years. The projects which have been created rely on outputs from other projects. However instead of creating dependencies in the normal manner and maintaining the code, DLLs have been copied from one place to another and referen...

Maven dependency best practices

We're using maven 2.1.0 and I am looking for some best practices with regard to dependency management. I have multiple modules that are completely separate, but still have many common dependencies. Like log4J, but some modules don't need it. I am wondering if it is a good idea to declare all common dependencies in one parent file in t...