in src/main/java/org/apache/maven/shared/project/utils/ScmUtils.java [45:70]
public static String resolveScmConnection( MavenProject project )
{
String scmConnection = getScmConnection( project.getModel() );
if ( scmConnection == null )
{
// prevent null-value
scmConnection = defaultString( getScmConnection( project ) );
if ( !ProjectUtils.isRootProject( project ) )
{
Map<String, String> modules = ProjectUtils.getAllModules( project.getParent() );
for ( String module : modules.keySet() )
{
if ( new File( project.getParent().getBasedir(), module ).equals( project.getFile() ) )
{
return scmConnection + '/' + module;
}
}
// project is not a module of its parent, so use project's directoryname
scmConnection += '/' + project.getFile().getParentFile().getName();
}
}
return scmConnection;
}