How to get a dependency tree for an artifact?

1) Use maven dependency plugin Create a simple project with pom.xml only. Add your dependency and run: mvn dependency:tree (Version for multi-module Maven project: mvn compile dependency:tree ) Unfortunately dependency mojo must use pom.xml or you get following error: Cannot execute mojo: tree. It requires a project with an existing pom.xml, but the build is … Read more

How do I print a list of “Build Settings” in Xcode project?

UPDATE: This list is getting a little out dated (it was generated with Xcode 4.1). You should run the command suggested by dunedin15. dunedin15’s answer can give inaccurate results for some edge-cases, such as when debugging build settings of a static lib for an Archive build, see Slipp D. Thompson’s answer for a more robust … Read more

How to build jars from IntelliJ properly?

Here’s how to build a jar with IntelliJ 10 http://blogs.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/ File -> Project Structure -> Project Settings -> Artifacts -> Click green plus sign -> Jar -> From modules with dependencies… Select a Main Class (the one with main() method) if you need to make the jar runnable. The above sets the “skeleton” to where … Read more

How do I get the Git commit count?

To get a commit count for a revision (HEAD, master, a commit hash): git rev-list –count <revision> To get the commit count across all branches: git rev-list –all –count I recommend against using this for build identifier, but if you must, it’s probably best to use the count for the branch you’re building against. That … Read more

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