Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toPomArtifact (0.12 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

     *
     * @deprecated since 4.0.0, use {@code maven-api-impl} jar instead
     */
    @Deprecated(since = "4.0.0")
    public class ArtifactDescriptorUtils {
    
        public static Artifact toPomArtifact(Artifact artifact) {
            Artifact pomArtifact = artifact;
    
            if (!pomArtifact.getClassifier().isEmpty() || !"pom".equals(pomArtifact.getExtension())) {
                pomArtifact =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

             */
    
            WorkspaceReader workspace = session.getWorkspaceReader();
            if (workspace == null) {
                return true;
            }
    
            Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifact(artifact);
    
            return workspace.findArtifact(pomArtifact) == null;
        }
    
        private static class VersionInfo {
    
            String timestamp;
    
            String version;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top