- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for DefaultArtifactVersion (0.18 sec)
-
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java
} public int compareTo(ArtifactVersion otherVersion) { if (otherVersion instanceof DefaultArtifactVersion) { return this.comparable.compareTo(((DefaultArtifactVersion) otherVersion).comparable); } else { return compareTo(new DefaultArtifactVersion(otherVersion.toString())); } } public int getMajorVersion() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/SimpleArtifactMetadataSource.java
return Collections.singletonList(new DefaultArtifactVersion("10.1.3")); } public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, ArtifactRepository localRepository, ArtifactRepository remoteRepository) { return Collections.singletonList(new DefaultArtifactVersion("10.1.3")); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java
int depth1 = e1.getDepth(); int depth2 = e2.getDepth(); if (depth1 == depth2) { ArtifactVersion v1 = new DefaultArtifactVersion(e1.getVersion()); ArtifactVersion v2 = new DefaultArtifactVersion(e2.getVersion()); if (newerFirst) { return v1.compareTo(v2) > 0 ? e1 : e2; } return v1.compareTo(v2) > 0 ? e2 : e1;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java
VersionRange jdkVersionRange = VersionRange.createFromVersionSpec(convertJdkToMavenVersion(jdk)); DefaultArtifactVersion jdkVersion = new DefaultArtifactVersion(convertJdkToMavenVersion(getJdkVersion())); return jdkVersionRange.containsVersion(jdkVersion); } private String convertJdkToMavenVersion(String jdk) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java
import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import org.apache.maven.artifact.versioning.ArtifactVersion; import org.apache.maven.artifact.versioning.DefaultArtifactVersion; import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Test DefaultArtifactVersion. * */ class DefaultArtifactVersionTest { private ArtifactVersion newArtifactVersion(String version) { return new DefaultArtifactVersion(version); } private void checkVersionParsing(
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.5K bytes - Viewed (0)