mirror of https://github.com/apache/maven.git
fixes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163506 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a40e474437
commit
d23845bbcb
|
@ -1,31 +1,23 @@
|
||||||
<model>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>maven</groupId>
|
<groupId>maven</groupId>
|
||||||
<artifactId>pom-pre-alpha-converter</artifactId>
|
<artifactId>pom-pre-alpha-converter</artifactId>
|
||||||
<packaging>jar</packaging>
|
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>maven</groupId>
|
<groupId>maven</groupId>
|
||||||
<artifactId>maven-model</artifactId>
|
<artifactId>maven-model</artifactId>
|
||||||
<version>2.0-SNAPSHOT</version>
|
<version>2.0-SNAPSHOT</version>
|
||||||
<type>jar</type>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>maven</groupId>
|
<groupId>maven</groupId>
|
||||||
<artifactId>maven-model</artifactId>
|
<artifactId>maven-model</artifactId>
|
||||||
<version>4.0.0-pre-alpha1</version>
|
<version>4.0.0-pre-alpha1</version>
|
||||||
<type>jar</type>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>plexus</groupId>
|
<groupId>plexus</groupId>
|
||||||
<artifactId>plexus-utils</artifactId>
|
<artifactId>plexus-utils</artifactId>
|
||||||
<version>1.0-alpha-1</version>
|
<version>1.0-alpha-1</version>
|
||||||
<type>jar</type>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<reports />
|
</project>
|
||||||
</model>
|
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class Main
|
||||||
if ( reverse )
|
if ( reverse )
|
||||||
{
|
{
|
||||||
FileUtils.copyFile( backup, file );
|
FileUtils.copyFile( backup, file );
|
||||||
|
backup.delete();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -81,6 +82,11 @@ public class Main
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if ( backup.exists() )
|
||||||
|
{
|
||||||
|
System.err.println( "skipping... backup exists" );
|
||||||
|
}
|
||||||
|
|
||||||
FileReader fileReader = new FileReader( file );
|
FileReader fileReader = new FileReader( file );
|
||||||
Model model = reader.read( fileReader );
|
Model model = reader.read( fileReader );
|
||||||
fileReader.close();
|
fileReader.close();
|
||||||
|
|
Loading…
Reference in New Issue