o Activate some methods

o Remove unused dependencies


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170442 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-05-16 20:12:09 +00:00
parent 025d519b89
commit bfad4bb462
2 changed files with 7 additions and 18 deletions

View File

@ -30,16 +30,5 @@
<artifactId>maven-scm-provider-svn</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-provider-api</artifactId>
<version>1.0-alpha-3</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
<version>1.0-alpha-3</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -163,7 +163,7 @@ public class ReleaseMojo
private void prepareRelease()
throws MojoExecutionException
{
//checkStatus();
checkStatus();
checkDependencies();
@ -171,13 +171,13 @@ public class ReleaseMojo
//commit();
//tag();
tag();
}
private void performRelease()
throws MojoExecutionException
{
//checkout();
checkout();
}
private boolean isSnapshot( String version )
@ -208,7 +208,7 @@ public class ReleaseMojo
if ( isSnapshot( parentArtifact.getVersion() ) )
{
// throw new MojoExecutionException( "Can't release project due to non released parent." );
throw new MojoExecutionException( "Can't release project due to non released parent." );
}
currentProject = project.getParent();
@ -247,8 +247,8 @@ public class ReleaseMojo
message.append( artifact.getVersion() );
message.append( "\n" );
}
// throw new MojoExecutionException( "Can't release project due to non released dependencies :\n" +
// message.toString() );
throw new MojoExecutionException( "Can't release project due to non released dependencies :\n" +
message.toString() );
}
}
@ -326,7 +326,6 @@ public class ReleaseMojo
}
//Rewrite plugins version
//TODO Resolve version
for ( Iterator i = plugins.iterator(); i.hasNext(); )
{
Artifact artifact = (Artifact) i.next();
@ -349,6 +348,7 @@ public class ReleaseMojo
try
{
//TODO: Write in pom file
//TODO: Write only necessary informations
java.io.StringWriter writer = new java.io.StringWriter();
modelWriter.write( writer, model );
getLog().info( writer.toString() );