[ https://jira.codehaus.org/browse/SCM-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=341836#comment-341836 ]
Matteo Turra commented on SCM-376: ---------------------------------- I get the same 'Username isn't defined' with | as separator or : Usually I don't specify username for scm connection because it changes depending who did the checkout and run mvn commands. I used ${user.name} property to get the current username from shell (ie: ${user.name}@cvs.mycompany.com) I don't know why in another project I didn't put this property and it works! > 'Username isn't defined.' when generating SCM report if CVS port number is > specified in SCM URL > ----------------------------------------------------------------------------------------------- > > Key: SCM-376 > URL: https://jira.codehaus.org/browse/SCM-376 > Project: Maven SCM > Issue Type: Bug > Components: maven-scm-provider-cvs, maven-scm-site > Affects Versions: 1.0 > Reporter: Geert Pante > Priority: Minor > > I have an CVS connection URL defined as follows: > scm:cvs:pserver:contin...@gnllx002.ebit.be:2401:/data01/cvsroot_bkh:VCG_BKH/uBaseBkh > When I try mvn site, the stage 'Generating "Source Repository" report.' fails > as shown below. > If I remove the :2401, it works OK. > [INFO] Generating "Source Repository" report. > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Username isn't defined. > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.IllegalArgumentException: Username isn't defined. > at > org.apache.maven.scm.provider.cvslib.repository.CvsScmProviderRepository.getCvsRootForCvsPass(CvsScmProviderRepository.java:105) > at > org.apache.maven.scm.provider.cvslib.repository.CvsScmProviderRepository.getCvsRoot(CvsScmProviderRepository.java:73) > at > org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.developerAccessCVS(ScmReport.java:479) > at > org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.renderDeveloperAccessSection(ScmReport.java:323) > at > org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.renderBody(ScmReport.java:186) > at > org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65) > at > org.apache.maven.report.projectinfo.ScmReport.executeReport(ScmReport.java:87) > at > org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101) > at > org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139) > at > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269) -- This message was sent by Atlassian JIRA (v6.1.6#6162)