Solutions for Maven error “Failure to transfer…”

Problem #1 I am trying to set up a project using Maven (m2eclipse), but I get this error in Eclipse: (Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven......

Fix “Permissions are too open … private key will be ignored”

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder, and your keys aren’t going to work anymore. It’s very important that these files not be writable by just anybody with a login to the box, so openssh will give you an error if you try to use them. Problem The full error message: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0744 for '/home/geek/.ssh/id_rsa' are too open. It is recommended that your private......

统计当前目录下的文件/文件夹 数量

统计当前目录下的 文件夹 总数$ ls -l | grep '^d' | wc -l 统计当前目录下的 文件 总数$ ls -l | grep '^-' | wc -l 递归统计当前目录下的 文件 总数$ ls -lR | grep '^-' | wc -l