Uploaded image for project: 'Maven Install Plugin'
  1. Maven Install Plugin
  2. MINSTALL-55

install-file fails to grab version inhertied from parent

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • None
    • None

    Description

      mvn install:install-file -Dfile=... -DpomFile=test.pom
      

      fails on the test.pom

      <parent>
        <groupId>org.apache.maven.its.install.test</groupId>
        <artifactId>parent</artifactId>
        <version>1.0</version>
      </parent>
      
      <!-- NOTE: Inherit everything from the parent -->
      <artifactId>test</artifactId>
      

      with

      [INFO] [install:install-file]
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An invalid artifact was detected.
      
      This artifact might be in your project's POM, or it might have been included transitively during the resolution process.
       Here is the information we do have for this artifact:
      
          o GroupID:     org.apache.maven.its.install.test
          o ArtifactID:  test
          o Version:     <<< MISSING >>>
          o Type:        pom
      

      Attachments

        Issue Links

        Activity

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

          People

            bentmann Benjamin Bentmann
            bentmann Benjamin Bentmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment