CI checkout on floating tag, then using maven-scm-plugin to update pom.xml to latest?
Hello, I am trying to use Hudson to perform automated software releases based on a floating CVS tag. When developers move the floating tag on the sources, they indicate that the tagged code can go in a next build. Hudson then checks out the code and executes a release:prepare. Problem now is that the changes to pom.xml (done by the release plugin) can't be checked in since the CVS information indicates that the version retrieved is a sticky tag (although usually it is the latest version). To get around this, I want to use maven-scm-plugin (in the validate phase of my Maven run) to update pom.xml to the latest version. However, I tried several goals (update, checkout, export) but pom.xml remains the the version based on the tag. Can anyone tell me how to update pom.xml to the latest version coming from the branch configured in the connectionUrl/developerConnectionUrl info from the POM? Also, my experiments so far seem to indicate that includes/excludes configuration is ignored in the goals tried. Known bug? Ringo * Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents. Ce courriel et les annexes �ventuelles peuvent contenir des informations confidentielles et/ou prot�g�es par des droits de propri�t� intellectuelle. Ce message est adress� exclusivement � son (ses) destinataire(s). Toute utilisation du contenu de ce message (y compris la reproduction ou diffusion partielle ou compl�te sous toute forme) par une autre personne que le(s) destinataire(s) est formellement interdite. Si vous avez re�u ce message par erreur, veuillez pr�venir l'exp�diteur du message et en d�truire le contenu. *
Re: Using maven-scm-plugin
scm:changelog print the output on the command line and not to a file. Maybe the changelog plugin would be better for you: http://maven.apache.org/plugins/maven-changelog-plugin/ Emmanuel Vishal Pahwa a écrit : Hi We are using maven2.0.6 and SVN in our project. Now the requirement is we need to create a list of all the developers who have cheed-in the files in the SVN in a day. And this report will be generated each n every day by EOD. Now as it is given on apache site that maven-scm-plugin is used for the same purpose. So what I have done is created 1 separate project and the conent inside that is given below. And then run the project as : mvn scm:changelog . After this the build result that I could get is BuildSuccessful but there is no target directory where I could see the report. So could anyone please tell me what I am doing wrong. http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 com.bskyb.nop.foundation skyreport pom 1.0-SNAPSHOT skyreport http://maven.apache.org central MyCompany Central Repository http://10.210.17.131:/repository true true apache.snapshots http://people.apache.org/repo/m2-snapshot-repository/ false copy http://quebbemann.kicks-ass.net/maven2/repository/ apache http://repo1.maven.org/maven2/ Continuum http://localhost:8080/continuum/ mail [EMAIL PROTECTED] scm:svn:https://scm1.del.rs.sapient.com/svn/repos/sky_founda tion_and_news/sky_joint_fusion/trunk/Development/Code/javasource/ scm:svn:https://scm1.del.rs.sapient.com/svn/repos/s ky_foundation_and_news/sky_joint_fusion/trunk/Development/Code/javasourc e https://scm1.del.rs.sapient.com/svn/repos/sky_foundation_and_news/s ky_joint_fusion/trunk/Development/Code/javasource/ org.apache.maven.plugins maven-scm-plugin 1.0 org.apache.maven.plugins maven-scm-plugin 1.0 2007-10-29 2007-10-29 internal Internal Release Repository ${mvn2.repository}/[EMAIL PROTECTED] internal-snapshots Internal Snapshot Repository ${mvn2.repository}/[EMAIL PROTECTED] Regards Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using maven-scm-plugin
Hi We are using maven2.0.6 and SVN in our project. Now the requirement is we need to create a list of all the developers who have cheed-in the files in the SVN in a day. And this report will be generated each n every day by EOD. Now as it is given on apache site that maven-scm-plugin is used for the same purpose. So what I have done is created 1 separate project and the conent inside that is given below. And then run the project as : mvn scm:changelog . After this the build result that I could get is BuildSuccessful but there is no target directory where I could see the report. So could anyone please tell me what I am doing wrong. http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 com.bskyb.nop.foundation skyreport pom 1.0-SNAPSHOT skyreport http://maven.apache.org central MyCompany Central Repository http://10.210.17.131:/repository true true apache.snapshots http://people.apache.org/repo/m2-snapshot-repository/ false copy http://quebbemann.kicks-ass.net/maven2/repository/ apache http://repo1.maven.org/maven2/ Continuum http://localhost:8080/continuum/ mail [EMAIL PROTECTED] scm:svn:https://scm1.del.rs.sapient.com/svn/repos/sky_founda tion_and_news/sky_joint_fusion/trunk/Development/Code/javasource/ scm:svn:https://scm1.del.rs.sapient.com/svn/repos/s ky_foundation_and_news/sky_joint_fusion/trunk/Development/Code/javasourc e https://scm1.del.rs.sapient.com/svn/repos/sky_foundation_and_news/s ky_joint_fusion/trunk/Development/Code/javasource/ org.apache.maven.plugins maven-scm-plugin 1.0 org.apache.maven.plugins maven-scm-plugin 1.0 2007-10-29 2007-10-29 internal Internal Release Repository ${mvn2.repository}/[EMAIL PROTECTED] internal-snapshots Internal Snapshot Repository ${mvn2.repository}/[EMAIL PROTECTED] Regards Vishal
Re: m2 how to tag a build using maven scm plugin java api
http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java On 5/1/06, Gautham Pamu <[EMAIL PROTECTED]> wrote: Hi Dan, Could you tell me in which module of scm I can find the bootstrap source. I have complete maven plugin code extracted but I did not see bootstrap code. Thanks Gautham Pamu On 5/1/06, dan tran <[EMAIL PROTECTED]> wrote: > > yes you can, take a look at maven-scm-plugin to see how the api is used. > > Another quick way is to spin off a jvm to call maven-scm-plugin directy > using plexus-utils' cli interface. > see maven-scm-plugin's boostrap source. > > -D > > > > On 5/1/06, Gautham Pamu <[EMAIL PROTECTED]> wrote: > > > > Hi Everyone, > > > > I would like to tag a build frommy plugin. I noticed there is scm plugin > > which already has apis to tag a build. Can you tell me if it is > > possible to use this API from my plugin to tag a build. > > > > -- > > -Gautham Pamu > > > > > > -- -Gautham Pamu
Re: m2 how to tag a build using maven scm plugin java api
Hi Dan, Could you tell me in which module of scm I can find the bootstrap source. I have complete maven plugin code extracted but I did not see bootstrap code. Thanks Gautham Pamu On 5/1/06, dan tran <[EMAIL PROTECTED]> wrote: yes you can, take a look at maven-scm-plugin to see how the api is used. Another quick way is to spin off a jvm to call maven-scm-plugin directy using plexus-utils' cli interface. see maven-scm-plugin's boostrap source. -D On 5/1/06, Gautham Pamu <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > > I would like to tag a build frommy plugin. I noticed there is scm plugin > which already has apis to tag a build. Can you tell me if it is > possible to use this API from my plugin to tag a build. > > -- > -Gautham Pamu > > -- -Gautham Pamu
Re: m2 how to tag a build using maven scm plugin java api
yes you can, take a look at maven-scm-plugin to see how the api is used. Another quick way is to spin off a jvm to call maven-scm-plugin directy using plexus-utils' cli interface. see maven-scm-plugin's boostrap source. -D On 5/1/06, Gautham Pamu <[EMAIL PROTECTED]> wrote: Hi Everyone, I would like to tag a build frommy plugin. I noticed there is scm plugin which already has apis to tag a build. Can you tell me if it is possible to use this API from my plugin to tag a build. -- -Gautham Pamu
m2 how to tag a build using maven scm plugin java api
Hi Everyone, I would like to tag a build frommy plugin. I noticed there is scm plugin which already has apis to tag a build. Can you tell me if it is possible to use this API from my plugin to tag a build. -- -Gautham Pamu