in src/main/java/org/apache/maven/plugin/changelog/ChangeLogReport.java [1038:1071]
protected String getConnection()
throws MavenReportException
{
if ( this.connection != null )
{
return connection;
}
if ( project.getScm() == null )
{
throw new MavenReportException( "SCM Connection is not set." );
}
String scmConnection = project.getScm().getConnection();
if ( ( scmConnection != null && !scmConnection.isEmpty() )
&& "connection".equals( connectionType.toLowerCase() ) )
{
connection = scmConnection;
}
String scmDeveloper = project.getScm().getDeveloperConnection();
if ( ( scmDeveloper != null && !scmDeveloper.isEmpty() )
&& "developerconnection".equals( connectionType.toLowerCase() ) )
{
connection = scmDeveloper;
}
if ( connection == null || connection.isEmpty() )
{
throw new MavenReportException( "SCM Connection is not set." );
}
return connection;
}