Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for getLocalRepository (0.1 sec)

  1. api/maven-api-settings/src/test/java/org/apache/maven/api/settings/SettingsTest.java

            Settings s = Settings.newInstance();
    
            s = s.withLocalRepository("xxx");
            assertEquals("xxx", s.getLocalRepository());
    
            s = s.withLocalRepository("yyy");
            assertEquals("yyy", s.getLocalRepository());
    
            s = s.withLocalRepository(null);
            assertNull(s.getLocalRepository());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Apr 15 17:24:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/DefaultRepositoryRequest.java

         * @param repositoryRequest The repository request to copy from, must not be {@code null}.
         */
        public DefaultRepositoryRequest(RepositoryRequest repositoryRequest) {
            setLocalRepository(repositoryRequest.getLocalRepository());
            setRemoteRepositories(repositoryRequest.getRemoteRepositories());
            setOffline(repositoryRequest.isOffline());
            setForceUpdate(repositoryRequest.isForceUpdate());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            configuration.setLocalRepository(getLocalRepository());
            initRepoSession(configuration);
    
            return projectBuilder.build(pom, configuration).getProject();
        }
    
        protected void initRepoSession(ProjectBuildingRequest request) throws Exception {
            File localRepo = new File(request.getLocalRepository().getBasedir());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/merge/MavenSettingsMerger.java

                        dominantPluginGroupIds.add(pluginGroupId);
                    }
                }
            }
    
            if (dominant.getLocalRepository() == null
                    || dominant.getLocalRepository().isEmpty()) {
                dominant.setLocalRepository(recessive.getLocalRepository());
            }
    
            shallowMergeById(dominant.getMirrors(), recessive.getMirrors(), recessiveSourceLevel);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/DefaultMetadataResolutionRequest.java

        }
    
        public DefaultMetadataResolutionRequest setArtifact(Artifact artifact) {
            this.artifact = artifact;
    
            return this;
        }
    
        public ArtifactRepository getLocalRepository() {
            return repositoryRequest.getLocalRepository();
        }
    
        public DefaultMetadataResolutionRequest setLocalRepository(ArtifactRepository localRepository) {
            repositoryRequest.setLocalRepository(localRepository);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

                    .setRemoteRepositories(getRemoteRepositories())
                    .setLocalRepository(getLocalRepository());
    
            DefaultRepositorySystemSession session = new DefaultRepositorySystemSession();
            LocalRepository localRepo =
                    new LocalRepository(request.getLocalRepository().getBasedir());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                    .setPom(pom)
                    .setProjectPresent(true)
                    .setShowErrors(true)
                    .setPluginGroups(Arrays.asList("org.apache.maven.plugins"))
                    .setLocalRepository(getLocalRepository())
                    .setRemoteRepositories(getRemoteRepositories())
                    .setPluginArtifactRepositories(getPluginArtifactRepositories())
                    .setGoals(Arrays.asList("package"));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

            if (request.getLocalRepository() == null) {
                request.setLocalRepository(createLocalRepository(request));
            }
    
            if (request.getLocalRepositoryPath() == null) {
                request.setLocalRepositoryPath(new File(request.getLocalRepository().getBasedir()).getAbsoluteFile());
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/artifact/metadata/TestMetadataSource.java

            return retrieve(request.getArtifact(), request.getLocalRepository(), request.getRemoteRepositories());
        }
    
        public List<ArtifactVersion> retrieveAvailableVersions(MetadataResolutionRequest request)
                throws ArtifactMetadataRetrievalException {
            return retrieveAvailableVersions(
                    request.getArtifact(), request.getLocalRepository(), request.getRemoteRepositories());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                            request.getArtifact().getVersion());
                    File pomFile = new File(
                            request.getLocalRepository().getBasedir(),
                            request.getLocalRepository().pathOf(pomArtifact));
    
                    try {
                        Model model = modelReader.read(pomFile, null).getDelegate();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top