dependencies

How to include jar in Maven Netbeans proj that doesnt exist in maven repo

别等时光非礼了梦想. 提交于 2019-12-12 13:00:45
问题 I am using Netbeans to build a Maven project, and have the JTidy java library as a dependency. It turns out JTidy doesnt exist in any maven repos, so I can't just add a "normal" depedency entry for it. What is the best way of handling dependencies to libraries in Maven projects that arent available on repos? I've currently tried adding it to my maven pom as such (after copying the jar to my projects /libs folder) <dependency> <groupId>org.w3c</groupId> <artifactId>org.w3c.tidy</artifactId>

Typemock Isolator: Mock a dependency that's not injected?

江枫思渺然 提交于 2019-12-12 12:23:10
问题 My WidgetDoer class depends on Foo , which is not injected. I need to fake _foo 's implementation of DoStuffWith() (and then verify that Do() returned the result -- this is a simplified representation of my real code). public class WidgetDoer { readonly Foo _foo; public WidgetDoer() { _foo = new Foo(); } public Bar Do(Widget widget) { var result = _foo.DoStuffWith(widget); return result; } } I tried to use the following Isolator syntax to prevent a real Foo object from being created (inside

Should I distribute log4net with my releases?

我的未来我决定 提交于 2019-12-12 12:23:05
问题 I am wondering what is best practice when it comes to dependencies and how releases should be done. In my case I have a library that relies on log4net and I am wondering if I should distribute log4net.dll (set the log4net reference to copy local) along with the release? Could I simply state that log4net should be installed in the GAC? 回答1: Relying on libraries in the GAC can cause version conflicts and other problems that are very hard to troubleshoot and debug. I always try to distribute

Referenced project dependencies DLL are not being copied

£可爱£侵袭症+ 提交于 2019-12-12 12:22:25
问题 My project solution is currently having three projects: MyProject , which is my main startup project (using .NET Framework 4.7 ) - WPF, UI specfic, MyProject.Core - class library ( .NET Standard 2.0 ) - holding the models, and all of the 'behind the scenes' data MyProject.Relational - class library ( .NET Standard 2.0 ) - responsible for processing and saving the database specific informations Project 1 (main) has set a reference to project 2 and 3 . For the project 3 I have installed a NuGet

LoadLibrary is failing with module not found error — possible dependency problems

陌路散爱 提交于 2019-12-12 11:19:58
问题 I have been trying to load a 32-bit dll using C++ (from a 32-bit application, on windows 7 64-bit). LoadLibrary returns NULL, and GetLastError returns 126 for "The specified module could not be found." I am passing in the complete address to the LoadLibrary function. I opened the dll in Dependency Walker, which said GPSVC.dll was a missing dependency. From the googling I've done, it looks like Dependency Walker often falsely shows this GPSVC.dll as a missing dependency, and there is no 32-bit

How do I automate dependency installation after pulling code from repository?

こ雲淡風輕ζ 提交于 2019-12-12 11:19:35
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 4 years ago . My collegue and I develop a small Python application. We use Vagrant to set up development environments. Suppose my collegue introduces a new feature into the application. Feature's implementation requires a new python dependency (3rd party package) and the dependency itself needs some system libraries. If I do not read through all pulled commits carefully I

Is “g++ -MMD” better than include scanning?

烈酒焚心 提交于 2019-12-12 11:17:11
问题 Whilst looking at build systems, a lot of them (SCons, bjam, cmake, Tundra, etc) have a built-in #include scanner. Yet gcc & icc offer a -MMD (or -MD ) option which outputs the names of the header files that the C++ file depends upon. The -MMD dependency option seems to be reliable. If you add a #include to a C file, its timestamp would change so the build system would recompile it. If you add a #include to a header file, its timestamp would change and it would recompile all affected C files.

Application can't find libc++_shared.so

只谈情不闲聊 提交于 2019-12-12 11:16:41
问题 I am using a native library to do complex calculations for my application. When I run the application on newer more high end devices, the application runs fantastically. However, when I run it on devices such as the Blu Dash, lenovo tablet or Alcatel One touch the application can't link with the native library because we have an unresolved dependency with `libc++_shared.so' Why would libc++ be present on the former devices and not the latter? Is a possible resolution to dump libc++ into my

SBT not resolving Squeryl dependency

▼魔方 西西 提交于 2019-12-12 10:13:03
问题 I recently started a new project with the Play! Framework and Scala. I'm used to using Squeryl for my ORM, but for some reason it cannot resolve my dependency this time (Although it will resolve others, just not squeryl). The only thing I'm doing differently is that I'm on a different computer than I was before (Windows now, Arch before) and I'm using Play 2.1.1 instead of 2.1. EDIT: I am also behind a proxy, I thought this may have been resolved since I can resolve some dependencies, but I

library dependencies in maven. best practices

寵の児 提交于 2019-12-12 09:56:43
问题 I'm writing testing library with my own junit runner. it extends BlockJUnit4ClassRunner which is available since 4.5 till... who knows. user of my library should be able to choose whatever junit version (with BlockJUnit4ClassRunner of course). and i don't know how to define dependency on junit (let's say current version is 4.10). if i make [4.5, 4.10] provided, then i have to release new version with every junit release i'm not sure if [4.5, ) is good a good practise because it implicitly