public Path create( final Path projectRoot,
final String baseURL,
final POM pomModel ) {
org.uberfire.java.nio.file.Path pathToPOMXML = null;
try {
final Repository repository = new Repository();
repository.setId( "guvnor-m2-repo" );
repository.setName( "Guvnor M2 Repo" );
repository.setUrl( m2RepoService.getRepositoryURL( baseURL ) );
pomModel.addRepository( repository );
final org.uberfire.java.nio.file.Path nioRoot = Paths.convert( projectRoot );
pathToPOMXML = nioRoot.resolve( "pom.xml" );