public String getMessage() { return super.getMessage() + " at " + this.pomLocation; }
"Unable to parse the Maven built-in model: " + e.getMessage(), e );
private ProjectBuildingException transformError( ProjectBuildingException e ) { if ( e.getCause() instanceof ModelBuildingException ) { return new InvalidProjectModelException( e.getProjectId(), e.getMessage(), e.getPomFile() ); } return e; }
artifact.getDependencyConflictId() + "': " + e.getMessage(), e, artifact );
message += ": " + e.getMessage();
private MavenProject buildProjectFromArtifact( Artifact artifact ) throws MojoExecutionException { try { return projectBuilder.build( artifact, session.getProjectBuildingRequest() ).getProject(); } catch ( ProjectBuildingException e ) { throw new MojoExecutionException( e.getMessage(), e ); } }
private void fetchDependencyTo(boolean stopOnFailure, Artifact artifact, Set<Artifact> fetchTo, boolean skipBoot) throws MojoExecutionException { if (skipBoot) { if ("net.hasor".equalsIgnoreCase(artifact.getGroupId()) && "hasor-boot-starter".equalsIgnoreCase(artifact.getArtifactId())) { return; } } fetchTo.add(artifact); MavenProject project = null; try { project = projectBuilder.build(artifact, session.getProjectBuildingRequest()).getProject(); for (Artifact art : project.getArtifacts()) { fetchDependencyTo(stopOnFailure, art, fetchTo, skipBoot); } } catch (ProjectBuildingException e) { if (stopOnFailure) { getLog().error(e); throw new MojoExecutionException(e.getMessage(), e); } } } //
res = projectBuilder.build(evosuite, req); } catch (ProjectBuildingException e) { logger.error("Failed: "+e.getMessage(),e); return null;
+ artifact + ". Reason: " + e.getMessage(), e );
} catch (ProjectBuildingException e) { getLog().debug("Error Creating the pom project for artifact : " + artifact, e); throw new MojoFailureException("Error getting transitive dependencies : " + e.getMessage()); } catch (InvalidDependencyVersionException e) { getLog().debug("Error Creating the pom project for artifact : " + artifact, e);
logError( "ProjectBuildingException for " + artifact.toString() + ": " + e.getMessage(), e );
} catch (ProjectBuildingException e) { getLog().debug("Error Creating the pom project for artifact : " + artifact, e); throw new MojoFailureException("Error getting transitive dependencies : " + e.getMessage()); } catch (InvalidDependencyVersionException e) { getLog().debug("Error Creating the pom project for artifact : " + artifact, e);
throw new MavenRuntimeException( e.getMessage(), e );
log.info( "Could not build project for: " + artifact.getArtifactId() + ":" + e.getMessage(), e ); tableRow( getPluginRow( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), null ) );
newProject = result.getProject(); } catch (ProjectBuildingException exception) { getLog().error("Error(s) detected in the pom file: " + exception.getMessage()); if (initialBuild) { throw new MojoExecutionException("Invalid pom file, check log", exception);
log.info( "Could not build project for: " + plugin.getArtifactId() + ":" + e.getMessage(), e ); tableRow( getPluginRow( plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion(), null ) );
log.info( "Could not build project for " + plugin.getArtifactId() + ": " + e.getMessage(), e ); tableRow( getPluginRow( plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion(), null ) );
throw new BuildException( "Unable to initialize POM " + file.getName() + ": " + pbe.getMessage(), pbe );
"Error retrieving POM of module-dependency: " + depArtifact.getId() + "; Reason: " + e.getMessage() + "\n\nBuilding stub project instance." );
throw new MavenReportException( e.getMessage(), e );