Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for mavenHome (0.2 sec)

  1. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

                return this;
            }
    
            public Builder cwd(Path cwd) {
                this.cwd = cwd;
                return this;
            }
    
            public Builder mavenHome(Path mavenHome) {
                this.mavenHome = mavenHome;
                return this;
            }
    
            public Builder userHome(Path userHome) {
                this.userHome = userHome;
                return this;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 04 12:23:10 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            Path result;
            if (context.parserRequest.mavenHome() != null) {
                result = getCanonicalPath(context.parserRequest.mavenHome());
                context.systemPropertiesOverrides.put(MAVEN_HOME, result.toString());
            } else {
                String mavenHome = System.getProperty(Constants.MAVEN_HOME);
                if (mavenHome == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

    class MavenPropertiesLoaderTest {
    
        @Test
        void testIncludes() throws Exception {
            FileSystem fs = Jimfs.newFileSystem(Configuration.unix());
    
            Path mavenHome = fs.getPath("/maven");
            Files.createDirectories(mavenHome);
            Path mavenConf = mavenHome.resolve("conf");
            Files.createDirectories(mavenConf);
            Path mavenUserProps = mavenConf.resolve("maven.properties");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

        @Test
        public void testPropertiesInterpolation() throws Exception {
            FileSystem fs = Jimfs.newFileSystem(Configuration.windows());
    
            Path mavenHome = fs.getPath("C:\\maven");
            Files.createDirectories(mavenHome);
            Path mavenConf = mavenHome.resolve("conf");
            Files.createDirectories(mavenConf);
            Path mavenUserProps = mavenConf.resolve("maven.properties");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            // Windows paths.
            //
            String mavenHome = System.getProperty(Constants.MAVEN_HOME);
    
            if (mavenHome != null) {
                System.setProperty(
                        Constants.MAVEN_HOME,
                        getCanonicalPath(fileSystem.getPath(mavenHome)).toString());
            }
        }
    
        void cli(CliRequest cliRequest) throws Exception {
            //
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  6. apache-maven/src/assembly/maven/bin/mvn

      if expr "$link" : '/.*' > /dev/null; then
        PRG="$link"
      else
        PRG="`dirname "$PRG"`/$link"
      fi
    done
    
    saveddir=`pwd`
    
    MAVEN_HOME=`dirname "$PRG"`/..
    
    # make it fully qualified
    MAVEN_HOME=`cd "$MAVEN_HOME" && pwd`
    
    cd "$saveddir"
    
    CLASSWORLDS_CONF="$MAVEN_HOME/bin/m2.conf"
    
    # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
    if $cygwin || $mingw ; then
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 12:01:35 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. apache-maven/src/assembly/maven/bin/mvn.cmd

      goto error
    )
    :chkMHome
    set "MAVEN_HOME=%~dp0"
    set "MAVEN_HOME=%MAVEN_HOME:~0,-5%"
    if "%MAVEN_HOME%"=="" goto error
    
    :checkMCmd
    if not exist "%MAVEN_HOME%\bin\mvn.cmd" goto error
    
    @REM ==== END VALIDATION ====
    
    :init
    
    set "CLASSWORLDS_CONF=%MAVEN_HOME%\bin\m2.conf"
    
    @REM Find the project basedir, i.e., the directory that contains the directory ".mvn".
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 12:01:35 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

                Path mavenSystemHome = properties.containsKey("maven.home")
                        ? Paths.get(properties.get("maven.home"))
                        : properties.containsKey("env.MAVEN_HOME") ? Paths.get(properties.get("env.MAVEN_HOME")) : null;
    
                DefaultRepositorySystemSession rsession = new DefaultRepositorySystemSession(h -> false);
                rsession.setSystemProperties(properties);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java

    /**
     * Configuration constants.
     */
    public final class Constants {
    
        /**
         * Maven home.
         *
         * @since 3.0.0
         */
        @Config(readOnly = true)
        public static final String MAVEN_HOME = "maven.home";
    
        /**
         * Maven installation configuration directory.
         *
         * @since 4.0.0
         */
        @Config(defaultValue = "${maven.home}/conf")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:24:08 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    .filter(k -> !sys.contains(k.getKey()))
                    .forEach(k -> System.setProperty(k.getKey(), k.getValue()));
            System.setProperty(
                    Constants.MAVEN_HOME, invokerRequest.installationDirectory().toString());
        }
    
        protected void validate(C context) throws Exception {}
    
        protected void prepare(C context) throws Exception {}
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
Back to top