apachemaven-2cvsversion-controlcontinuum

Configure continuum 1.2.3 with maven2 project; "Username isn't defined."


I use continuum 1.2.3 to build maven projects. On a fresh continuum installation, I added a pom by upload. I try to build, 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?

Thanks


Solution

  • I'm guessing the SCM provider couldn't find your credentials so failed. If you run the build with -X switch it should give more details of the failure reason.

    Update: from the format for CVS SCM URLs, 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 a : in the path, you should use | as a separator, perhaps on Continuum there is some other processing interfering and using | will resolve it, e.g.

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

    Assuming that is the cause, you don't want to include your SCM credentials in published files. You can configure Maven to use settings for many of the providers. See this answer for more details.