Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7981

Fix exception parsing when resolving artifact in Maven 4 api

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-alpha-10
    • 4.0.0-alpha-12, 4.0.0
    • Core
    • None

    Description

      Caused by: org.eclipse.aether.version.InvalidVersionSpecificationException: Invalid version range 1.0-SNAPSHOT, a range must start with either [ or (
          at org.eclipse.aether.util.version.GenericVersionRange.<init>(GenericVersionRange.java:55)
          at org.eclipse.aether.util.version.GenericVersionScheme.parseVersionRange(GenericVersionScheme.java:68)
          at org.eclipse.aether.util.version.GenericVersionScheme.parseVersionRange(GenericVersionScheme.java:54)
          at org.apache.maven.repository.internal.DefaultModelVersionParser$DefaultVersionRange.<init>(DefaultModelVersionParser.java:115)
          at org.apache.maven.repository.internal.DefaultModelVersionParser.parseVersionRange(DefaultModelVersionParser.java:55)
          at org.apache.maven.internal.impl.DefaultVersionParser.parseVersionRange(DefaultVersionParser.java:56)
          at org.apache.maven.internal.impl.AbstractSession.parseVersionRange(AbstractSession.java:504)
          at org.apache.maven.internal.impl.DefaultDependencyCoordinate.getVersion(DefaultDependencyCoordinate.java:67)
          at org.apache.maven.internal.impl.AbstractSession.toArtifact(AbstractSession.java:154)
          at org.apache.maven.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:59)
          at org.apache.maven.api.services.ArtifactResolver.resolve(ArtifactResolver.java:54)
          at org.apache.maven.internal.impl.AbstractSession.resolveArtifacts(AbstractSession.java:319)
          at org.apache.maven.internal.impl.DefaultDependencyResolver.resolve(DefaultDependencyResolver.java:114)
          at org.apache.maven.plugin.compiler.AbstractCompilerMojo.resolveProcessorPathEntries(AbstractCompilerMojo.java:1552)
          at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:747)
          at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:196)
          at org.apache.maven.plugin.DefaultBuildPluginManager$MojoWrapper.execute(DefaultBuildPluginManager.java:231)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:144) 

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: