Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 76 for IllegalArgumentException (2.57 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java

            Reader reader = request.getReader();
            InputStream inputStream = request.getInputStream();
            if (reader == null && inputStream == null) {
                throw new IllegalArgumentException("reader or inputStream must be non null");
            }
            try {
                InputSource source = null;
                if (request.getModelId() != null || request.getLocation() != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java

        protected AbstractLifecycleMappingProvider(String[] pluginBindings) {
            requireNonNull(pluginBindings);
            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");
            }
    
            HashMap<String, LifecyclePhase> lifecyclePhaseBindings = new HashMap<>(len / 2);
            for (int i = 0; i < len; i = i + 2) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 15:34:45 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultArtifactResolver.java

    @Singleton
    public class DefaultArtifactResolver implements ArtifactResolver {
    
        @Override
        public ArtifactResolverResult resolve(ArtifactResolverRequest request)
                throws ArtifactResolverException, IllegalArgumentException {
            nonNull(request, "request");
            InternalSession session = InternalSession.from(request.getSession());
            try {
                Map<Artifact, Path> paths = new HashMap<>();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java

            if (Objects.requireNonNull(groupId, "groupId cannot be null").isEmpty()) {
                throw new IllegalArgumentException("groupId cannot be empty");
            }
            if (Objects.requireNonNull(artifactId, "artifactId cannot be null").isEmpty()) {
                throw new IllegalArgumentException("artifactId cannot be empty");
            }
    
            if (model != null) {
                Build build = model.getBuild();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

        }
    
        @SuppressWarnings("MethodLength")
        @Nonnull
        @Override
        public ProjectBuilderResult build(ProjectBuilderRequest request)
                throws ProjectBuilderException, IllegalArgumentException {
            InternalMavenSession session = InternalMavenSession.from(request.getSession());
            try {
                List<ArtifactRepository> repositories = session.toArtifactRepositories(session.getRemoteRepositories());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java

        @Nonnull
        Optional<T> lookup(@Nonnull String id);
    
        @Nonnull
        default T 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: Wed Feb 28 23:54:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginJavaPrerequisiteCheckerTest.java

            assertTrue(checker.matchesVersion("1.8", "9.0.1+11"));
            assertFalse(checker.matchesVersion("[1.0,2],[3,4]", "2.1"));
            assertTrue(checker.matchesVersion("[1.0,2],[3,4]", "3.1"));
            assertThrows(IllegalArgumentException.class, () -> checker.matchesVersion("(1.0,0)", "11"));
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            try {
                return clazz.newInstance();
            } catch (final Exception e) {
                throw new IllegalArgumentException("Cannot create instance of: " + clazz, e);
            } catch (final LinkageError e) {
                throw new IllegalArgumentException("Cannot create instance of: " + clazz, e);
            }
        }
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 18 00:24:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. maven-di/src/main/java/org/apache/maven/di/impl/Types.java

                    throw new IllegalArgumentException("Multiple upper bounds not supported: " + original);
                }
    
                Type[] lowerBounds = wildcardType.getLowerBounds();
                if (lowerBounds.length == 1) {
                    return simplifyType(lowerBounds[0]);
                } else if (lowerBounds.length > 1) {
                    throw new IllegalArgumentException("Multiple lower bounds not supported: " + original);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/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: Mon Dec 18 12:26:49 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top