What is the meaning of type “bundle” in a maven dependency?

This kind of artifact is an OSGi bundle, typically produced using the maven-bundle-plugin which is part of Apache Felix. The plugin treats all the classes available to your module (the module’s own classes, classes provided by dependencies, other classes on the classpath) as one giant set, then lets you select a subset of those classes … Read more

composer.lock: how does it work?

composer.lock records the exact versions that are installed. So that you are in the same versions with your co-workers. composer install Check for composer.lock file If not, auto generate composer.lock file (Using composer update) Install the specified versions recorded in the composer.lock file composer update Go through the composer.json file Check availability of newer (latest) … Read more

When installing packages with Yarn, what does “incorrect peer dependency” mean?

It is only a warning as it won’t actually stop your code from running, It’s just there to give you a heads up that there’s something wrong with your dependencies. Effectively, peer dependencies are a way for packages to specify, “to use me, you should also have x version of y package installed”. You should … Read more

Easy way to have Homebrew list all package dependencies

For all packages: brew deps –tree –installed For one package only (e.g.): brew deps –tree –installed vim Thanks to rob-kovacs for suggesting the –tree addition See this helpful article for details: https://blog.jpalardy.com/posts/untangling-your-homebrew-dependencies/ Especially if you’re interested in creating a graph of the dependency tree.

Javascript require() function giving ReferenceError: require is not defined

RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code. IE 6+ ………. compatible ✔ Firefox 2+ ….. compatible ✔ Safari 3.2+ … Read more

How do I add a Maven dependency in Eclipse?

On the top menu bar, open Window -> Show View -> Other In the Show View window, open Maven -> Maven Repositories In the window that appears, right-click on Global Repositories and select Go Into Right-click on “central (http://repo.maven.apache.org/maven2)” and select “Rebuild Index“ Note that it will take very long to complete the download!!! Once … Read more

composer: How to find the exact version of a package?

I know it’s an old question, but… composer.phar show Will show all the currently installed packages and their version information. (This was shown in previous versions of Composer only when using the now-deprecated -i option.) To see more details, specify the name of the package as well: composer.phar show monolog/monolog That will show many things, … Read more

Maven equivalent for python [closed]

Python uses distutils and setuptools for dependency and packaging. Heres a tutorial which explains basics: http://docs.activestate.com/activepython/3.2/diveintopython3/html/packaging.html In short, you will have setup.py file, which has dependency and script compilation/installation information, and you can build eggs, dist tarballs, binary tarballs, etc with it.

How to find/remove unused dependencies in Gradle

UPDATE for Kotlin Users: 17 December 2021: Detects missing or superfluous build dependencies in Kotlin projects : Version 1.0.9 (latest) I have added 2 types of configuration for Kotlin users. Using the plugins DSL Using legacy plugin application Using the plugins DSL: plugins { id(“com.faire.gradle.analyze”) version “1.0.9” } Using legacy plugin application: buildscript { repositories … Read more

Force re-download of release dependency using Maven

You cannot make Maven re-download dependencies, but what you can do instead is to purge dependencies that were incorrectly downloaded using mvn dependency:purge-local-repository See: http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html This looks up the list of all transitive dependencies of the current project, deletes them, then redownloads them. You can even add it as a plugin into your pom if … Read more

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