Posts

Showing posts from 2016

"/usr/bin/env: node: No such file or directory" - UBUNTU

Check out this GitHub Issue https://github.com/nodejs/node-v0.x-archive/issues/3911 If you have installed nodejs from your package repo in ubuntu it is called nodejs and not node. You can solve it whit a symlink but you should not place the symlink in /usr/bin like nodejs is, but in /usr/local/bin/node for it to be outside the package systems world to comply to standards. ie:  ln -s /usr/bin/nodejs /usr/local/bin/node

Maven Dependancy Exclusion

Consider the case where you are using the Log4J2 however the dependency you are trying to add for CXF or something brings in log4j1.x. You are missing a bunch of new functionality because logger still refers to old version. Obvious  you need to remove the Transitive dependency but how to identify the transitive dependencies mvn dependency:tree -Dverbose -Dincludes=log4j:log4j [groupId]:[artifactId]:[type]:[version] http://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html will show you the dependency-tree, but only the relevant excerpt. Using this information you can now add your exclusions to the affected pom.xml files Eg: <!-- CXF Dependancies --> < dependency > < groupId > org.apache.cxf </ groupId > < artifactId > cxf-java2wadl-plugin </ artifactId > < version > ${cxf-version} </ version > < exclusions > < exclusion ...