Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 76 for IllegalArgumentException (1.92 sec)

  1. maven-slf4j-wrapper/src/main/java/org/apache/maven/logwrapper/LogLevelRecorder.java

            if (result == null) {
                String message = String.format(
                        "%s is not a valid log severity threshold. Valid severities are WARN/WARNING and ERROR.", input);
                throw new IllegalArgumentException(message);
            }
            return result;
        }
    
        public void record(Level logLevel) {
            if (!metThreshold && logLevel.toInt() >= logThreshold.toInt()) {
                metThreshold = true;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/BaseRequest.java

        }
    
        @Nonnull
        public Session getSession() {
            return session;
        }
    
        public static <T> T nonNull(T obj, String message) {
            if (obj == null) {
                throw new IllegalArgumentException(message);
            }
            return obj;
        }
    
        protected static <T> Collection<T> unmodifiable(Collection<T> obj) {
            return obj != null && !obj.isEmpty()
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultArtifactInstaller.java

            this.repositorySystem = nonNull(repositorySystem);
        }
    
        @Override
        public void install(ArtifactInstallerRequest request) throws ArtifactInstallerException, IllegalArgumentException {
            nonNull(request, "request");
            InternalSession session = InternalSession.from(request.getSession());
            try {
                InstallRequest installRequest =
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java

                            } else {
                                throw new IllegalArgumentException("Unrecognized entry: " + l);
                            }
                            String[] parts = l.split(splitExpr);
                            if (parts.length < 1) {
                                throw new IllegalArgumentException("Unrecognized entry: " + l);
                            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactDeployer.java

         * @param repository the repository to deploy to
         * @param artifacts the collection of artifacts to deploy
         * @throws ArtifactDeployerException if the deployment failed
         * @throws IllegalArgumentException if an argument is {@code null} or invalid
         */
        default void deploy(
                @Nonnull Session session, @Nonnull RemoteRepository repository, @Nonnull Collection<Artifact> artifacts) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/lifecycle/providers/AbstractLifecycleProvider.java

            if (pluginBindings != null) {
                final int len = pluginBindings.length;
    
                if (len < 2 || len % 2 != 0) {
                    throw new IllegalArgumentException("Plugin bindings must have more than 0, even count of elements");
                }
    
                defaultBindings = new LinkedHashMap<>(len / 2);
    
                for (int i = 0; i < len; i += 2) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/TypeRegistry.java

         *
         * @param id the id of the type to retrieve
         * @return the type
         */
        @Nonnull
        @Override
        default Type require(@Nonnull String id) {
            return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'"));
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java

                        new StringReader("<configuration>" + xml + "</configuration>"),
                        (XmlNodeStaxBuilder.InputLocationBuilderStax) null));
            } catch (XMLStreamException e) {
                throw new IllegalArgumentException(e);
            }
        }
    
        @Test
        void testMinimal() throws BeanConfigurationException {
            SomeBean bean = new SomeBean();
    
            Xpp3Dom config = toConfig("<file>test</file>");
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

                                    Stream.of(value).filter(c -> !c.isInterface()).collect(Collectors.toList());
                            if (!nonInterfaces.isEmpty()) {
                                throw new IllegalArgumentException(
                                        "The Typed annotation must contain only interfaces but the following types are not: "
                                                + nonInterfaces);
                            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/plugin/internal/MavenPluginMavenPrerequisiteChecker.java

            if (!isBlankVersion) {
                boolean isRequirementMet = false;
                try {
                    isRequirementMet = runtimeInformation.isMavenVersion(requiredMavenVersion);
                } catch (IllegalArgumentException e) {
                    logger.warn(
                            "Could not verify plugin's Maven prerequisite as an invalid version is given in "
                                    + requiredMavenVersion,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Sep 14 11:48:15 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top