in src/main/java/org/apache/maven/plugins/shade/relocation/SimpleRelocator.java [178:194]
public boolean canRelocatePath(String path) {
if (rawString) {
return Pattern.compile(pathPattern).matcher(path).find();
}
if (path.endsWith(".class")) {
path = path.substring(0, path.length() - 6);
}
// Allow for annoying option of an extra / on the front of a path. See MSHADE-119; comes from
// getClass().getResource("/a/b/c.properties").
if (!path.isEmpty() && path.charAt(0) == '/') {
path = path.substring(1);
}
return isIncluded(path) && !isExcluded(path) && path.startsWith(pathPattern);
}