release-engineering / pom-version-manipulator

Align versions in Maven POMs with those found in a Bill-of-Materials POM
Other
11 stars 9 forks source link

useEffectivePoms with snapshot versions #81

Closed rnc closed 11 years ago

rnc commented 11 years ago

Using git://github.com/ModeShape/modeshape.git trunk and running over it I get

com.redhat.rcm.version.VManException: Failed to build model for POM: /home/rnc/Work/Modeshape/GitApp/modeshape/pom.xml.
--> 1 problem was encountered while building the effective model for org.modeshape:modeshape:3.3-SNAPSHOT
[FATAL] Non-resolvable parent POM: Could not find artifact org.modeshape:modeshape-parent:pom:3.3-SNAPSHOT in vman-1 (file:///home/rnc/.m2-mead-brms6) @ 

        at com.redhat.rcm.version.mgr.VersionManager.loadProjectWithModules(VersionManager.java:310)
        at com.redhat.rcm.version.mgr.VersionManager.modVersions(VersionManager.java:392)
        at com.redhat.rcm.version.mgr.VersionManager.modifyVersions(VersionManager.java:214)
        at com.redhat.rcm.version.Cli.run(Cli.java:523)
        at com.redhat.rcm.version.Cli.main(Cli.java:313)
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for org.modeshape:modeshape:3.3-SNAPSHOT
[FATAL] Non-resolvable parent POM: Could not find artifact org.modeshape:modeshape-parent:pom:3.3-SNAPSHOT in vman-1 (file:///home/rnc/.m2-mead-brms6) @ 

        at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:847)
        at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
        at com.redhat.rcm.version.mgr.VersionManager.loadProjectWithModules(VersionManager.java:306)
        ... 4 more

I don't think Modeshape 3.3-SNAPSHOT exists BUT I do have a compiled version in my remote-repositories list (last entry in the list) but it does not seem to be examining it. Should it even be attempting to examine it given it is part of the current project? Note there is a FIXME in VersionManager regarding this.