ContinuumProjectBuildingResult result = null;
// TODO: remove this part once uploading of an m2 project with modules is supported ( CONTINUUM-1098 )
if ( checkProtocol == false )
{
MavenXpp3Reader m2pomReader = new MavenXpp3Reader();
try
{
String filePath = pomUrl;
if ( !filePath.startsWith( FILE_SCHEME + "/" ) && filePath.startsWith( FILE_SCHEME ) )
{
//Little hack for linux (CONTINUUM-1169)
filePath = StringUtils.replace( filePath, FILE_SCHEME, FILE_SCHEME + "/" );
}
if ( filePath.startsWith( FILE_SCHEME ) )
{
filePath = filePath.substring( FILE_SCHEME.length() );
}
Model model = m2pomReader.read( new FileReader( filePath ) );
List modules = model.getModules();
if ( modules != null && modules.size() != 0 )
{