mirror of https://github.com/apache/maven.git
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:
parent
025d519b89
commit
bfad4bb462
|
@ -30,16 +30,5 @@
|
||||||
<artifactId>maven-scm-provider-svn</artifactId>
|
<artifactId>maven-scm-provider-svn</artifactId>
|
||||||
<version>1.0-alpha-1-SNAPSHOT</version>
|
<version>1.0-alpha-1-SNAPSHOT</version>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class ReleaseMojo
|
||||||
private void prepareRelease()
|
private void prepareRelease()
|
||||||
throws MojoExecutionException
|
throws MojoExecutionException
|
||||||
{
|
{
|
||||||
//checkStatus();
|
checkStatus();
|
||||||
|
|
||||||
checkDependencies();
|
checkDependencies();
|
||||||
|
|
||||||
|
@ -171,13 +171,13 @@ public class ReleaseMojo
|
||||||
|
|
||||||
//commit();
|
//commit();
|
||||||
|
|
||||||
//tag();
|
tag();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void performRelease()
|
private void performRelease()
|
||||||
throws MojoExecutionException
|
throws MojoExecutionException
|
||||||
{
|
{
|
||||||
//checkout();
|
checkout();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isSnapshot( String version )
|
private boolean isSnapshot( String version )
|
||||||
|
@ -208,7 +208,7 @@ public class ReleaseMojo
|
||||||
|
|
||||||
if ( isSnapshot( parentArtifact.getVersion() ) )
|
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();
|
currentProject = project.getParent();
|
||||||
|
@ -247,8 +247,8 @@ public class ReleaseMojo
|
||||||
message.append( artifact.getVersion() );
|
message.append( artifact.getVersion() );
|
||||||
message.append( "\n" );
|
message.append( "\n" );
|
||||||
}
|
}
|
||||||
// throw new MojoExecutionException( "Can't release project due to non released dependencies :\n" +
|
throw new MojoExecutionException( "Can't release project due to non released dependencies :\n" +
|
||||||
// message.toString() );
|
message.toString() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,7 +326,6 @@ public class ReleaseMojo
|
||||||
}
|
}
|
||||||
|
|
||||||
//Rewrite plugins version
|
//Rewrite plugins version
|
||||||
//TODO Resolve version
|
|
||||||
for ( Iterator i = plugins.iterator(); i.hasNext(); )
|
for ( Iterator i = plugins.iterator(); i.hasNext(); )
|
||||||
{
|
{
|
||||||
Artifact artifact = (Artifact) i.next();
|
Artifact artifact = (Artifact) i.next();
|
||||||
|
@ -349,6 +348,7 @@ public class ReleaseMojo
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//TODO: Write in pom file
|
//TODO: Write in pom file
|
||||||
|
//TODO: Write only necessary informations
|
||||||
java.io.StringWriter writer = new java.io.StringWriter();
|
java.io.StringWriter writer = new java.io.StringWriter();
|
||||||
modelWriter.write( writer, model );
|
modelWriter.write( writer, model );
|
||||||
getLog().info( writer.toString() );
|
getLog().info( writer.toString() );
|
||||||
|
|
Loading…
Reference in New Issue