Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for activatedProfiles (0.18 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java

        public Optional<Boolean> updateSnapshots() {
            return returnFirstPresentOrEmpty(MavenOptions::updateSnapshots);
        }
    
        @Override
        public Optional<List<String>> activatedProfiles() {
            return collectListIfPresentOrEmpty(MavenOptions::activatedProfiles);
        }
    
        @Override
        public Optional<Boolean> suppressSnapshotUpdates() {
            return returnFirstPresentOrEmpty(MavenOptions::suppressSnapshotUpdates);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

                cmdAndArguments.add("--update-snapshots");
            }
            if (mavenOptions.activatedProfiles().isPresent()) {
                cmdAndArguments.add("--activate-profiles");
                cmdAndArguments.add(
                        String.join(",", mavenOptions.activatedProfiles().get()));
            }
            if (mavenOptions.suppressSnapshotUpdates().orElse(false)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

            MavenOptions mavenOptions = context.invokerRequest.options();
            if (mavenOptions.activatedProfiles().isPresent()
                    && !mavenOptions.activatedProfiles().get().isEmpty()) {
                List<String> optionValues = mavenOptions.activatedProfiles().get();
                for (final String optionValue : optionValues) {
                    for (String token : optionValue.split(",")) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenOptions.java

         * Returns the list of profiles to activate.
         *
         * @return an {@link Optional} containing the list of profile names to activate, or empty if not specified
         */
        @Nonnull
        Optional<List<String>> activatedProfiles();
    
        /**
         * Indicates whether Maven should suppress SNAPSHOT updates.
         *
         * @return an {@link Optional} containing true if SNAPSHOT updates should be suppressed, false if not, or empty if not specified
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java

            }
            return Optional.empty();
        }
    
        @Override
        public Optional<List<String>> activatedProfiles() {
            if (commandLine.hasOption(CLIManager.ACTIVATE_PROFILES)) {
                return Optional.of(Arrays.asList(commandLine.getOptionValues(CLIManager.ACTIVATE_PROFILES)));
            }
            return Optional.empty();
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. apache-maven/src/assembly/maven/conf/settings.xml

      <profiles>
        <!-- profile
         | Specifies a set of introductions to the build process, to be activated using one or more of the
         | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
         | or the command line, profiles have to have an ID that is unique.
         |
         | An encouraged best practice for profile identification is to use a consistent naming convention
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 15:53:41 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

        public static final char SHOW_VERSION = 'V';
    
        public static final char NON_RECURSIVE = 'N';
    
        public static final char UPDATE_SNAPSHOTS = 'U';
    
        public static final char ACTIVATE_PROFILES = 'P';
    
        public static final String SUPPRESS_SNAPSHOT_UPDATES = "nsu";
    
        public static final char CHECKSUM_FAILURE_POLICY = 'C';
    
        public static final char CHECKSUM_WARNING_POLICY = 'c';
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            final CommandLineParser parser = new DefaultParser();
    
            final Options options = new Options();
            options.addOption(Option.builder(Character.toString(CLIManager.ACTIVATE_PROFILES))
                    .hasArg()
                    .build());
    
            ProfileActivation activation;
    
            activation = new ProfileActivation();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

        static void performProfileActivation(final CommandLine commandLine, final ProfileActivation profileActivation) {
            if (commandLine.hasOption(CLIManager.ACTIVATE_PROFILES)) {
                final String[] optionValues = commandLine.getOptionValues(CLIManager.ACTIVATE_PROFILES);
    
                if (optionValues == null || optionValues.length == 0) {
                    return;
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
Back to top