Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for or_else (0.15 sec)

  1. maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

                    .reduce((a, b) -> {
                        throw new IllegalStateException(
                                "Multiple modules with key " + a.getGroupId() + ':' + a.getArtifactId());
                    })
                    .orElse(null);
        }
    
        private String getVersion(Model model) {
            String version = model.getVersion();
            if (version == null && model.getParent() != null) {
                version = model.getParent().getVersion();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProcessor.java

            Path pom = modelParsers.stream()
                    .map(m -> m.locate(projectDirectory)
                            .map(org.apache.maven.api.services.Source::getPath)
                            .orElse(null))
                    .filter(Objects::nonNull)
                    .findFirst()
                    .orElseGet(() -> doLocateExistingPom(projectDirectory));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/BuildModelTransformer.java

            Parent parent = model.getParent();
            if (parent != null) {
                String version = parent.getVersion();
                String path = Optional.ofNullable(parent.getRelativePath()).orElse("..");
                if (version == null && !path.isEmpty()) {
                    Optional<RelativeProject> resolvedParent = resolveRelativePath(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

            // of a "project scope"
            LifecycleMapping lifecycleMapping =
                    lookup.lookupOptional(LifecycleMapping.class, id).orElse(null);
            if (lifecycleMapping == null) {
                return Optional.empty();
            }
            Type type = typeRegistry.lookup(id).orElse(null);
            if (type == null) {
                return Optional.empty();
            }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 8K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

                         * The latter case (keep patching) is okay if the main module will be defined later.
                         */
                        type = cache.selectPathType(pathTypes, filter, path).orElse(type);
                    }
                    addPathElement(type, info.getKey());
                    // There is usually no more than one element, but nevertheless allow multi-modules.
                }
                /*
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

                                .map(exc -> ((PluginResolutionException) exc.getCause()).getPlugin())
                                .anyMatch(isPluginPartOfRequestScope);
                    })
                    .orElse(false);
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

        }
    
        @Override
        public org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact) {
            Path path = getService(ArtifactManager.class).getPath(artifact).orElse(null);
            if (artifact instanceof DefaultArtifact) {
                org.eclipse.aether.artifact.Artifact a = ((DefaultArtifact) artifact).getArtifact();
                if (Objects.equals(path, a.getPath())) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                String location = f.next().location;
                ActivationFrame parent = f.next();
    
                return parent.parent.map(p -> p.getLocation(location)).orElse(null);
            };
            final UnaryOperator<String> transformer = s -> {
                if (hasProjectExpression(s)) {
                    String path = pathSupplier.get();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/PackagingProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            return getActivationPackaging(profile).map(p -> isPackaging(context, p)).orElse(false);
        }
    
        @Override
        public boolean presentInConfig(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            return getActivationPackaging(profile).isPresent();
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectBuildList.java

         */
        public ProjectSegment findByMavenProject(MavenProject mavenProject) {
            return items.stream()
                    .filter(pb -> mavenProject.equals(pb.getProject()))
                    .findFirst()
                    .orElse(null);
        }
    
        @Override
        public Iterator<ProjectSegment> iterator() {
            return items.iterator();
        }
    
        public void closeAll() {
            for (ProjectSegment item : items) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top