Skip to content

Instantly share code, notes, and snippets.

@thiamteck
Created April 6, 2017 03:06
Show Gist options
  • Save thiamteck/49a4dbdca01b15028d26d573590262f8 to your computer and use it in GitHub Desktop.
Save thiamteck/49a4dbdca01b15028d26d573590262f8 to your computer and use it in GitHub Desktop.
Remove default namespace declaration from pom.xml
#
# Reference : http://stackoverflow.com/a/16700113/90101
#
#
# remove default namespace declaration
#
sed -e 's/ xmlns=".*"//g' pom.xml
#
# remove all namespace declaration
# TODO remove schemaLocation
#
sed -e 's/ xmlns.*=".*"//g' pom.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment