Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for artifactMap (0.25 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java

            String key = ArtifactUtils.versionlessKey( groupId, artifactId );
    
            Map artifactMap = project.getArtifactMap();
    
            assertNotNull( artifactMap, "artifact-map should not be null." );
            assertEquals( 1, artifactMap.size(), "artifact-map should contain 1 element." );
    
            Artifact artifact = (Artifact) artifactMap.get( key );
    
            assertNotNull( artifact, "dependency artifact not found in map." );
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

         * @see #getArtifacts()
         */
        public Map<String, Artifact> getArtifactMap() {
            if (artifactMap == null) {
                artifactMap = ArtifactUtils.artifactMapByVersionlessId(getArtifacts());
            }
    
            return artifactMap;
        }
    
        public boolean equals(Object object) {
            if (this == object) {
                return true;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

                }
                return ret;
            }
    
            // ${project.artifactMap(g:a:v)}
            public void addArtifact(Artifact a) {
                artifactMap.put(a.getGroupId() + ":" + a.getArtifactId() + ":" + a.getClassifier(), a);
            }
    
            public Map<String, Artifact> getArtifactMap() {
                return artifactMap;
            }
    
            public void setDescription(String description) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            Map<String, Artifact> artifactMap = new LinkedHashMap<>();
    
            if (artifacts != null) {
                for (Artifact artifact : artifacts) {
                    artifactMap.put(versionlessKey(artifact), artifact);
                }
            }
    
            return artifactMap;
        }
    
        public static Artifact copyArtifactSafe(Artifact artifact) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultVersionResolverTest.java

            VersionRequest requestA = new VersionRequest();
            requestA.addRepository(newTestRepository());
    
            Artifact artifactA =
                    new DefaultArtifact("org.apache.maven.its", "dep-mng5324", "classifierA", "jar", "07.20.3-SNAPSHOT");
            requestA.setArtifact(artifactA);
    
            VersionResult resultA = versionResolver.resolveVersion(session, requestA);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java

                if (Files.isRegularFile(artifactPath)) {
                    try (JarFile artifactJar = new JarFile(artifactPath.toFile(), false)) {
                        ZipEntry pluginDescriptorEntry = artifactJar.getEntry(PLUGIN_DESCRIPTOR_LOCATION);
    
                        if (pluginDescriptorEntry != null) {
                            try (InputStream is = artifactJar.getInputStream(pluginDescriptorEntry)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top