@Deprecated public static Set<Artifact> createArtifacts( ArtifactFactory artifactFactory, List<Dependency> dependencies, String inheritedScope, ArtifactFilter dependencyFilter, MavenProject project ) throws InvalidDependencyVersionException { Set<Artifact> artifacts = new LinkedHashSet<>(); for ( Dependency d : dependencies ) { Artifact dependencyArtifact; try { dependencyArtifact = createDependencyArtifact( artifactFactory, d, inheritedScope, dependencyFilter ); } catch ( InvalidVersionSpecificationException e ) { throw new InvalidDependencyVersionException( project.getId(), d, project.getFile(), e ); } if ( dependencyArtifact != null ) { artifacts.add( dependencyArtifact ); } } return artifacts; }
public InvalidDependencyVersionException( String projectId, Dependency dependency, File pomFile, InvalidVersionSpecificationException cause ) { super( projectId, formatLocationInPom( dependency ), dependency.getVersion(), pomFile, cause ); this.dependency = dependency; }
artifact.getDependencyConflictId() + "': " + e.getMessage(), e );
+ e.getMessage(), null, e );
throw new InvalidDependencyVersionException( "Unable to parse version '" + d.getVersion() + "' for dependency '" + d.getManagementKey() + "': " + e.getMessage(), e );
} catch (InvalidDependencyVersionException 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 MojoFailureException("Error getting transitive dependencies : " + e.getMessage());
throw new BuildException( "Invalid dependency version: " + e.getMessage(), e );
throw new MavenReportException( e.getMessage(), e );