dependency-management

Why does jasperreports-maven-plugin needs itext:itext:jar:4.2.0?

元气小坏坏 提交于 2019-12-08 11:11:00
问题 Since today we can't build our jasper file any more. We use the jasperreports-maven-plugin for this. In maven 2.2.1, this was configured like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jasperreports-maven-plugin</artifactId> <version>1.0-beta-2</version> <executions> <execution> <goals> <goal>compile-reports</goal> </goals> <configuration> <sourceDirectory>${basedir}/src/main/resources/reports</sourceDirectory> <outputDirectory>>${project.build.directory}/classes/reports<

Using different code depending on the version of another dependency

感情迁移 提交于 2019-12-08 06:31:52
问题 Following situation: Library X (maintained by me) depends on library Y version ^2.0. For library Y, a newer major version 3 exists that is generally better. Upgrading code built on top of Y 2 to Y 3 is straightforward, but requires a few adjustments to the existing code nonetheless. Y is a dependency of X, so upgrading it would force users of X to upgrade, too, and thus also requires updating code that uses Y outside of X. I'd like to make X installable with both Y 2 and Y 3. My approach

Spring Boot/Gradle/Querydsl project has the same dependency dependent on different versions of another dependency

让人想犯罪 __ 提交于 2019-12-08 05:27:11
问题 I am having problems adding Querydsl to my Spring Boot project. I have the following dependencies in my build.gradle file: dependencies { annotationProcessor 'com.querydsl:querydsl-apt:4.1.3:jpa' annotationProcessor 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'com.querydsl:querydsl-jpa:4.1.3' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework

Java dependency grapher [closed]

微笑、不失礼 提交于 2019-12-08 04:46:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Problem: I have a large, old, disorganized java project from the early 2000s. The project is built using ant. There is no dependency management, everything is handled by storing jars locally. The compile and package targets for the build script are very broad, and mostly just compile and subsequently package the

Resolving dependencies of incompatible versions of a library in Maven

南笙酒味 提交于 2019-12-08 03:59:42
问题 I have problems with dependencies in Maven-Java. My problem is that two modules have a dependency with different versions and these versions are incompatible. Can I solve it? A example of the problem I have three modules (MA, MB and MC) and two libraries (LA and LB), LA has two versions (v1 and v2) and they are incompatible The first module, MA, contains the main class and It depends on MB and MC MB module depends on LA v2. MC module depends on LB version. LB version depends on LA v1. Finally

How to specify properties on groups of dependencies in Gradle?

狂风中的少年 提交于 2019-12-07 22:25:55
问题 Using Gradle, I'd like to be able to disable transitivity on one group of dependencies, while still allowing on others. Something like this: // transitivity enabled compile( [group: 'log4j', name: 'log4j', version: '1.2.16'], [group: 'commons-beanutils', name: 'commons-beanutils', version: '1.7.0'] ) // transitivity disabled compile( [group: 'commons-collections', name: 'commons-collections', version: '3.2.1'], [group: 'commons-lang', name: 'commons-lang', version: '2.6'], ) { transitive =

Maven release update policy

佐手、 提交于 2019-12-07 15:39:42
问题 I see that the releases setting in the maven settings has got an updatePolicy as the snapshots setting has. I was always under the impression released artifacts won't/shouldn't change, so there can't ever be a question of update policy when it comes to releases . Or am I wrong? Does releases having an updatePolicy mean that releases behave the same way as snapshots in this regard? Or will that setting not work (in which case the documentation needs to be updated) with the releases at all? Not

How to inject fake, stubbed or mock dependencies for Integration tests using Typhoon

别来无恙 提交于 2019-12-07 13:54:48
问题 I'm trying to write integration tests using KIF. My question is: How to inject stubbed, mock or fake dependency for particular view controller? Each view controller using dependencies like a data model, http client, store manager etc. comes from ModelAssembly, ApplicationAssembly, ManagerAssmebly. On storyboard, for login view i have a key path, containing value "loginViewController". Creating view controllers: ViewControllersAssembly.h @interface ViewControllersAssembly : TyphoonAssembly

Using Composer, can dependencies be shared between multiple projects?

我的梦境 提交于 2019-12-07 09:21:19
问题 First of all, I'm a complete newbie to Composer. I've been trying it out since it's a sounds awesome and mainly because Zend Framework 2 uses it. Zend Framework 2 is actually also the reason for this thread. It get the basics of Composer. But with my current server setup I have a request, which I can't seem to figure out if possible. Let me explain. I have multiple Zend Framework 2 projects: /home/morten/sites/Project-1/ /home/morten/sites/Project-2/ /home/morten/sites/Project-3/ All of these

Should major SemVer updates cascade?

时光毁灭记忆、已成空白 提交于 2019-12-07 08:32:27
问题 So "myLibrary" references "anotherLibrary". Both libraries follow http://semver.org/ If I release a new version of myLibrary that forces consumers to update to a new major version of anotherLibrary should the major version of myLibrary also increment? 回答1: This is specifically answered in the FAQ section of semver, where it is recommended that the major version be not bumped up. http://semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api 回答2: It really