updated to Maven v3.9.0
This commit is contained in:
parent
0af5425292
commit
434045f5d1
7
pom.xml
7
pom.xml
@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
@ -42,7 +43,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<maven.version>3.6.3</maven.version>
|
<maven.version>3.9.0</maven.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -54,7 +55,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
<artifactId>file-management</artifactId>
|
<artifactId>file-management</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
@ -65,7 +66,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||||
<artifactId>maven-plugin-annotations</artifactId>
|
<artifactId>maven-plugin-annotations</artifactId>
|
||||||
<version>3.6.0</version>
|
<version>3.7.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -16,8 +16,6 @@ package com.inteligr8.maven.regex;
|
|||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import javax.annotation.OverridingMethodsMustInvokeSuper;
|
|
||||||
|
|
||||||
import org.apache.maven.execution.MavenSession;
|
import org.apache.maven.execution.MavenSession;
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugin.MojoExecutionException;
|
import org.apache.maven.plugin.MojoExecutionException;
|
||||||
@ -63,17 +61,14 @@ public abstract class AbstractRegexMojo extends AbstractMojo {
|
|||||||
|
|
||||||
protected abstract void go() throws MojoExecutionException, MojoFailureException;
|
protected abstract void go() throws MojoExecutionException, MojoFailureException;
|
||||||
|
|
||||||
@OverridingMethodsMustInvokeSuper
|
|
||||||
protected void validateParamsPreNormalization() throws MojoFailureException {
|
protected void validateParamsPreNormalization() throws MojoFailureException {
|
||||||
this.getLog().debug("Validating parameters before their normalization");
|
this.getLog().debug("Validating parameters before their normalization");
|
||||||
}
|
}
|
||||||
|
|
||||||
@OverridingMethodsMustInvokeSuper
|
|
||||||
protected void normalizeParameters() throws MojoFailureException {
|
protected void normalizeParameters() throws MojoFailureException {
|
||||||
this.getLog().debug("Normalizing parameters");
|
this.getLog().debug("Normalizing parameters");
|
||||||
}
|
}
|
||||||
|
|
||||||
@OverridingMethodsMustInvokeSuper
|
|
||||||
protected void validateParamsPostNormalization() throws MojoFailureException {
|
protected void validateParamsPostNormalization() throws MojoFailureException {
|
||||||
this.getLog().debug("Validating parameters after their normalization");
|
this.getLog().debug("Validating parameters after their normalization");
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class MatchFileContentMojo extends AbstractMatchMojo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean matchesContentInFileSet() throws MojoExecutionException {
|
private boolean matchesContentInFileSet() throws MojoExecutionException {
|
||||||
FileSetManager fsman = new FileSetManager(this.getLog());
|
FileSetManager fsman = new FileSetManager();
|
||||||
Path basepath = this.project.getBasedir().toPath();
|
Path basepath = this.project.getBasedir().toPath();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -47,7 +47,7 @@ public class ReplaceFileContentMojo extends AbstractReplaceMojo {
|
|||||||
|
|
||||||
private boolean replaceContentInFileSet() throws MojoExecutionException {
|
private boolean replaceContentInFileSet() throws MojoExecutionException {
|
||||||
boolean didReplace = false;
|
boolean didReplace = false;
|
||||||
FileSetManager fsman = new FileSetManager(this.getLog());
|
FileSetManager fsman = new FileSetManager();
|
||||||
Path basepath = this.project.getBasedir().toPath();
|
Path basepath = this.project.getBasedir().toPath();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -23,8 +23,6 @@ import java.nio.charset.CharsetDecoder;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import javax.annotation.OverridingMethodsMustInvokeSuper;
|
|
||||||
|
|
||||||
public class DelimitedReadableByteChannel implements ReadableByteChannel {
|
public class DelimitedReadableByteChannel implements ReadableByteChannel {
|
||||||
|
|
||||||
private final CharBuffer buffer;
|
private final CharBuffer buffer;
|
||||||
@ -50,7 +48,6 @@ public class DelimitedReadableByteChannel implements ReadableByteChannel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@OverridingMethodsMustInvokeSuper
|
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
this.rbchannel.close();
|
this.rbchannel.close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user