Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ArtifactHandler (0.1 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/handler/ArtifactHandler.java

     * <li>Information on how to use the artifact as a dependency: whether to add it to the classpath, whether to load its
     * dependencies transitively</li>
     * </ul>
     *
     */
    public interface ArtifactHandler {
        @Deprecated
        String ROLE = ArtifactHandler.class.getName();
    
        /**
         * Returns the file name extension of the artifact;
         * e.g. "jar", "pom", "xml", etc.
         *
         * @return the file extension
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java

            if (artifact.hasClassifier()) {
                path.append(ARTIFACT_SEPARATOR).append(artifact.getClassifier());
            }
    
            if (artifactHandler.getExtension() != null
                    && !artifactHandler.getExtension().isEmpty()) {
                path.append(GROUP_SEPARATOR).append(artifactHandler.getExtension());
            }
    
            return path.toString();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

                String type,
                String classifier,
                ArtifactHandler artifactHandler,
                boolean optional) {
            this.groupId = groupId;
    
            this.artifactId = artifactId;
    
            this.versionRange = versionRange;
    
            selectVersionFromNewRangeIfAvailable();
    
            this.artifactHandler = artifactHandler;
    
            this.scope = scope;
    
            this.type = type;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java

        private ArtifactHandlerMock artifactHandler;
    
        @BeforeEach
        void setUp() throws Exception {
            artifactHandler = new ArtifactHandlerMock();
            versionRange = VersionRange.createFromVersion(version);
            artifact = new DefaultArtifact(groupId, artifactId, versionRange, scope, type, classifier, artifactHandler);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

    import java.util.concurrent.ConcurrentHashMap;
    
    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.Type;
    import org.apache.maven.api.services.TypeRegistry;
    import org.apache.maven.artifact.handler.ArtifactHandler;
    import org.apache.maven.artifact.handler.DefaultArtifactHandler;
    import org.apache.maven.eventspy.AbstractEventSpy;
    import org.apache.maven.execution.ExecutionEvent;
    
    import static java.util.Objects.requireNonNull;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/layout/FlatRepositoryLayout.java

                path.append(ARTIFACT_SEPARATOR).append(artifact.getClassifier());
            }
    
            if (artifactHandler.getExtension() != null
                    && !artifactHandler.getExtension().isEmpty()) {
                path.append(GROUP_SEPARATOR).append(artifactHandler.getExtension());
            }
    
            return path.toString();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/LegacyArtifactHandlerManager.java

     */
    @Named
    @Singleton
    public class LegacyArtifactHandlerManager extends AbstractEventSpy {
        private final Map<String, ArtifactHandler> artifactHandlers;
    
        private final Map<String, ArtifactHandler> allHandlers = new ConcurrentHashMap<>();
    
        @Inject
        public LegacyArtifactHandlerManager(Map<String, ArtifactHandler> artifactHandlers) {
            this.artifactHandlers = requireNonNull(artifactHandlers);
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifactHandler.java

     * under the License.
     */
    package org.apache.maven.internal.transformation.impl;
    
    import org.apache.maven.artifact.handler.ArtifactHandler;
    
    import static java.util.Objects.requireNonNull;
    
    class TransformedArtifactHandler implements ArtifactHandler {
    
        private final String classifier;
    
        private final String extension;
    
        private final String packaging;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java

    import java.util.Map;
    
    import org.apache.maven.artifact.handler.ArtifactHandler;
    
    /**
     */
    public interface ArtifactHandlerManager {
        String ROLE = ArtifactHandlerManager.class.getName();
    
        ArtifactHandler getArtifactHandler(String type);
    
        @Deprecated
        void addHandlers(Map<String, ArtifactHandler> handlers);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java

     */
    package org.apache.maven.artifact;
    
    import java.io.File;
    import java.util.Collection;
    import java.util.List;
    import java.util.regex.Pattern;
    
    import org.apache.maven.artifact.handler.ArtifactHandler;
    import org.apache.maven.artifact.metadata.ArtifactMetadata;
    import org.apache.maven.artifact.repository.ArtifactRepository;
    import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top