Hi, Personnaly I use (with last snapshot) script like this mvn -DtagBase=http://ip:port/path \ -Dusername=$1 -Dpassword=$2 \ -Dmaven.test.skip=true -Dgoals=deploy \ -Darguments="-Dmaven.test.skip=true" \ -DpreparationGoals="clean install" \ -DconnectionUrl=scm:svn:http://ip:port/pathtotrunk \ release:prepare release:perform
And works like a charm. - Olivier -----Message d'origine----- De : Julian Wood [mailto:[EMAIL PROTECTED] Envoyé : jeudi 11 mai 2006 18:57 À : Maven Users List Objet : Re: [m2] release:prepare - subversion problem Have you tried scm:svn:http://myhost/myrepo/trunk in your scm elements? Note the http. More formats are listed here, though yours should work: http://maven.apache.org/scm/subversion.html Presumably you've tried doing the same thing on the CL with svn? Maven actually does a copy from the trunk to the tags, after updating the pom to your release version, followed by another update of the pom in the trunk to create your next dev. version. There might be some more hints in some docs I wrote on the release process. http://apollo.ucalgary.ca/tlcprojectswiki/index.php/Public/ Project_Versioning_-_Best_Practices J On 11-May-06, at 8:15 AM, Jos van der Heiden wrote: > I'm having a problem with release:prepare. > > I'm using Maven 2.0.4 and subversion 1.3.0 > My repository looks like: > > myrepo/ > /trunk > | pom.xml > | src/ > | . > /tags > > When maven tries to create a tag, it gets an error back from > subversion: > svn: Source url 'svn://myhost/myrepo/trunk' is from different > repository > (I can't find out what this means from the subversion documentation > either). > I have set up the pom like this: > > <?xml version="1.0" encoding="UTF-8"?><project> > <modelVersion>4.0.0</modelVersion> > ... > <scm> > <connection>scm:svn:svn://myhost/myrepo/trunk</connection> > <developerConnection>scm:svn:svn://myhost/myrepo/trunk</ > developerConnection> > </scm> > <build> > <plugins> > <plugin> > <artifactId>maven-release-plugin</artifactId> > <configuration> > <tagBase>svn:// myhost/myrepo/tags</tagBase> > </configuration> > </plugin> > </plugins> > </build> > </project> > > Any ideas what is going on here? -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ********************************************************************** Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
