mirror of https://github.com/apache/lucene.git
SOLR-9300: fix replace expression in GetMavenDependenciesTask's dependencyToArtifactId (Christine Poerschke, Daniel Collins)
This commit is contained in:
parent
15e8719b8a
commit
1e92fc5f35
|
@ -640,7 +640,7 @@ public class GetMavenDependenciesTask extends Task {
|
|||
// Pattern.compile("(lucene|solr)/build/(.*)/classes/java");
|
||||
String artifact = matcher.group(2);
|
||||
artifact = artifact.replace('/', '-');
|
||||
artifact = artifact.replace("(?<!solr-)analysis-", "analyzers-");
|
||||
artifact = artifact.replaceAll("(?<!solr-)analysis-", "analyzers-");
|
||||
if ("lucene".equals(matcher.group(1))) {
|
||||
artifactId.append("lucene-");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue