Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for getData (0.16 sec)

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

        static InternalSession from(org.eclipse.aether.RepositorySystemSession session) {
            return cast(InternalSession.class, session.getData().get(InternalSession.class), "session");
        }
    
        static void associate(org.eclipse.aether.RepositorySystemSession rsession, Session session) {
            if (!rsession.getData().set(InternalSession.class, null, from(session))) {
    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)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultNode.java

            List<String> details = new ArrayList<>();
    
            org.eclipse.aether.graph.DependencyNode winner =
                    (org.eclipse.aether.graph.DependencyNode) node.getData().get(ConflictResolver.NODE_DATA_WINNER);
            String winnerVersion = winner != null ? winner.getArtifact().getBaseVersion() : null;
            boolean included = (winnerVersion == null);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java

                RepositorySystemSession session, ArtifactDescriptorResult artifactDescriptorResult, Model model)
                throws ArtifactDescriptorException {
            Relocations relocations = (Relocations) session.getData()
                    .computeIfAbsent(getClass().getName() + ".relocations", () -> parseRelocations(session));
            if (relocations != null) {
                Artifact original = artifactDescriptorResult.getRequest().getArtifact();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            if (modelSource instanceof FileModelSource fms) {
                return ModelSource.fromPath(fms.getPath());
            } else if (modelSource instanceof ArtifactModelSource ams) {
                return ModelSource.fromPath(ams.getPath(), ams.toString());
            } else {
                return new ModelSource() {
                    @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

        }
    
        /**
         * Shortcut for <code>getService(ArtifactManager.class).getPath(...)</code>
         *
         * @see ArtifactManager#getPath(Artifact)
         */
        @Nonnull
        @Override
        public Optional<Path> getArtifactPath(@Nonnull Artifact artifact) {
            return getService(ArtifactManager.class).getPath(artifact);
        }
    
        /**
    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)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        /**
         * Shortcut for {@code getService(ArtifactManager.class).getPath(...)}.
         *
         * @param artifact the artifact for which to get a path
         * @return path associated to the given artifact
         *
         * @see org.apache.maven.api.services.ArtifactManager#getPath(Artifact)
         */
        @Nonnull
        Optional<Path> getArtifactPath(@Nonnull Artifact artifact);
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 30.2K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            return this;
        }
    
        @Override
        public EventSpyDispatcher getEventSpyDispatcher() {
            return eventSpyDispatcher;
        }
    
        @Override
        public Map<String, Object> getData() {
            if (data == null) {
                data = new HashMap<>();
            }
    
            return data;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 31K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultArtifactResolver.java

                    org.eclipse.aether.artifact.Artifact aetherArtifact = session.toArtifact(coord);
                    Artifact artifact = session.getArtifact(aetherArtifact);
                    Path path = artifactManager.getPath(artifact).orElse(null);
                    if (path != null) {
                        paths.put(artifact, path);
                    } else {
                        requests.add(new ArtifactRequest(aetherArtifact, repositories, null));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

    public class DefaultModelXmlFactory implements ModelXmlFactory {
        @Override
        public Model read(@Nonnull XmlReaderRequest request) throws XmlReaderException {
            nonNull(request, "request");
            Path path = request.getPath();
            URL url = request.getURL();
            Reader reader = request.getReader();
            InputStream inputStream = request.getInputStream();
            if (path == null && url == null && reader == null && inputStream == null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                        e);
                throw problems.newModelBuilderException();
            }
    
            if (modelSource.getPath() != null) {
                model = model.withPomFile(modelSource.getPath());
            }
    
            problems.setSource(model);
            modelValidator.validateFileModel(model, request, problems);
            if (hasFatalErrors(problems)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
Back to top