You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by javijava <we...@gmail.com> on 2007/07/03 11:47:28 UTC

problem in release:prepare

Hi ,

when I try to do a release on svn working copy I have this mesage:

[INFO] [release:prepare]
[INFO] Resuming release from phase 'scm-tag'
[INFO] Tagging release with the label autentiaNegocio-1.0...
 [INFO] Executing: svn --password ***** --non-interactive copy --file
C:\DOCUME~1
\9jfernad\CONFIG~1\Temp\maven-scm-2106281674.commit .
svn://localhost:80/svn/pro
va/repo/tag/autentiaNegocio-1.0
[INFO] Working directory: C:\SYSTEM INTEGRATION\WORKSPACE\autentia2
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly


this is my SCM POM configuration:

<scm>
       
<connection>scm:svn:http://localhost:80/svn/prova/repo/autentia</connection>
           
<developerConnection>scm:svn:http://localhost:80/svn/prova/repo/autentia</developerConnection>
        <url>http://localhost:80/svn/prova/repo/autentia</url>
    </scm>

Someone knows what's wrong??
Thanks in advance!!
-- 
View this message in context: http://www.nabble.com/problem-in-release%3Aprepare-tf4017258s177.html#a11409067
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem in release:prepare

Posted by Steven Rowe <sa...@syr.edu>.
Hi Javier,

Specify <tagBase>http://server/autentia/tags</tagBase> in the
<configuration> for maven-release-plugin, and make sure that this
directory exists in the repository - Subversion refuses to make a tag in
a directory which is not already in the repository.

Steve

javijava wrote:
> Thanks to reply Andy,
> 
>  I quit all the references to repositorys at the POm file except the SCM, I
> include "/trunk"
> in the scm:svn:http://  connection string, but i have the same error!! :(
> 
> Maven try to tag release with  the label
> svn://localhost:80/svn/autentia/trunk/autentia-1.0
> 
> 
> More ideas Andrew???
> 
> Javier F.

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


Re: No more problem in release:prepare

Posted by javijava <we...@gmail.com>.


add a trailing slash perhaps?

Thanks 4 all to help me!!

i can do the release now.

In the POM file 
I only have in the <scm> the dev connexion
<developerConnection>scm:svn:svn://localhost:80/svn/prova/repo/autentia/trunk</developerConnection>

An I specify the tag base there:

 <build>
        <plugins>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                    <configuration>
                    
<tagBase>http://localhost/svn/prova/repo/autentia/tags</tagBase>
                    	<username>xavi</username>
                        <password>svn</password>
                    </configuration>
            </plugin>
        </plugins>
      
    </build>

Well, now i must investigate how to do it  automatic  with continuum

Javier
-- 
View this message in context: http://www.nabble.com/problem-in-release%3Aprepare-tf4017258s177.html#a11429196
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem in release:prepare

Posted by Andrew Williams <an...@handyande.co.uk>.
add a trailing slash perhaps?

On 3 Jul 2007, at 12:36, javijava wrote:

>
> Thanks to reply Andy,
>
>  I quit all the references to repositorys at the POm file except  
> the SCM, I
> include "/trunk"
> in the scm:svn:http://  connection string, but i have the same  
> error!! :(
>
> Maven try to tag release with  the label
> svn://localhost:80/svn/autentia/trunkautentia-1.0
>
>
> More ideas Andrew???
>
> Javier F.
>
>
>
> -- 
> View this message in context: http://www.nabble.com/problem-in- 
> release%3Aprepare-tf4017258s177.html#a11410367
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


Re: problem in release:prepare

Posted by javijava <we...@gmail.com>.
Thanks to reply Andy,

 I quit all the references to repositorys at the POm file except the SCM, I
include "/trunk"
in the scm:svn:http://  connection string, but i have the same error!! :(

Maven try to tag release with  the label
svn://localhost:80/svn/autentia/trunk/autentia-1.0


More ideas Andrew???

Javier F.



-- 
View this message in context: http://www.nabble.com/problem-in-release%3Aprepare-tf4017258s177.html#a11410367
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem in release:prepare

Posted by javijava <we...@gmail.com>.
Thanks to reply Andy,

 I quit all the references to repositorys at the POm file except the SCM, I
include "/trunk"
in the scm:svn:http://  connection string, but i have the same error!! :(

Maven try to tag release with  the label
svn://localhost:80/svn/autentia/trunkautentia-1.0


More ideas Andrew???

Javier F.



-- 
View this message in context: http://www.nabble.com/problem-in-release%3Aprepare-tf4017258s177.html#a11410367
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem in release:prepare

Posted by Andrew Williams <an...@handyande.co.uk>.
Assuming that you intend to work from trunk (which you do ;) ) then  
you should include "/trunk" on the end of your scm connection string.  
There will be no need for further configuration with tagbase etc, as  
when you do things in the standard manner maven can figure the rest  
out for you.

Andy

On 3 Jul 2007, at 11:37, javijava wrote:

>
> Sorry, if this is very,very basic .....
>
> For example: If i have a project called 'autentia':
>
> The directories must be:
>
> server/autentia/trunk
> server/autentia/branches
> server/autentia/tags
>
>
> well......
>
> now, how must be the POM file.. something like this: ???
>
>
>  <scm><connection>scm:svn:http://server/autentia</connection>
>
> <developerConnection>scm:svn:http://server/autentia</ 
> developerConnection>
>         <url>http://server/autentia</url>
>     </scm>
>
>
>
>     <repositories>
>                <repository>
>             <id>repo</id>
>             <name>repo download</name>
>             <url>http://server/autentia/trunk</url>
>         </repository>
>   </repositories>
>
> <distributionManagement>
>
>
>         <repository>
>             <id>repo</id>
>             <name>repo upload</name>
>            <url>scp://lserver/autentia/trunk</url>
>         </repository>
>
>        <snapshotRepository>
>             <id>srepo</id>
>             <name>repositori up</name>
>             <url>scp://server/autentia/tags</url>
>         </snapshotRepository>
>
> </distributionManagement>
>
> ¿¿¿¿¿???
>
> Many thanks for the answers ,i need it.
>
> Javier
>
>
> -- 
> View this message in context: http://www.nabble.com/problem-in- 
> release%3Aprepare-tf4017258s177.html#a11409714
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


Re: problem in release:prepare

Posted by javijava <we...@gmail.com>.
Sorry, if this is very,very basic .....

For example: If i have a project called 'autentia':

The directories must be:

server/autentia/trunk
server/autentia/branches
server/autentia/tags


well......

now, how must be the POM file.. something like this: ???


 <scm><connection>scm:svn:http://server/autentia</connection>
       
<developerConnection>scm:svn:http://server/autentia</developerConnection>
        <url>http://server/autentia</url>
    </scm>



    <repositories>
               <repository>
            <id>repo</id>
            <name>repo download</name>
            <url>http://server/autentia/trunk</url>
        </repository>
  </repositories>

<distributionManagement>
    
        
        <repository>
            <id>repo</id>
            <name>repo upload</name>
           <url>scp://lserver/autentia/trunk</url>
        </repository>

       <snapshotRepository>
            <id>srepo</id>
            <name>repositori up</name>
            <url>scp://server/autentia/tags</url>
        </snapshotRepository>  

</distributionManagement>

¿¿¿¿¿???

Many thanks for the answers ,i need it.

Javier


-- 
View this message in context: http://www.nabble.com/problem-in-release%3Aprepare-tf4017258s177.html#a11409714
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem in release:prepare

Posted by javijava <we...@gmail.com>.
Hi Emmanuel,

 Sure, I don't know the standard structure because i'm new wiyh  SVN. Can
you explain me in 3 lines 
how to use  better the svn directories?

If I have a server with a project called 'autentia' 4 example.

how will be my repositori directories?
in the POM file Which directory must be mentioned in the SCM <connection> ?
and in the other tags like  <repository> ,  <snapshotRepository> in
<distributionManagement>
or <repository> in    <repositories> ???

Thanks a lot 4 all!!!!


Javier F.
-- 
View this message in context: http://www.nabble.com/problem-in-release%3Aprepare-tf4017258s177.html#a11409364
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem in release:prepare

Posted by Emmanuel Venisse <em...@venisse.net>.
It seems that you don't use the standard svn directory structure (branches/tags/trunk), so you should define the tagBase parameter on the release plugin.

Emmanuel

javijava a écrit :
> Hi ,
> 
> when I try to do a release on svn working copy I have this mesage:
> 
> [INFO] [release:prepare]
> [INFO] Resuming release from phase 'scm-tag'
> [INFO] Tagging release with the label autentiaNegocio-1.0...
>  [INFO] Executing: svn --password ***** --non-interactive copy --file
> C:\DOCUME~1
> \9jfernad\CONFIG~1\Temp\maven-scm-2106281674.commit .
> svn://localhost:80/svn/pro
> va/repo/tag/autentiaNegocio-1.0
> [INFO] Working directory: C:\SYSTEM INTEGRATION\WORKSPACE\autentia2
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to tag SCM
> Provider message:
> The svn tag command failed.
> Command output:
> svn: Connection closed unexpectedly
> 
> 
> this is my SCM POM configuration:
> 
> <scm>
>        
> <connection>scm:svn:http://localhost:80/svn/prova/repo/autentia</connection>
>            
> <developerConnection>scm:svn:http://localhost:80/svn/prova/repo/autentia</developerConnection>
>         <url>http://localhost:80/svn/prova/repo/autentia</url>
>     </scm>
> 
> Someone knows what's wrong??
> Thanks in advance!!


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