You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Jiang <it...@gmail.com> on 2011/04/07 21:41:19 UTC

Unable to tag SCM

I have the following config for a project "MYPRJ":

<scm>
    <connection>scm:svn:http://svnserver/server/tools/MYPRJ</connection>
    <developerConnection>scm:svn:http://svnserver/server/tools/MYPRJ
</developerConnection>
    <url>scm:svn:http://svnserver/server/tools/MYPRJ</url>
  </scm>

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <tagBase>scm:svn:http://svnserver/server/tags</tagBase>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <preparationGoals>clean install</preparationGoals>
        </configuration>
      </plugin>

<distributionManagement>
    <snapshotRepository>
      <id>snapshots</id>
      <name>Internal Snapshots</name>
      <url>http://servername/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>releases</id>
      <name>Internal Releases</name>
      <url>http://servername/content/repositories/releases</url>
    </repository>
  </distributionManagement>

Run "mvn release:prepare" failed as follows. What is wrong w/ the settings
or something is missing in the config? Thanks!

...
INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESSFUL
...
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /home/tester/dev/fromsvn/tools/MYPRJ && svn
--non-interactive commit --file
/var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-475892236.commit
--targets
/var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-5301348150995180-targets
[INFO] Working directory: /home/tester/dev/fromsvn/tools/MYPRJ
[INFO] Tagging release with the label MYPRJ-1.0...
[INFO] Executing: /bin/sh -c cd /home/tester/dev/fromsvn/tools/MYPRJ && svn
--non-interactive copy --file
/var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-1772669516.commit
--revision 485 http://svnserver/server/tools/MYPRJ scm:svn:
http://svnserver/server/tags/MYPRJ-1.0
[INFO] Working directory: /home/tester/dev/fromsvn/tools/MYPRJ
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Local, non-commit operations do not take a log message or revision
properties

--
mJ

Re: Unable to tag SCM

Posted by Michael Jiang <it...@gmail.com>.
Uh, good catch. Thanks Olivier!

On Thu, Apr 7, 2011 at 12:47 PM, Olivier Lamy <ol...@apache.org> wrote:

> replace
> <tagBase>scm:svn:http://svnserver/server/tags</tagBase>
> with
> <tagBase>http://svnserver/server/tags</tagBase>
>
> HTH,
> --
> Olivier
>
> 2011/4/7 Michael Jiang <it...@gmail.com>:
> > I have the following config for a project "MYPRJ":
> >
> > <scm>
> >    <connection>scm:svn:http://svnserver/server/tools/MYPRJ</connection>
> >    <developerConnection>scm:svn:http://svnserver/server/tools/MYPRJ
> > </developerConnection>
> >    <url>scm:svn:http://svnserver/server/tools/MYPRJ</url>
> >  </scm>
> >
> > <plugin>
> >        <groupId>org.apache.maven.plugins</groupId>
> >        <artifactId>maven-release-plugin</artifactId>
> >        <version>2.1</version>
> >        <configuration>
> >          <tagBase>scm:svn:http://svnserver/server/tags</tagBase>
> >          <autoVersionSubmodules>true</autoVersionSubmodules>
> >          <preparationGoals>clean install</preparationGoals>
> >        </configuration>
> >      </plugin>
> >
> > <distributionManagement>
> >    <snapshotRepository>
> >      <id>snapshots</id>
> >      <name>Internal Snapshots</name>
> >      <url>http://servername/content/repositories/snapshots</url>
> >    </snapshotRepository>
> >    <repository>
> >      <id>releases</id>
> >      <name>Internal Releases</name>
> >      <url>http://servername/content/repositories/releases</url>
> >    </repository>
> >  </distributionManagement>
> >
> > Run "mvn release:prepare" failed as follows. What is wrong w/ the
> settings
> > or something is missing in the config? Thanks!
> >
> > ...
> > INFO] [INFO]
> > ------------------------------------------------------------------------
> > [INFO] [INFO] BUILD SUCCESSFUL
> > ...
> > [INFO] [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Checking in modified POMs...
> > [INFO] Executing: /bin/sh -c cd /home/tester/dev/fromsvn/tools/MYPRJ &&
> svn
> > --non-interactive commit --file
> >
> /var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-475892236.commit
> > --targets
> >
> /var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-5301348150995180-targets
> > [INFO] Working directory: /home/tester/dev/fromsvn/tools/MYPRJ
> > [INFO] Tagging release with the label MYPRJ-1.0...
> > [INFO] Executing: /bin/sh -c cd /home/tester/dev/fromsvn/tools/MYPRJ &&
> svn
> > --non-interactive copy --file
> >
> /var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-1772669516.commit
> > --revision 485 http://svnserver/server/tools/MYPRJ scm:svn:
> > http://svnserver/server/tags/MYPRJ-1.0
> > [INFO] Working directory: /home/tester/dev/fromsvn/tools/MYPRJ
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Unable to tag SCM
> > Provider message:
> > The svn tag command failed.
> > Command output:
> > svn: Local, non-commit operations do not take a log message or revision
> > properties
> >
> > --
> > mJ
> >
>
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy
> http://www.linkedin.com/in/olamy
>

Re: Unable to tag SCM

Posted by Olivier Lamy <ol...@apache.org>.
replace
<tagBase>scm:svn:http://svnserver/server/tags</tagBase>
with
<tagBase>http://svnserver/server/tags</tagBase>

HTH,
--
Olivier

2011/4/7 Michael Jiang <it...@gmail.com>:
> I have the following config for a project "MYPRJ":
>
> <scm>
>    <connection>scm:svn:http://svnserver/server/tools/MYPRJ</connection>
>    <developerConnection>scm:svn:http://svnserver/server/tools/MYPRJ
> </developerConnection>
>    <url>scm:svn:http://svnserver/server/tools/MYPRJ</url>
>  </scm>
>
> <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-release-plugin</artifactId>
>        <version>2.1</version>
>        <configuration>
>          <tagBase>scm:svn:http://svnserver/server/tags</tagBase>
>          <autoVersionSubmodules>true</autoVersionSubmodules>
>          <preparationGoals>clean install</preparationGoals>
>        </configuration>
>      </plugin>
>
> <distributionManagement>
>    <snapshotRepository>
>      <id>snapshots</id>
>      <name>Internal Snapshots</name>
>      <url>http://servername/content/repositories/snapshots</url>
>    </snapshotRepository>
>    <repository>
>      <id>releases</id>
>      <name>Internal Releases</name>
>      <url>http://servername/content/repositories/releases</url>
>    </repository>
>  </distributionManagement>
>
> Run "mvn release:prepare" failed as follows. What is wrong w/ the settings
> or something is missing in the config? Thanks!
>
> ...
> INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] BUILD SUCCESSFUL
> ...
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] Checking in modified POMs...
> [INFO] Executing: /bin/sh -c cd /home/tester/dev/fromsvn/tools/MYPRJ && svn
> --non-interactive commit --file
> /var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-475892236.commit
> --targets
> /var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-5301348150995180-targets
> [INFO] Working directory: /home/tester/dev/fromsvn/tools/MYPRJ
> [INFO] Tagging release with the label MYPRJ-1.0...
> [INFO] Executing: /bin/sh -c cd /home/tester/dev/fromsvn/tools/MYPRJ && svn
> --non-interactive copy --file
> /var/folders/Og/OgjoLKN0GBOnx7wyii2V2E+++TI/-Tmp-/maven-scm-1772669516.commit
> --revision 485 http://svnserver/server/tools/MYPRJ scm:svn:
> http://svnserver/server/tags/MYPRJ-1.0
> [INFO] Working directory: /home/tester/dev/fromsvn/tools/MYPRJ
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to tag SCM
> Provider message:
> The svn tag command failed.
> Command output:
> svn: Local, non-commit operations do not take a log message or revision
> properties
>
> --
> mJ
>



-- 
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org