Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for artifactScope (0.2 sec)

  1. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DebugResolutionListener.java

            logger.debug(indent + artifact + " (not setting artifactScope to: " + ignoredScope + "; local artifactScope "
                    + artifact.getScope() + " wins)");
    
            // TODO better way than static? this might hide messages in a reactor
            if (!ignoredArtifacts.contains(artifact)) {
                logger.warn("\n\tArtifact " + artifact + " retains local artifactScope '" + artifact.getScope()
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/repository/metadata/ArtifactMetadata.java

        }
    
        public ArtifactScopeEnum getArtifactScope() {
            return artifactScope == null ? ArtifactScopeEnum.DEFAULT_SCOPE : artifactScope;
        }
    
        public void setArtifactScope(ArtifactScopeEnum artifactScope) {
            this.artifactScope = artifactScope;
        }
    
        public void setScope(String scope) {
            this.artifactScope = scope == null ? ArtifactScopeEnum.DEFAULT_SCOPE : ArtifactScopeEnum.valueOf(scope);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

            // local wins now, and irrelevant if not local as test/provided aren't transitive
            // assertEquals( Artifact.SCOPE_COMPILE, artifact.getArtifactScope(), "Check artifactScope" );
            assertEquals(Artifact.SCOPE_TEST, artifact.getScope(), "Check artifactScope");
        }
    
        @Test
        void testResolveRuntimeScopeOverTestScope()
                throws ArtifactResolutionException, InvalidVersionSpecificationException {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/artifact/resolver/ResolutionListener.java

        void omitForCycle(Artifact artifact);
    
        /**
         * This event means that the artifactScope has NOT been updated to a farther node artifactScope because current
         * node is in the first level pom
         *
         * @param artifact     current node artifact, the one in the first level pom
         * @param ignoredScope artifactScope that was ignored because artifact was in first level pom
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

                            }
    
                            if (checkScopeUpdate(farthest, nearest, listeners)) {
                                // if we need to update artifactScope of nearest to use farthest artifactScope, use the
                                // nearest version, but farthest artifactScope
                                nearest.disable();
                                farthest.getArtifact()
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 36.7K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

                        if (v == 0) {
                            if (compareScope) {
                                String s1 = ArtifactScopeEnum.checkScope(md.artifactScope)
                                        .getScope();
                                String s2 = ArtifactScopeEnum.checkScope(vmd.artifactScope)
                                        .getScope();
                                return s1.compareTo(s2);
                            } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java

     * under the License.
     */
    package org.apache.maven.artifact.resolver.filter;
    
    import java.util.Objects;
    
    /**
     * Filter to only retain objects in the given artifactScope or better.
     *
     */
    public class ScopeArtifactFilter extends AbstractScopeArtifactFilter {
    
        private final String scope;
    
        public ScopeArtifactFilter(String scope) {
            this.scope = scope;
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java

     * under the License.
     */
    package org.apache.maven.artifact.resolver.filter;
    
    import org.apache.maven.artifact.Artifact;
    
    /**
     * Filter to only retain objects in the given artifactScope or better.
     *
     */
    abstract class AbstractScopeArtifactFilter implements ArtifactFilter {
    
        private boolean compileScope;
    
        private boolean runtimeScope;
    
        private boolean testScope;
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  9. maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java

        String LATEST_VERSION = "LATEST";
    
        String SNAPSHOT_VERSION = "SNAPSHOT";
    
        Pattern VERSION_FILE_PATTERN = Pattern.compile("^(.*)-(\\d{8}\\.\\d{6})-(\\d+)$");
    
        // TODO into artifactScope handler
    
        String SCOPE_COMPILE = "compile";
    
        String SCOPE_COMPILE_PLUS_RUNTIME = "compile+runtime";
    
        String SCOPE_TEST = "test";
    
        String SCOPE_RUNTIME = "runtime";
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Feb 09 17:47:51 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. maven-artifact/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java

        private DefaultArtifact artifact;
    
        private DefaultArtifact snapshotArtifact;
    
        private String groupId = "groupid",
                artifactId = "artifactId",
                version = "1.0",
                scope = "artifactScope",
                type = "type",
                classifier = "classifier";
    
        private String snapshotSpecVersion = "1.0-SNAPSHOT";
        private String snapshotResolvedVersion = "1.0-20070606.010101-1";
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon May 22 19:19:33 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top