Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 20 for getLocalRepositoryPath (0.15 seconds)

  1. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t10/ProjectInheritanceTest.java

        //
        // ----------------------------------------------------------------------
    
        @Test
        void testDependencyManagementOverridesTransitiveDependencyVersion() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            File pom0 = new File(localRepo, "p0/pom.xml");
            File pom0Basedir = pom0.getParentFile();
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t11/ProjectInheritanceTest.java

        //
        // ----------------------------------------------------------------------
    
        @Test
        void testDependencyManagementDoesNotOverrideScopeOfCurrentArtifact() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            File pom0 = new File(localRepo, "p0/pom.xml");
            File pom0Basedir = pom0.getParentFile();
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t06/ProjectInheritanceTest.java

        // p1 ---> p0 --> super model
        //
        // ----------------------------------------------------------------------
    
        @Test
        void testDependencyManagement() throws Exception {
            File localRepo = getLocalRepositoryPath();
            File pom0 = new File(localRepo, "p0/pom.xml");
    
            File pom0Basedir = pom0.getParentFile();
    
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
            // load everything...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java

        @Test
        @DisabledOnOs(value = WINDOWS, disabledReason = "need to investigate why it fails on windows")
        void testProjectInheritance() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            System.out.println("Local repository is at: " + localRepo.getAbsolutePath());
    
            File pom0 = new File(localRepo, "p0/pom.xml");
            File pom1 = new File(pom0.getParentFile(), "p1/pom.xml");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 04 10:35:11 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java

        // Local repository
        MavenExecutionRequest setLocalRepositoryPath(String localRepository);
    
        MavenExecutionRequest setLocalRepositoryPath(File localRepository);
    
        File getLocalRepositoryPath();
    
        MavenExecutionRequest setLocalRepository(ArtifactRepository repository);
    
        ArtifactRepository getLocalRepository();
    
        // Interactive
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Dec 12 11:02:17 GMT 2024
    - 18.6K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            DefaultMavenExecutionRequest copy = new DefaultMavenExecutionRequest();
            copy.setLocalRepository(original.getLocalRepository());
            copy.setLocalRepositoryPath(original.getLocalRepositoryPath());
            copy.setOffline(original.isOffline());
            copy.setInteractiveMode(original.isInteractiveMode());
            copy.setCacheNotFound(original.isCacheNotFound());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Dec 12 11:02:17 GMT 2024
    - 32.1K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

                throws MavenExecutionRequestPopulationException {
            String localRepositoryPath = null;
    
            if (request.getLocalRepositoryPath() != null) {
                localRepositoryPath = request.getLocalRepositoryPath().getAbsolutePath();
            }
    
            if (localRepositoryPath == null || localRepositoryPath.isEmpty()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assertNull(executionRequest.getLocalRepositoryPath());
    
            // System-properties override default
            request.getSystemProperties().setProperty(Constants.MAVEN_REPO_LOCAL, "." + File.separatorChar + "custom1");
            executionRequest = cli.populateRequest(request);
            assertNotNull(executionRequest.getLocalRepositoryPath());
            assertEquals(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

         * then we will take that over the value coming from the user settings.
         */
        private static Settings adaptSettings(MavenExecutionRequest request) {
            File localRepo = request.getLocalRepositoryPath();
            return new Settings(org.apache.maven.api.settings.Settings.newBuilder()
                    .localRepository(localRepo != null ? localRepo.getAbsolutePath() : null)
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                    .build();
        }
    
        private void validateLocalRepository(MavenExecutionRequest request) throws IOException {
            File localRepoDir = request.getLocalRepositoryPath();
    
            logger.debug("Using local repository at {}", localRepoDir);
    
            localRepoDir.mkdirs();
    
            if (!localRepoDir.isDirectory()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 29 10:43:38 GMT 2025
    - 28.8K bytes
    - Click Count (1)
Back to Top