install-file fails to grab version inhertied from parent
--------------------------------------------------------

                 Key: MINSTALL-55
                 URL: http://jira.codehaus.org/browse/MINSTALL-55
             Project: Maven 2.x Install Plugin
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Benjamin Bentmann
            Priority: Minor


{noformat}
mvn install:install-file -Dfile=... -DpomFile=test.pom
{noformat}
fails on the {{test.pom}}
{code:xml}
<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>
{code}
with
{noformat}
[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
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to