Skip to main content

How to search all maven pom.xml for a specific dependency


I was facing some issues with a maven dependency, then I found the the right command to get the specific module pom.xml I was looking for.
As usually I copy it here as a reminder for the future (granted taht we have one, given the situation in North Korea)

$ find . -name pom.xml -exec grep -l jackson {} \;

Comments

Unknown said…
If this command is intended for linux environment, you can add at the end of line this:

2> /dev/null

to suppress noising error messages that can arise for directories producing errors when going into

Popular posts from this blog

Multiple controllers with Spring Boot

Remember, when you want to have multiple controllers with Spring Boot, you should always name them differently in the annotation, otherwise they will not work So these two together will NOT work (or just one of them will work) These two instead WILL work.

When adding a property to graph-tool don't forget this

When you are adding a new property to a graph-tool graph (https://graph-tool.skewed.de/) is_node_customer = network.new_vertex_property("bool") weight = network.new_edge_property("float")  you should never forget to add this network.vertex_properties["is_node_customer"] = is_node_customer network.edge_properties["weight"] = weight Otherwise the properties will not saved or stored together with the graph and you will lose a lot of time