How to use POMs as a dependency in Maven?

You have to go with <dependencies> <dependency> <groupId>com.my</groupId> <artifactId>commons-deps</artifactId> <type>pom</type> </dependency> </dependencies> This will transitively add all dependencies declared in com.my:commons-deps to your current POM. Using <dependencyManagement> <dependencies> <dependency> <groupId>…</groupId> <artifactId>…</artifactId> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> works as a simple ‘include’ of artifacts versions in your dependency management. Thus, it won’t add any dependency in … Read more

Cannot access ‘androidx.lifecycle.HasDefaultViewModelProviderFactory’ which is a supertype of ‘FavoriteBottomDialogFragment’. Check your module cla

I experienced this exact same problem today, and was able to solve. Turns out the issue was a version mismatch between the expected version of androidx.lifecycle:lifecycle-viewmodel used by the module where the “failing” class is and a later version in some other dependent code. So in my case, my module was using version 2.1.0 of … Read more

Warning:Conflict with dependency ‘com.android.support:support-annotations’

I forked android-topeka google sample and updated appcompat version to 23.1.0, same message: Warning:Conflict with dependency ‘com.android.support:support-annotations’. Resolved versions for app (23.1.0) and test app (23.0.1) differ. I added: androidTestCompile ‘com.android.support:support-annotations:23.1.0′ Now both resolve to 23.1.0, the warning is gone, and the app and tests still work. I’m not sure that it’s the better solution, … Read more

What is the difference between “Module Dependencies” and “Libraries” in IntelliJ IDEA?

Module dependencies are classes, archives, libraries and resources that your module files references. While a library is a set of class files stored in an archive or directory. Export check means if checked then this library will be implicitly added to the other module that references this one. To create a .jar file you need … Read more

Gradle: how to display where a dependency conflict arises

Answering this question is the whole point of the dependencyInsight task. javax.activation:activation:1.1 is pulled in by com.sun.mail:mailapi:1.4.4 and com.sun.mail:smtp:1.4.4. If your own code also depends on javax.activation, you can force your version with compile(“javax.activation:activation:1.0.2”) { force = true }. If not, you can force a version with configurations.all { resolutionStrategy.force “javax.activation:activation:1.0.2” }.

Dependency error in jasper-reports from itext

A much simpler solution may be to upgrade to a newer version of jasperreports. Version 6.1.0 has this dependency on iText: <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>2.1.7.js2</version> <scope>compile</scope> </dependency> No more “floating” dependency on iText, and it’s a version that’s custom made for jasperreports! See http://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports/6.1.0 for the complete pom.xml.

@import in @if statement in Sass

It’s one of those things that’s just not allowed. The only thing you can do is turn those imports into mixins (import the file outside the @if and call the mixin where appropriate). Clarification: _partial.scss @mixin partial { .test { color: red } // other styles here } styles.scss @import “partial”; @if $someval == true … Read more

Multiple package.json files in one package

As far as I have seen, package.json deals with a single directory’s dependencies (and a single instance of node_modules). Your best bet is to split your applications into separate directories. Barring that, you could just add all of the dependencies to a single package.json file. It will install into the node_modules folder and any app … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)