Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for IllegalStateException (0.33 sec)

  1. maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java

            if (stack == null || stack.isEmpty()) {
                throw new IllegalStateException();
            }
            return stack.getFirst();
        }
    
        public void exit() throws MojoExecutionException {
            final LinkedList<ScopeState> stack = values.get();
            if (stack == null || stack.isEmpty()) {
                throw new IllegalStateException();
            }
            stack.removeFirst();
            if (stack.isEmpty()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/plugin/internal/MavenPluginJavaPrerequisiteChecker.java

                String currentJavaVersion = System.getProperty("java.version");
                if (!matchesVersion(requiredJavaVersion, currentJavaVersion)) {
                    throw new IllegalStateException("Required Java version " + requiredJavaVersion
                            + " is not met by current version: " + currentJavaVersion);
                }
            }
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 18 11:03:17 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSuperPomProvider.java

            String resource = "/org/apache/maven/model/pom-" + v + ".xml";
            URL url = getClass().getResource(resource);
            if (url == null) {
                throw new IllegalStateException("The super POM " + resource + " was not found"
                        + ", please verify the integrity of your Maven installation");
            }
            try (InputStream is = url.openStream()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

                private void doLoadFullReactor() {
                    Path rootDirectory;
                    try {
                        rootDirectory = request.getSession().getRootDirectory();
                    } catch (IllegalStateException e) {
                        // if no root directory, bail out
                        return;
                    }
                    List<Path> toLoad = new ArrayList<>();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

        public void checkPrerequisites(PluginDescriptor pluginDescriptor) throws PluginIncompatibleException {
            List<IllegalStateException> prerequisiteExceptions = new ArrayList<>();
            prerequisitesCheckers.forEach(c -> {
                try {
                    c.accept(pluginDescriptor);
                } catch (IllegalStateException e) {
                    prerequisiteExceptions.add(e);
                }
            });
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/InternalSession.java

        }
    
        static void associate(org.eclipse.aether.RepositorySystemSession rsession, Session session) {
            if (!rsession.getData().set(InternalSession.class, null, from(session))) {
                throw new IllegalStateException("A maven session is already associated with the repository session");
            }
        }
    
        RemoteRepository getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 12:55:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            @Override
            public String getUserProperty(String key) {
                return null;
            }
    
            @Override
            public Model getRawModel(Path from, String groupId, String artifactId) throws IllegalStateException {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public Model getRawModel(Path from, Path p) {
                throw new UnsupportedOperationException();
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  8. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                        return 1; // 1.1 > 1-sp
    
                    case LIST_ITEM:
                        return 1; // 1.1 > 1-1
    
                    default:
                        throw new IllegalStateException("invalid item: " + item.getClass());
                }
            }
    
            @Override
            public boolean equals(Object o) {
                if (this == o) {
                    return true;
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 26K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/plugin/internal/MavenPluginMavenPrerequisiteChecker.java

                                    + requiredMavenVersion,
                            e);
                    return;
                }
                if (!isRequirementMet) {
                    throw new IllegalStateException("Required Maven version " + requiredMavenVersion
                            + " is not met by current version " + runtimeInformation.getMavenVersion());
                }
            }
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java

            Objects.requireNonNull(projectRealm, "projectRealm cannot be null");
    
            if (cache.containsKey(key)) {
                throw new IllegalStateException("Duplicate project realm for extensions " + key);
            }
    
            CacheRecord record = new CacheRecord(projectRealm, extensionArtifactFilter);
    
            cache.put(key, record);
    
            return record;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top