Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-597

Workspace dependencies not resolved for SNAPSHOT dependencies (artifact has a different version from that in dependency management)

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Patch

    Description

      When generating eclipse project with "mvn eclipse:eclipse -Declipse.workspace=d:/eclipse-ws" the SNAPSHOT dependencies are not resolved from workspace correctly. See console output below. This is probably caused by the way how Nexus handles the SNAPSHOTs. The artifact is resolved by ArtifactResolver and the version is changed from 1.1.0-SNAPSHOT to 1.1.0-20090819.145009-4.

      The comparison should be performed against artifact.getBaseVersion() instead of artifact.getVersion(). A simple fix is attached as a patch.

      Console output:
      [INFO] Artifact com.test:sample:jar:4.0.0.B02-SNAPSHOT already available a
      s a workspace project, but with different version. Expected: 4.0.0.B02-20090819.145009-4, found
      : 4.0.0.B02-SNAPSHOT

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rfscholte Robert Scholte
            galet Michal Galet
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment