Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for Errors (0.26 sec)

  1. maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginValidatorTest.java

            descriptor.setArtifactId("maven-it-plugin");
            descriptor.setVersion("0.1");
            List<String> errors = new ArrayList<>();
            mavenPluginValidator.validate(plugin, descriptor, errors);
            assertTrue(errors.isEmpty());
        }
    
        @Test
        void testInvalidGroupId() {
            Artifact plugin = new DefaultArtifact(
                    "org.apache.maven.its.plugins",
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginDescriptorException.java

        public InvalidPluginDescriptorException(String message, List<String> errors) {
            super(toMessage(message, errors));
        }
    
        private static String toMessage(String message, List<String> errors) {
            StringBuilder buffer = new StringBuilder(256);
            buffer.append(message);
            for (String error : errors) {
                buffer.append(", ").append(error);
            }
            return buffer.toString();
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Nov 22 13:26:01 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginValidator.java

            if (!pluginArtifact.getGroupId().equals(pluginDescriptor.getGroupId())) {
                errors.add("Plugin's descriptor contains the wrong group ID: " + pluginDescriptor.getGroupId());
            }
    
            if (!pluginArtifact.getArtifactId().equals(pluginDescriptor.getArtifactId())) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            }
    
            List<String> errors = new ArrayList<>();
            pluginValidator.validate(pluginArtifact, pluginDescriptor, errors);
    
            if (!errors.isEmpty()) {
                throw new InvalidPluginDescriptorException(
                        "Invalid plugin descriptor for " + plugin.getId() + " (" + pluginFile + ")", errors);
            }
    
            pluginDescriptor.setPluginArtifact(pluginArtifact);
    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)
  5. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

            }
    
            // reactor failure modes
            if (t instanceof RuntimeException || !(t instanceof Exception)) {
                // fail fast on RuntimeExceptions, Errors and "other" Throwables
                // assume these are system errors and further build is meaningless
                buildContext.getReactorBuildStatus().halt();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

     * <ul>
     *   <li>missing metadata</li>
     *   <li>version range violations</li>
     *   <li>version circular dependencies</li>
     *   <li>missing artifacts</li>
     *   <li>network/transfer errors</li>
     *   <li>file system errors: permissions</li>
     * </ul>
     *
     * TODO carlos: all these possible has*Exceptions and get*Exceptions methods make the clients too
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

            final List<ProfileActivationException> errors = new ArrayList<>();
    
            List<Profile> profiles = profileSelector.getActiveProfiles(profilesById.values(), context, req -> {
                if (!ModelProblem.Severity.WARNING.equals(req.getSeverity())) {
                    errors.add(new ProfileActivationException(req.getMessage(), req.getException()));
                }
            });
    
            if (!errors.isEmpty()) {
                throw errors.get(0);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Jun 15 14:24:56 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java

         * This is the main trigger for the <code>Mojo</code> inside the <code>Maven</code> system, and allows
         * the <code>Mojo</code> to communicate errors.
         *
         * @throws MojoException if a problem occurs
         */
        void execute();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java

        public void artifactDescriptorInvalid(RepositoryEvent event) {
            // The exception stack trace is not really interesting here
            // but the message itself may be quite details and span multiple
            // lines with errors in it, so only display it at debug level.
            String msg = "The POM for {} is invalid, transitive dependencies (if any) will not be available: {}";
            if (logger.isDebugEnabled()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java

                        new ProjectExecutionEvent(session, currentProject, t));
    
                // rethrow original errors and runtime exceptions
                if (t instanceof RuntimeException) {
                    throw (RuntimeException) t;
                }
                if (t instanceof Error) {
                    throw (Error) t;
                }
            } finally {
                session.setCurrentProject(null);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:31:09 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top