Trygve, Are you sure? In this case maven-scm is not an option for us. After spending some days on maven-scm and implementing ScmProvider.listTask I really like this API and even plan to add CM-Synergy support, but we are going to use this API from servlets, thus it must be thread safe. You might know javaforge.com that is based on our software with hundreds of projects and thousands of users. Serializing the request is just not acceptable for us (for the users) because it is very probably that more than one user want to browse repositories.
Zsolt >-----Original Message----- >From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] >Sent: Tuesday, April 11, 2006 9:58 AM >To: [email protected] >Subject: Re: Is scm-maven thread safe? > >On Tue, 2006-04-11 at 07:38, Zsolt wrote: >> Hi, >> >> we plan to use scm-maven from tomcat. Are scm-maven and maven thread >safe? > >The short answer is: no. Maven SCM is not thread safe, most of Maven >*should* be, but there's no real guarantee for that. In particular the >plug-ins might not be thread safe. > >If you want to embed Maven SCM and/or Maven itself I would recommend that >you write a simple thread that takes commands from a servlet/jsp/web action >and builds stuff in a serial ordering. > >Continuum does this all over the place so you can take a look at how it >does the queuing and execution. > >-- >Trygve
