You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mikenereson <mi...@gmail.com> on 2008/08/08 20:24:42 UTC
maven-scm-plugin connectionUrl scm:svn:file:///
I am trying to use the SCM plugin to commit a file back to SVN after the
build is complete. The build takes place on our CI server, which causes a
buildnumber to increment, which we need stored in svn.
So while our SVN repo is remote to my development box, it is actually local
to the CI server (svn and CI on the same box)
For me to hitup svn, I have a username and password and use svn+ssh, but for
a commit from the same box, we have the scm connection url set to scm:file.
Everything goes well until the commit after the build where we are getting
[INFO] [scm:checkin]
[INFO] Executing: svn --username tomcat --password ***** --non-interactive
commit --file /tmp/maven-scm-1772422631.commit
[INFO] Working directory:
/usr/local/.../hudson/jobs/projectname/workspace/projectname
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: Commit failed (details follow):
svn: Can't create directory
'/usr/local/.../svnrepos/projectname/db/transactions/205-1.txn': Permission
denied
I can scm:update, scm:changelog, or whatever else I want, but I can't
checkin because of this permission denied.
My configuration is
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.0-rc1</version>
<configuration>
<connectionType>connection</connectionType>
<includes>buildNumber.properies</includes>
<message>
automated build, incremented buildnumber
</message>
<username>myusername</username>
<password>mypassword</password>
<connectionUrl>
scm:svn:file:///usr/local/.../svnrepos/project
</connectionUrl>
</configuration>
<executions>
<execution>
<id>checking_incremented_buildnumber</id>
<phase>post-integration-test</phase>
<goals>
<goal>checkin</goal>
</goals>
</execution>
</executions>
</plugin>
My question is: is the username and password ignored when the connection is
scm:file ?? Another question I suppose is does the error that is occurring
look like its a result of a username and password being invalid or not
supplied?
Thanks.
--
View this message in context: http://n2.nabble.com/maven-scm-plugin-connectionUrl-scm%3Asvn%3Afile%3A----tp681339p681339.html
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: maven-scm-plugin connectionUrl scm:svn:file:///
Posted by Brett Porter <br...@gmail.com>.
I don't think SVN is able to use the username and password for
filesystem changes since that won't change the active system user. You
should have to run the command as a user that has permission to write
to the file repository, or use a different front end like SVN.
I don't think this is related to the Maven plugins at all, or that
there is anything they can do to help, sorry.
Cheers,
Brett
2008/8/9 mikenereson <mi...@gmail.com>:
>
> I am trying to use the SCM plugin to commit a file back to SVN after the
> build is complete. The build takes place on our CI server, which causes a
> buildnumber to increment, which we need stored in svn.
>
> So while our SVN repo is remote to my development box, it is actually local
> to the CI server (svn and CI on the same box)
>
> For me to hitup svn, I have a username and password and use svn+ssh, but for
> a commit from the same box, we have the scm connection url set to scm:file.
> Everything goes well until the commit after the build where we are getting
>
> [INFO] [scm:checkin]
> [INFO] Executing: svn --username tomcat --password ***** --non-interactive
> commit --file /tmp/maven-scm-1772422631.commit
> [INFO] Working directory:
> /usr/local/.../hudson/jobs/projectname/workspace/projectname
> [ERROR] Provider message:
> [ERROR] The svn command failed.
> [ERROR] Command output:
> [ERROR] svn: Commit failed (details follow):
> svn: Can't create directory
> '/usr/local/.../svnrepos/projectname/db/transactions/205-1.txn': Permission
> denied
>
> I can scm:update, scm:changelog, or whatever else I want, but I can't
> checkin because of this permission denied.
>
> My configuration is
>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-plugin</artifactId>
> <version>1.0-rc1</version>
> <configuration>
> <connectionType>connection</connectionType>
> <includes>buildNumber.properies</includes>
> <message>
> automated build, incremented buildnumber
> </message>
> <username>myusername</username>
> <password>mypassword</password>
> <connectionUrl>
> scm:svn:file:///usr/local/.../svnrepos/project
> </connectionUrl>
> </configuration>
> <executions>
> <execution>
> <id>checking_incremented_buildnumber</id>
> <phase>post-integration-test</phase>
> <goals>
> <goal>checkin</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
>
> My question is: is the username and password ignored when the connection is
> scm:file ?? Another question I suppose is does the error that is occurring
> look like its a result of a username and password being invalid or not
> supplied?
>
> Thanks.
> --
> View this message in context: http://n2.nabble.com/maven-scm-plugin-connectionUrl-scm%3Asvn%3Afile%3A----tp681339p681339.html
> 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
>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org