mirror of https://github.com/apache/maven.git
o removing debug and adding a note
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e52be1da9a
commit
934763d0ad
|
@ -43,7 +43,7 @@
|
|||
<dependency>
|
||||
<groupId>plexus</groupId>
|
||||
<artifactId>plexus-input-handler</artifactId>
|
||||
<version>1.0-alpha-1-SNAPSHOT</version>
|
||||
<version>1.0-alpha-2-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -325,7 +325,7 @@ public class PrepareReleaseMojo
|
|||
|
||||
transformer.transformNodes();
|
||||
|
||||
transformer.write();
|
||||
transformer.write();
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
|
@ -337,7 +337,8 @@ public class PrepareReleaseMojo
|
|||
throws MojoExecutionException
|
||||
{
|
||||
// TODO: we will need to incorporate versioning strategies here because it is unlikely
|
||||
// that everyone will be able to agree on a standard.
|
||||
// that everyone will be able to agree on a standard. This is extremely limited right
|
||||
// now and really only works for the way maven is versioned.
|
||||
|
||||
// releaseVersion = 1.0-beta-4
|
||||
// snapshotVersion = 1.0-beta-5-SNAPSHOT
|
||||
|
|
|
@ -64,14 +64,10 @@ public class VersionTransformer
|
|||
|
||||
if ( version != null )
|
||||
{
|
||||
System.out.println( ">> We have a version element and we are changing it to " + getUpdatedModel().getVersion() );
|
||||
|
||||
version.setText( getUpdatedModel().getVersion() );
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println( ">> We are adding a version element and we are setting it to " + getUpdatedModel().getVersion() );
|
||||
|
||||
project.addElement( "version" ).addText( getUpdatedModel().getVersion() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue