Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for getRelocation (0.06 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

            if (relocations != null) {
                Artifact original = artifactDescriptorResult.getRequest().getArtifact();
                Relocation relocation = relocations.getRelocation(original);
                if (relocation != null
                        && (isProjectContext(artifactDescriptorResult.getRequest().getRequestContext())
                                || relocation.global)) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

            if (model.getDistributionManagement() != null
                    && model.getDistributionManagement().getRelocation() != null) {
                // keep relocation only
                builder.distributionManagement(DistributionManagement.newBuilder()
                        .relocation(model.getDistributionManagement().getRelocation())
                        .build());
            }
            // only keep repositories other than 'central'
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 27 07:40:26 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. compat/maven-model/src/main/java/org/apache/maven/model/InputSource.java

        } // -- InputSource clone()
    
        /**
         * Get the path/URL of the POM or {@code null} if unknown.
         *
         * @return String
         */
        public String getLocation() {
            return this.location;
        } // -- String getLocation()
    
        /**
         * Get the identifier of the POM in the format {@code
         * <groupId>:<artifactId>:<version>}.
         *
         * @return String
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsReader.java

            } catch (XMLStreamException e) {
                throw new SettingsParseException(
                        e.getMessage(),
                        e.getLocation().getLineNumber(),
                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        @Override
        public Settings read(Reader input, Map<String, ?> options) throws IOException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java

            } catch (XMLStreamException e) {
                throw new ToolchainsParseException(
                        e.getMessage(),
                        e.getLocation().getLineNumber(),
                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        @Override
        public PersistedToolchains read(Reader input, Map<String, ?> options) throws IOException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java

                if (logger.isWarnEnabled() && !result.getRelocations().isEmpty()) {
                    String message =
                            pluginArtifact instanceof RelocatedArtifact relocated ? ": " + relocated.getMessage() : "";
                    logger.warn(
                            "The artifact {} has been relocated to {}{}",
                            result.getRelocations().get(0),
                            pluginArtifact,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 15:32:43 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PrecedenceCoreExtensionSelector.java

                                "Conflicting extension %s: %s vs %s",
                                key,
                                formatLocation(conflict.getLocation("")),
                                formatLocation(coreExtension.getLocation(""))));
                    }
                }
            }
            if (!conflicts.isEmpty()) {
                context.logger.warn("Found " + conflicts.size() + " extension conflict(s):");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 15:32:43 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            assertNotNull(source);
            assertInstanceOf(Sources.ResolvedPathSource.class, source);
            assertNull(source.getPath());
            assertEquals(path.toString(), source.getLocation());
            assertEquals(modelId, source.getModelId());
        }
    
        @Test
        void testPathSourceFunctionality() {
            // Test basic source functionality
            Path path = Paths.get("/tmp");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

                assertTrue(
                        location.getSource().getLocation().contains("pom-with-profiles/pom.xml"),
                        "Profile location should contain 'pom-with-profiles/pom.xml', but was: "
                                + location.getSource().getLocation() + " for profile: " + profile.getId());
    
                // This demonstrates the cross-platform path behavior:
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  10. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

            assertNull(source.getPath(), "Resolved sources should return null for getPath()");
            assertEquals(path.toString(), source.getLocation());
        }
    
        @Test
        void testModelIdFormat() {
            String location = "/tmp/test.xml";
            Path path = Paths.get(location);
            String modelId = "com.example:test-artifact:1.2.3";
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top