Haskell Stack install package dependency from github

For stack <1.11: The documentation for the stack.yaml packages section gives examples of referring to more complex package locations. packages: – location: . – location: dir1/dir2 – location: https://example.com/foo/bar/baz-0.0.2.tar.gz – location: http://github.com/yesodweb/wai/archive/2f8a8e1b771829f4a8a77c0111352ce45a14c30f.zip – location: git: git@github.com:commercialhaskell/stack.git commit: 6a86ee32e5b869a877151f74064572225e1a0398 – location: hg: https://example.com/hg/repo commit: da39a3ee5e6b4b0d3255bfef95601890afd80709 Then add extra-dep: true to the package entry just to tell … Read more

Maven “versions” plugin – how to exclude alpha/beta versions from response?

You can configure the versions plugin like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>versions-maven-plugin</artifactId> <version>2.1</version> <configuration> <rulesUri>someUrl</rulesUri> </configuration> </plugin> someUrl can also be a file URL. The syntax of the rules file is given in http://www.mojohaus.org/versions-maven-plugin/version-rules.html, it may contain something like this: <ruleset comparisonMethod=”maven” xmlns=”http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd”> <ignoreVersions> <ignoreVersion type=”regex”>.*-beta.</ignoreVersion> <ignoreVersion type=”regex”>.*_ALPHA</ignoreVersion> </ignoreVersions> </ruleset>

Is there any way to retrieve a dependency tree from yum?

Per the RHEL5 manual pages: “repoquery is a program for querying information from YUM repositories similarly to rpm queries.” For your specific case of postgis: # repoquery –requires –recursive –resolve postgis postgresql-libs-0:8.1.23-6.el5_8.i386 geos-0:2.2.3-3.el5.i386 glibc-0:2.5-107.el5_9.5.i686 proj-0:4.5.0-3.el5.i386 You can drop the “.i386” and “.i686” off of the package names if your system is 64-bit. The output from … Read more

Maven dependency resolution and scope overriding

Running mvn dependency:tree on the sample project posted in the bug link specified above, [INFO] Building MEAR-143 1.0-SNAPSHOT [INFO] ———————————————————————— [INFO] [INFO] — maven-dependency-plugin:2.3:tree (default-cli) @ mear-143 — [INFO] ljnelson:mear-143:pom:1.0-SNAPSHOT [INFO] \- junit:junit:jar:4.8.2:test [INFO] [INFO] ———————————————————————— [INFO] Building MEAR-143 Leaf 1.0-SNAPSHOT [INFO] ———————————————————————— [INFO] [INFO] — maven-dependency-plugin:2.3:tree (default-cli) @ mear-143-leaf — [INFO] ljnelson:mear-143-leaf:jar:1.0-SNAPSHOT [INFO] \- … Read more

Package Manager vs Dependency Manager

TLTR: Package Manager is used for SYSTEM and Dependency Manager for PROJECT Package Manager – is used to configure system, ie to setup your development environment and with these settings you can build many projects. Dependency Manager – Is specific to project. You manage all dependencies for a single project and those dependencies are going … Read more

Publish Snapshot vs Publish Release in Gradle With Continuous Integration

You can configure the snapshot and the release repository in the ‘Upload’ task (e.g. the uploadArchives) task: uploadArchives { repositories { mavenDeployer { repository(url: ‘http://myCompanyRepo.com:8081/releases’) { authentication(userName: ‘admin’, password: ‘password’); } snapshotRepository(url: ‘http://myCompanyRepo.com:8081/snapshots’) { authentication(userName: ‘admin’, password: ‘password’); } } } } For *-SNAPSHOT versions the snapshotRepository is used. Otherwise the releases repo is used.

How to manage different support library versions for 3rd party deps with gradle?

This is certainly possible. In your projects build.gradle file (the top level build.gradle file) add the following code block: ext { supportlib_version = ‘26.1.0’ gps_version = ‘11.2.0’ } //Ensure that all dependencies use the same version of the Android Support library subprojects { project.configurations.all { resolutionStrategy.eachDependency { details -> if (details.requested.group == ‘com.android.support’ && !details.requested.name.contains(‘multidex’)) … Read more

What is the difference between “+-” and “\-” in maven dependency tree output?

Those symbols do not have any meaning whatsoever, they are just present to read the output of the tree better! Here’s a more complex output to see better what it does, on a spring-webmvc dependency: [INFO] +- org.springframework:spring-webmvc:jar:4.2.2.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:4.2.2.RELEASE:compile [INFO] | +- org.springframework:spring-context:jar:4.2.2.RELEASE:compile [INFO] | | \- org.springframework:spring-aop:jar:4.2.2.RELEASE:compile [INFO] | | \- … Read more

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