Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1491 Perform a review of Forge 2.x
  3. FORGE-1509

"Could not resolve managed dependencies in project" goes into loop

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • None
    • 2.0.0.CR2
    • UI - Shell
    • None

      I removed a managed dependency :

      project-remove-managed-dependencies org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar::1.0.0.Draft-16
      

      But not the dependency itself. The the Forge console becomes unusable and I need to kill the process. The following logs go on and on, the java process growth (>900Mb) and then I kill the process.

      17:18:53,184 SEVERE [org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet] (Aesh Read Loop 751432670) Could not resolve managed dependencies in project [/Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/pom.xml]. : java.lang.RuntimeException: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar is missing. @ line 47, column 17
      
      	at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getProjectBuildingResult(MavenFacetImpl.java:337) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_f26b4fe5-244d-4837-9b87-f56ef61e8f89.getProjectBuildingResult(MavenFacetImpl_$$_javassist_f26b4fe5-244d-4837-9b87-f56ef61e8f89.java) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet.getEffectiveDependencies(MavenDependencyFacet.java:174) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet.getEffectiveDependency(MavenDependencyFacet.java:156) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet.hasEffectiveDependency(MavenDependencyFacet.java:150) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.maven.projects.facets.MavenDependencyFacet_$$_javassist_5d93331d-6c9b-46d7-87ad-0b2a08c661ee.hasEffectiveDependency(MavenDependencyFacet_$$_javassist_5d93331d-6c9b-46d7-87ad-0b2a08c661ee.java) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.javaee.AbstractJavaEEFacet.dependencyRequirementsMet(AbstractJavaEEFacet.java:97) [javaee-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.javaee.AbstractJavaEEFacet.isInstalled(AbstractJavaEEFacet.java:86) [javaee-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.facets.AbstractFacet_$$_javassist_ae9ac6dc-ec4e-4f52-aafa-8d5a62555325.isInstalled(AbstractFacet_$$_javassist_ae9ac6dc-ec4e-4f52-aafa-8d5a62555325.java)
      	at org.jboss.forge.addon.facets.AbstractFaceted.register(AbstractFaceted.java:75) [facets-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.facets.FacetFactoryImpl.register(FacetFactoryImpl.java:310) [facets-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.facets.FacetFactoryImpl.register(FacetFactoryImpl.java:245) [facets-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.facets.FacetFactoryImpl_$$_javassist_672e742f-af74-42a6-87fe-dd4986e3ac3a.register(FacetFactoryImpl_$$_javassist_672e742f-af74-42a6-87fe-dd4986e3ac3a.java) [facets-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.container.cdi.services.ExportedInstanceLazyLoader.invoke(ExportedInstanceLazyLoader.java:64) [cdi-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.facets.FacetFactory_$$_javassist_5c825df3-bac2-453e-8c71-1adcee48cbb7.register(FacetFactory_$$_javassist_5c825df3-bac2-453e-8c71-1adcee48cbb7.java) [facets-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.registerAvailableFacets(ProjectFactoryImpl.java:345) [projects-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.findProject(ProjectFactoryImpl.java:197) [projects-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.findProject(ProjectFactoryImpl.java:126) [projects-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.findProject(ProjectFactoryImpl.java:110) [projects-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl_$$_javassist_15065f79-b53f-4a95-8e79-254b9f46ee60.findProject(ProjectFactoryImpl_$$_javassist_15065f79-b53f-4a95-8e79-254b9f46ee60.java) [projects-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.container.cdi.services.ExportedInstanceLazyLoader.invoke(ExportedInstanceLazyLoader.java:64) [cdi-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.ProjectFactory_$$_javassist_cc1cb134-6f77-43d4-a2cb-38c60d50ee16.findProject(ProjectFactory_$$_javassist_cc1cb134-6f77-43d4-a2cb-38c60d50ee16.java) [projects-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.ui.AbstractProjectCommand.getSelectedProject(AbstractProjectCommand.java:76) [projects-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.ui.AbstractProjectCommand.constraintsSatisfied(AbstractProjectCommand.java:43) [projects-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.projects.ui.AbstractProjectCommand.isEnabled(AbstractProjectCommand.java:36) [projects-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) [:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.parser.java.ui.JavaEnumCommand_$$_javassist_70f7c5ca-fce5-4513-af3b-3884eb2d8955.isEnabled(JavaEnumCommand_$$_javassist_70f7c5ca-fce5-4513-af3b-3884eb2d8955.java) [parser-java-impl-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.ui.util.Commands.getEnabledCommands(Commands.java:27) [ui-api-2.0.0.CR2.jar:2.0.0.CR2]
      	at org.jboss.forge.addon.shell.CommandManager.getAllCommandNames(CommandManager.java:46)
      	at org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.getForgeCommandNames(ForgeCommandRegistry.java:170)
      	at org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.getAllCommandNames(ForgeCommandRegistry.java:161)
      	at org.jboss.aesh.console.AeshConsoleImpl.completeCommandName(AeshConsoleImpl.java:177)
      	at org.jboss.aesh.console.AeshConsoleImpl.access$000(AeshConsoleImpl.java:47)
      	at org.jboss.aesh.console.AeshConsoleImpl$AeshCompletion.complete(AeshConsoleImpl.java:224)
      	at org.jboss.aesh.console.Console.complete(Console.java:1366)
      	at org.jboss.aesh.console.Console.parseOperation(Console.java:717)
      	at org.jboss.aesh.console.Console.processInternalOperation(Console.java:584)
      	at org.jboss.aesh.console.Console.read(Console.java:554)
      	at org.jboss.aesh.console.Console.access$100(Console.java:78)
      	at org.jboss.aesh.console.Console$5.run(Console.java:504)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      Caused by: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar is missing. @ line 47, column 17
      
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:179) [maven-core-3.1.1.jar:3.1.1]
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:105) [maven-core-3.1.1.jar:3.1.1]
      	at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getProjectBuildingResult(MavenFacetImpl.java:329) [maven-impl-projects-2.0.0.CR2.jar:2.0.0.CR2]
      	... 83 more
      Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for com.pluralsight.persistence.module07:pluralsight-persistence:1.0.0-SNAPSHOT
      [ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar is missing. @ line 47, column 17
      
      	at org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195) [maven-model-builder-3.1.1.jar:3.1.1]
      	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:416) [maven-model-builder-3.1.1.jar:3.1.1]
      	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:368) [maven-model-builder-3.1.1.jar:3.1.1]
      	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:359) [maven-model-builder-3.1.1.jar:3.1.1]
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:145) [maven-core-3.1.1.jar:3.1.1]
      	... 85 more
      

              rhn-support-ggastald George Gastaldi
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: