- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for toArtifact (0.05 seconds)
-
impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java
return (string == null || string.isEmpty()) ? null : string; } public static org.apache.maven.artifact.Artifact toArtifact(Dependency dependency) { if (dependency == null) { return null; } org.apache.maven.artifact.Artifact result = toArtifact(dependency.getArtifact()); result.setScope(dependency.getScope()); result.setOptional(dependency.isOptional());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 04 18:33:16 GMT 2025 - 15.8K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/RepositoryUtilsTest.java
class RepositoryUtilsTest { @Test void testToArtifactMethodsReturnNullWhenInputParameterIsNull() { assertNull(RepositoryUtils.toArtifact((Dependency) null)); assertNull(RepositoryUtils.toArtifact((Artifact) null)); assertNull(RepositoryUtils.toArtifact((org.apache.maven.artifact.Artifact) null)); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Nov 28 09:44:37 GMT 2025 - 1.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
this.repoSystem = repoSystem; this.dependenciesValidators = dependenciesValidators; } private Artifact toArtifact(Plugin plugin, RepositorySystemSession session) { return new DefaultArtifact( plugin.getGroupId(), plugin.getArtifactId(), null, "jar",Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 15:32:43 GMT 2025 - 12.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
} throw new IllegalArgumentException(message); } getMavenProject(project) .addAttachedArtifact( RepositoryUtils.toArtifact(getSession(project).toArtifact(artifact))); artifactManager.setPath(artifact, path); } @Nonnull @Override public Collection<SourceRoot> getSourceRoots(@Nonnull Project project) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Dec 17 16:17:01 GMT 2025 - 10.9K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java
throws ProjectBuildingException { org.eclipse.aether.artifact.Artifact pomArtifact = RepositoryUtils.toArtifact(artifact); pomArtifact = ArtifactDescriptorUtils.toPomArtifact(pomArtifact); boolean localProject; try {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 17:20:31 GMT 2025 - 51.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
return new ArrayList<>(RepositoryUtils.toArtifacts(pluginArtifacts)); } private List<Artifact> toMavenArtifacts(DependencyResult dependencyResult) { return dependencyResult.getDependencyNodeResults().stream() .filter(n -> n.getArtifact().getPath() != null) .map(n -> RepositoryUtils.toArtifact(n.getDependency())) .toList(); }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 09 16:35:21 GMT 2025 - 46.4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
Model model; if (workspace instanceof MavenWorkspaceReader mavenWorkspaceReader) { model = mavenWorkspaceReader.findModel(RepositoryUtils.toArtifact(artifact)); } else { model = null; } if (model != null) { pomArtifact = artifact; dependencies = model.getDependencies();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 25 12:03:50 GMT 2025 - 30.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
// attached artifacts project.getAttachedArtifacts().stream()); return artifacts.map(RepositoryUtils::toArtifact); } private boolean isRegularFile(Artifact artifact) { return artifact.getFile() != null && artifact.getFile().isFile(); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K bytes - Click Count (0)