mirror of https://github.com/apache/maven.git
parent
fbf6bdaf01
commit
4454cd6d82
|
@ -43,7 +43,7 @@ public interface Artifact extends Comparable<Artifact> {
|
|||
|
||||
String SNAPSHOT_VERSION = "SNAPSHOT";
|
||||
|
||||
Pattern VERSION_FILE_PATTERN = Pattern.compile("^(.*)-([0-9]{8}\\.[0-9]{6})-([0-9]+)$");
|
||||
Pattern VERSION_FILE_PATTERN = Pattern.compile("^(.*)-(\\d{8}\\.\\d{6})-(\\d+)$");
|
||||
|
||||
// TODO into artifactScope handler
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ public class ProjectBuilderTest extends AbstractCoreMavenComponentTestCase {
|
|||
// modify parent
|
||||
File parent = new File(tempDir.toFile(), "pom.xml");
|
||||
String parentContent = FileUtils.readFileToString(parent, "UTF-8");
|
||||
parentContent = parentContent.replaceAll(
|
||||
parentContent = parentContent.replace(
|
||||
"<packaging>pom</packaging>",
|
||||
"<packaging>pom</packaging><properties><addedProperty>addedValue</addedProperty></properties>");
|
||||
FileUtils.write(parent, parentContent, "UTF-8");
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.apache.maven.model.profile.ProfileActivationContext;
|
|||
@Singleton
|
||||
public class JdkVersionProfileActivator implements ProfileActivator {
|
||||
|
||||
private static final Pattern FILTER_1 = Pattern.compile("[^0-9._-]");
|
||||
private static final Pattern FILTER_1 = Pattern.compile("[^\\d._-]");
|
||||
private static final Pattern FILTER_2 = Pattern.compile("[._-]");
|
||||
private static final Pattern FILTER_3 = Pattern.compile("\\."); // used for split now
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ import org.codehaus.plexus.util.StringUtils;
|
|||
@Singleton
|
||||
public class DefaultModelValidator implements ModelValidator {
|
||||
|
||||
private static final Pattern CI_FRIENDLY_EXPRESSION = Pattern.compile("\\$\\{(.+?)\\}");
|
||||
private static final Pattern CI_FRIENDLY_EXPRESSION = Pattern.compile("\\$\\{(.+?)}");
|
||||
|
||||
private static final String ILLEGAL_FS_CHARS = "\\/:\"<>|?*";
|
||||
|
||||
|
|
Loading…
Reference in New Issue