Maven resource filtering corrupts the libraries