Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for toArtifact (0.18 sec)

  1. maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            return (string == null || string.isEmpty()) ? null : string;
        }
    
        private 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());
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 16K bytes
    - Viewed (0)
  2. 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",
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 10K bytes
    - Viewed (0)
  3. 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));
        }
    
        public String getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) {
            return delegate.pathOf(RepositoryUtils.toArtifact(artifact));
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

            }
            return dep;
        }
    
        @Override
        public List<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<Artifact> artifacts) {
            return artifacts == null ? null : map(artifacts, this::toArtifact);
        }
    
        @Override
        public org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact) {
            Path path = getService(ArtifactManager.class).getPath(artifact).orElse(null);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

        @Override
        public List<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<Artifact> artifacts) {
            return artifacts == null ? null : map(artifacts, this::toArtifact);
        }
    
        @Override
        public org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact) {
            File file = getService(ArtifactManager.class)
                    .getPath(artifact)
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                org.eclipse.aether.artifact.Artifact artifact =
                        pluginDependenciesResolver.resolve(plugin, repositories, session);
    
                Artifact pluginArtifact = RepositoryUtils.toArtifact(artifact);
    
                PluginDescriptor descriptor = extractPluginDescriptor(pluginArtifact, plugin);
    
                boolean isBlankVersion = descriptor.getRequiredMavenVersion() == null
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java

            pd.setArtifacts(Collections.singletonList(artifact));
            DefaultDependencyNode node = new DefaultDependencyNode(
                    new org.eclipse.aether.graph.Dependency(RepositoryUtils.toArtifact(artifact), "compile"));
            pd.setDependencyNode(node);
    
            MojoDescriptor md = new MojoDescriptor();
            md.setGoal("my-goal");
            md.setPluginDescriptor(pd);
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  8. 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 not
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 24.8K bytes
    - Viewed (0)
  9. 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();
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            Model model;
            if (workspace instanceof MavenWorkspaceReader) {
                model = ((MavenWorkspaceReader) workspace).findModel(RepositoryUtils.toArtifact(artifact));
            } else {
                model = null;
            }
    
            if (model != null) {
                pomArtifact = artifact;
                dependencies = model.getDependencies();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 30.3K bytes
    - Viewed (0)
Back to top