Do you know the Maven profile for mvnrepository.com?

Once you’ve found your jar through mvnrepository.com, hover the “download (JAR)” link, and you’ll see the link to the repository which contains your jar (you can probably Right clic and “Copy link URL” to get the URL, what ever your browser is). Then, you have to add this repository to the repositories used by your … Read more

How to list dependencies of a JAR

There is a new tool since JDK 8: jdeps https://wiki.openjdk.java.net/display/JDK8/Java+Dependency+Analysis+Tool jdeps is a new command-line tool added since JDK 8 for developers to use to understand the static dependencies of their applications and libraries. jdeps is a static analysis tool on the given class files

Sort maven dependencies in Eclipse

Finally it is possible with Eclipse Photon now. Just tick the checkbox Sort library entries alphabetically in Package Explorer under Preferences → Java → Appearance See also here under ‘Sort library entries alphabetically in Package Explorer’. Unfortunately theres a bug, at least for me, that the source folders are also reordered, see here.

How to sort depended objects by dependency

Having struggled with this for a while, here’s my attempt at a Linq style TSort extension method: public static IEnumerable<T> TSort<T>( this IEnumerable<T> source, Func<T, IEnumerable<T>> dependencies, bool throwOnCycle = false ) { var sorted = new List<T>(); var visited = new HashSet<T>(); foreach( var item in source ) Visit( item, visited, sorted, dependencies, throwOnCycle … Read more

What are unused/undeclared dependencies in Maven? What to do with them?

Not sure how Maven determines this. It is not required to address all the items reported by this, but this information can be used as appropriate. Used undeclared dependencies are those which are required, but have not been explicitly declared as dependencies in your project. They are however available thanks to transitive dependency of other … Read more

Upgrading React version and it’s dependencies by reading package.json

Using npm Latest version while still respecting the semver in your package.json: npm update <package-name>. So, if your package.json says “react”: “^15.0.0” and you run npm update react your package.json will now say “react”: “^15.6.2” (the currently latest version of react 15). But since you want to go from react 15 to react 16, that … Read more

Using npm to install or update required packages just like bundler for rubygems

As of npm 1.0 (which is now what you get by default if you follow the steps in the README file), “bundle” is no longer a segregated thing — it’s just “how it works”. So: Put a package.json file in the root of your project List your deps in that file { “name” : “my-project” … Read more

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