1.0-m2 release-finish failes with: Error reloading Maven reactor projects

426 views
Skip to first unread message

Thorsten

unread,
Jun 14, 2014, 5:20:06 AM6/14/14
to maven-jgit...@googlegroups.com
I wanted to file a JIRA issue but the google login was not working so I am going to post it here.

It seems that when I run the following command:

mvn jgitflow:release-finish -X -DallowSnapshots=true -DpushReleases=false -DnoDeploy=true -DautoVersionSubmodules=true pullMaster=true pullDevelop=true pushReleases=false

on a fresh release branch clone I get the following exception:

[...]
[DEBUG]   [Update Project Release Version]
[DEBUG] (release/1.0.2) committing all poms on branch 'release/1.0.2'
[DEBUG] (release/1.0.2) adding file pattern for poms commit: pom.xml
[DEBUG] (release/1.0.2) adding file pattern for poms commit: test-rest-api/pom.xml
[DEBUG] (release/1.0.2) adding file pattern for poms commit: test-rest-impl/pom.xml
[DEBUG] (release/1.0.2) adding file pattern for poms commit: test-webapp/pom.xml
[DEBUG] (release/1.0.2) adding file pattern for poms commit: test-webapp-deps/pom.xml
[DEBUG] Extension realms for project com.test.test:test-webapp-parent:pom:1.0.2: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project com.test.test:test-webapp:war:1.0.2: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from ClassRealm[plexus.core, parent: null]
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for https://internalrepo/nexus/content/groups/inhouse-repositories with username=, password=
[DEBUG] Writing tracking file /usr/local/maven_repo/com/internalrepo/test/test-webapp-deps/1.0.2/test-webapp-deps-1.0.2.pom.lastUpdated
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping TEST Parent
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] TEST Parent ...................................... FAILURE [2.481s]
[INFO] TEST Dependency Management POM ................... SUCCESS [0.011s]
[INFO] TEST REST API .................................... SUCCESS [1.061s]
[INFO] TEST REST Implementation ......................... SUCCESS [0.482s]
[INFO] TEST Web Application ............................. SUCCESS [0.490s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.836s
[INFO] Finished at: Sat Jun 14 08:53:43 UTC 2014
[INFO] Final Memory: 47M/429M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m2:release-finish (default-cli) on project test-webapp-parent: Error finishing release: Error finishing release: Error verifying version state in poms: Error reloading Maven reactor projects: InvocationTargetException: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Failure to find com.test.test:test-webapp-deps:pom:1.0.2 in https://internalrepo/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-public-repository has elapsed or updates are forced @ line 14, column 16
[ERROR] [ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-api:jar is missing. @ line 117, column 15
[ERROR] [ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-impl:jar is missing. @ line 121, column 15
[ERROR] [ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:jaxrs-api:jar is missing. @ line 125, column 15: 4 problems were encountered while building the effective model for com.test.test:test-webapp:1.0.2
[ERROR] [ERROR] Non-resolvable import POM: Failure to find com.test.test:test-webapp-deps:pom:1.0.2 in https://internalrepo/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-public-repository has elapsed or updates are forced @ line 14, column 16
[ERROR] [ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-api:jar is missing. @ line 117, column 15
[ERROR] [ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-impl:jar is missing. @ line 121, column 15
[ERROR] [ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:jaxrs-api:jar is missing. @ line 125, column 15
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m2:release-finish (default-cli) on project test-webapp-parent: Error finishing release: Error finishing release: Error verifying version state in poms: Error reloading Maven reactor projects
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error finishing release: Error finishing release: Error verifying version state in poms: Error reloading Maven reactor projects
        at com.atlassian.maven.plugins.jgitflow.mojo.ReleaseFinishMojo.execute(ReleaseFinishMojo.java:136)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: com.atlassian.maven.plugins.jgitflow.exception.MavenJGitFlowException: Error finishing release: Error verifying version state in poms: Error reloading Maven reactor projects
        at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowReleaseManager.finish(DefaultFlowReleaseManager.java:123)
        at com.atlassian.maven.plugins.jgitflow.mojo.ReleaseFinishMojo.execute(ReleaseFinishMojo.java:132)
        ... 21 more
Caused by: com.atlassian.jgitflow.core.exception.JGitFlowExtensionException: Error verifying version state in poms: Error reloading Maven reactor projects
        at com.atlassian.maven.plugins.jgitflow.extension.command.VerifyReleaseVersionStateAndDepsCommand.execute(VerifyReleaseVersionStateAndDepsCommand.java:93)
        at com.atlassian.jgitflow.core.command.AbstractGitFlowCommand.runExtensionCommands(AbstractGitFlowCommand.java:219)
        at com.atlassian.jgitflow.core.command.AbstractBranchMergingCommand.checkoutTopicBranch(AbstractBranchMergingCommand.java:156)
        at com.atlassian.jgitflow.core.command.ReleaseFinishCommand.call(ReleaseFinishCommand.java:117)
        at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowReleaseManager.finish(DefaultFlowReleaseManager.java:89)
        ... 22 more
Caused by: com.atlassian.maven.plugins.jgitflow.exception.ReactorReloadException: Error reloading Maven reactor projects
        at com.atlassian.maven.plugins.jgitflow.helper.DefaultMavenExecutionHelper.reloadReactor(DefaultMavenExecutionHelper.java:199)
        at com.atlassian.maven.plugins.jgitflow.helper.DefaultMavenExecutionHelper.getSessionForBranch(DefaultMavenExecutionHelper.java:213)
        at com.atlassian.maven.plugins.jgitflow.helper.BranchHelper.getProjectsForCurrentBranch(BranchHelper.java:55)
        at com.atlassian.maven.plugins.jgitflow.extension.command.VerifyReleaseVersionStateAndDepsCommand.execute(VerifyReleaseVersionStateAndDepsCommand.java:77)
        ... 26 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.atlassian.maven.plugins.jgitflow.helper.DefaultMavenExecutionHelper.reloadReactor(DefaultMavenExecutionHelper.java:126)
        ... 29 more
Caused by: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find com.test.test:test-webapp-deps:pom:1.0.2 in https://internalrepo/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-public-repository has elapsed or updates are forced @ line 14, column 16
[ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-api:jar is missing. @ line 117, column 15
[ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-impl:jar is missing. @ line 121, column 15
[ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:jaxrs-api:jar is missing. @ line 125, column 15

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:179)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:105)
        ... 34 more
Caused by: org.apache.maven.model.building.ModelBuildingException: 4 problems were encountered while building the effective model for com.test.test:test-webapp:1.0.2
[ERROR] Non-resolvable import POM: Failure to find com.test.test:test-webapp-deps:pom:1.0.2 in https://internalrepo/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-public-repository has elapsed or updates are forced @ line 14, column 16
[ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-api:jar is missing. @ line 117, column 15
[ERROR] 'dependencies.dependency.version' for com.test.test:test-rest-impl:jar is missing. @ line 121, column 15
[ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:jaxrs-api:jar is missing. @ line 125, column 15

        at org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:416)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:368)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:359)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:145)
        ... 35 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:


It actually does update all pom version in the release branch just fine and the project is in a state were I can execute e.g. mvn deploy and it works as expected and deploys the release artifacts without any issues. But for some reason the reactor reaload failes because it is trying to download the test-webapp-deps-1.0.2.pom before it was actually installed or deployed.

Here is the maven version used:

mvn --version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 15:22:22+0000)
Maven home: /usr/local/maven
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_25/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-300.11.1.el6uek.x86_64", arch: "amd64", family: "unix"

Am I doing something wrong or is it a bug?

Thanks

Thorsten

unread,
Jun 15, 2014, 5:45:19 AM6/15/14
to maven-jgit...@googlegroups.com
So the issue seems to be the import of the dependecy management pom. I attached a minimalistic example to test/reproduce the issue with release-finish and import scope.
jgitflow-test.zip

Thorsten

unread,
Jun 15, 2014, 5:58:44 AM6/15/14
to maven-jgit...@googlegroups.com
I was able to reg an account I filed an issue for this now: https://ecosystem.atlassian.net/browse/MJF-158


Am Samstag, 14. Juni 2014 11:20:06 UTC+2 schrieb Thorsten:
Reply all
Reply to author
Forward
0 new messages