Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Artifacts and Repositories
-
Labels:None
-
Complexity:Intermediate
-
Patch Submitted:Yes
-
Number of attachments :
Description
If a pom has a typo in it, it is downloaded and parsed with a (misspelled) error message printed
[m2:libraries] [WARNING] POM for 'org.hibernate:hibernate-tools:pom:3.1.0.beta2' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected > to finsh end tag not < from line 7 (position: TEXT seen ...</dependency>\r\n </dependencies\r\n<... @29:2)
but if the pom is corrected in the source repository, the local system doesnt check for a change, it just goes with what is there.
Invalid pom files should be remembered and replacements looked for, because there is no value in retaining them.
Attachments
Issue Links
| This issue is related to: | ||||
| MNG-1609 | Force update of files in the repo if checksum has been updated |
|
|
|
| MAVENPROXY-36 | Redownload artifacts with updated checksum |
|
|
|
| MNG-1258 | Add option to redownload poms |
|
|
|
Agreed, this is a problem. A user shouldn't have to wipe out things in his repo to get a pom update.
Another possible use case:
A user runs a maven build. He gets a dependency, foo.jar & foo.pom from the central repo. Now the user runs a different build for a different project, however this time the build uses a company internal repository. The internal build references foo.jar & foo.pom from the internal repo, but the internal repo's foo.pom has more information defined (e.g. a new transitive dependency, or license information) without which, the build will fail.