Configure continuum 1.2.3 with maven2 project; "Username not defined."

I am using continuum 1.2.3 to create maven projects. On a new continual installation, I added the pom by uploading. I am trying to create and get the following error:

Exception:
Exception while executing SCM command.

      

My SCM url looks like this: (replaced domain name)

scm:cvs:pserver:cvs.example.com:/Projects:car/wheel/

      

Any idea what went wrong?

thank

+2


source to share


1 answer


I am assuming the SCM provider was unable to find your credentials, so it failed. If you run the build with a switch -X

, it should provide more details about the reason for the failure.

Update: from the format for the CVS SCM URL, the expected format for pserver is:

scm:cvs<delimiter>pserver<delimiter>[username[<delimiter>password]@]servername[<delimiter>port]<delimiter>path_to_repository<delimiter>module_name

      



If you have :

in the way you should use |

as a separator, maybe there is some other handling on Continuum getting in the way and using |

will solve it for example.

scm:cvs|pserver|[user]|[password]@cvs.example.com|/Projects|car/wheel/

      

Assuming this is the reason, you do not want to include your SCM credentials in the published files. You can configure Maven to use options for many vendors. See this answer for details .

+1


source







All Articles