Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for findNode (0.28 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataGraph.java

        }
    
        public void addNode(MetadataGraphNode node) {
            nodes.add(node);
        }
    
        /**
         * find a node by the GAV (metadata)
         *
         * @param md
         */
        public MetadataGraphNode findNode(MavenArtifactMetadata md) {
            for (MetadataGraphNode mgn : nodes) {
                if (mgn.metadata.equals(md)) {
                    return mgn;
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenWorkspaceReader.java

    /**
     * MavenWorkspaceReader
     *
     * @deprecated since 4.0.0, use {@code maven-api-impl} jar instead
     */
    @Deprecated(since = "4.0.0")
    public interface MavenWorkspaceReader extends WorkspaceReader {
    
        Model findModel(Artifact artifact);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/TestMavenWorkspaceReader.java

            return null;
        }
    
        @Override
        public List<String> findVersions(Artifact artifact) {
            return Collections.emptyList();
        }
    
        @Override
        public Model findModel(Artifact artifact) {
            if (GROUP_ID.equals(artifact.getGroupId())
                    && ARTIFACT_ID.equals(artifact.getArtifactId())
                    && VERSION.equals(artifact.getVersion())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            final WorkspaceReader workspace = repositorySession.getWorkspaceReader();
            Model model;
            if (workspace instanceof MavenWorkspaceReader) {
                model = ((MavenWorkspaceReader) workspace).findModel(RepositoryUtils.toArtifact(artifact));
            } else {
                model = null;
            }
    
            if (model != null) {
                pomArtifact = artifact;
                dependencies = model.getDependencies();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                final WorkspaceReader workspace = session.getWorkspaceReader();
                if (workspace instanceof MavenWorkspaceReader) {
                    model = ((MavenWorkspaceReader) workspace).findModel(pomArtifact);
                    if (model != null) {
                        return model;
                    }
                }
    
                try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    .map(MavenProject::getVersion)
                    .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::unmodifiableList));
        }
    
        @Override
        public Model findModel(Artifact artifact) {
            MavenProject project = getProject(artifact);
            return project == null ? null : project.getModel().getDelegate();
        }
    
        //
        // Implementation
        //
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top