- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for toArtifact (0.08 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 Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 04 18:33:16 GMT 2025 - 15.8K 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 Apr 05 03:35:12 GMT 2026 - 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/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 Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java
return delegate.pathOf(RepositoryUtils.toArtifact(artifact.setVersion(artifact.getBaseVersion()))); } return delegate.pathOf(RepositoryUtils.toArtifact(artifact)); } @Override public String getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) { return delegate.pathOf(RepositoryUtils.toArtifact(artifact)); } @Override
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 13.1K 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 Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 25 12:03:50 GMT 2025 - 30.4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
ArtifactResult result; try { ArtifactRequest artifactRequest = new ArtifactRequest(); artifactRequest.setArtifact(RepositoryUtils.toArtifact(artifact)); artifactRequest.setRepositories(RepositoryUtils.toRepos(remoteRepositories)); // Maven 2.x quirk: an artifact always points at the local repo, regardless whether resolved or notCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 25K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java
Set<Artifact> artifacts = new LinkedHashSet<>(); if (result.getDependencyGraph() != null && !result.getDependencyGraph().getChildren().isEmpty()) { RepositoryUtils.toArtifacts( artifacts, result.getDependencyGraph().getChildren(), Collections.singletonList(project.getArtifact().getId()), collectionFilter);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 15.6K bytes - Click Count (0)