mirror of https://github.com/apache/maven.git
[MNG-6426] IT for MNG-6127 fails on Java 9+
This commit is contained in:
parent
d1b0435670
commit
cfacb95634
|
@ -29,8 +29,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -29,8 +29,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -30,8 +30,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -29,8 +29,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -30,8 +30,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -29,8 +29,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -30,8 +30,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.2.1</maven-version>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -30,8 +30,6 @@ under the License.
|
|||
|
||||
<properties>
|
||||
<maven-version>3.3.1</maven-version>
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -64,8 +64,11 @@ public class TestMojo
|
|||
File file = new File( project.getBasedir(), "configuration.txt" );
|
||||
file.getParentFile().mkdirs();
|
||||
|
||||
try ( Writer w = new OutputStreamWriter( new FileOutputStream( file, true ), "UTF-8" ); )
|
||||
Writer w = null;
|
||||
|
||||
try
|
||||
{
|
||||
w = new OutputStreamWriter( new FileOutputStream( file, true ), "UTF-8" );
|
||||
if ( name != null )
|
||||
{
|
||||
w.write( "name=" + name + ", " );
|
||||
|
@ -76,5 +79,18 @@ public class TestMojo
|
|||
{
|
||||
throw new MojoExecutionException( e.getMessage(), e );
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ( w != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
w.close();
|
||||
}
|
||||
catch ( IOException e )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue