Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for setExtension (0.06 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            assertEquals(3, artifacts.size()); // original jar + consumer pom + build pom
    
            assertTrue(artifacts.stream().anyMatch(a -> "pom".equals(a.getExtension()) && "".equals(a.getClassifier())));
            assertTrue(
                    artifacts.stream().anyMatch(a -> "pom".equals(a.getExtension()) && "build".equals(a.getClassifier())));
        }
    
        @Test
        void testDeployBuildPomDisabled() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java

            List<Artifact> mains = new ArrayList<>();
            for (Artifact artifact : artifacts) {
                if ("pom".equals(artifact.getExtension()) || artifact.getExtension().startsWith("pom.")) {
                    if (CONSUMER_POM_CLASSIFIER.equals(artifact.getClassifier())) {
                        consumers.add(artifact);
                    } else if ("".equals(artifact.getClassifier())) {
                        mains.add(artifact);
                    }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

                            isAny(relocation.target.getClassifier()) ? null : relocation.target.getClassifier(),
                            isAny(relocation.target.getExtension()) ? null : relocation.target.getExtension(),
                            isAny(relocation.target.getVersion()) ? null : relocation.target.getVersion(),
                            relocation.global ? "User global relocation" : "User project relocation");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

        }
    
        public static ArtifactHandler newHandler(Artifact artifact) {
            String type = artifact.getProperty(ArtifactProperties.TYPE, artifact.getExtension());
            return new DefaultArtifactHandler(
                    type,
                    artifact.getExtension(),
                    null,
                    null,
                    null,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 04 18:33:16 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/CoreExtensions.java

        /**
         * Set a set of build extensions to use from this project.
         *
         * @param extensions a extensions object.
         */
        public void setExtensions(List<CoreExtension> extensions) {
            this.extensions = extensions;
        } // -- void setExtensions( List )
    
        /**
         * Set the modelEncoding field.
         *
         * @param modelEncoding a modelEncoding object.
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 27 13:24:03 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    || ("jar".equals(artifact.getExtension()) && "tests".equals(artifact.getClassifier()));
        }
    
        private File findInProjectLocalRepository(Artifact artifact) {
            // Prefer the consumer POM when resolving POMs from the project-local repository,
            // to avoid treating a build POM as a repository (consumer) POM.
            if ("pom".equals(artifact.getExtension())) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Dec 15 11:20:38 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java

            assertFalse(depArtifact.isSnapshot(), "Expected " + depArtifact + ".isSnapshot() to return false");
            assertEquals("", depArtifact.getClassifier());
            assertEquals("jar", depArtifact.getExtension());
            assertEquals("java", depArtifact.getProperty("language", null));
            assertEquals("jar", depArtifact.getProperty("type", null));
            assertEquals("true", depArtifact.getProperty("constitutesBuildPath", null));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/classrealm/DefaultClassRealmManagerTest.java

            when(artifact.getGroupId()).thenReturn("group1");
            when(artifact.getArtifactId()).thenReturn("artifact1");
            when(artifact.getExtension()).thenReturn("ext");
            when(artifact.getClassifier()).thenReturn("classifier1");
            when(artifact.getVersion()).thenReturn("1");
            artifacts.add(artifact);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/aether/TypeRegistryAdapter.java

            if (type instanceof ArtifactType artifactType) {
                return artifactType;
            }
            return new DefaultType(
                    type.id(),
                    type.getLanguage(),
                    type.getExtension(),
                    type.getClassifier(),
                    type.isIncludesDependencies(),
                    type.getPathTypes().toArray(new PathType[0]));
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jul 18 22:21:33 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/ExtensionResolutionException.java

                oldExtension.setClassLoadingStrategy(extension.getClassLoadingStrategy());
            }
            this.extension = oldExtension;
        }
    
        public CoreExtension getExtension() {
            return extension;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 27 13:24:03 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top