Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Component/s: None
-
Labels:None
-
Number of attachments :
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
Issue Links
- is duplicated by
-
MINSTALL-70
install-file should take the version from the parent if the version for the artifact is missing in the POM
-
Activity
Benjamin Bentmann
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Benjamin Bentmann [ bentmann ] | |
| Fix Version/s | 2.3 [ 13495 ] | |
| Resolution | Fixed [ 1 ] |
Benjamin Bentmann
made changes -
| Link |
This issue is duplicated by |
Fixed in r730487.