Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28817

M2E error when importing Maven project (jbosstools-base for example) into Eclipse workspace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.26.0.Final
    • build, maven, updatesite
    • None
    • ---

      there is an NPE error when importing JBT maven project into eclipse workspace. I have installed Eclipse 2022-12 RC1 + JBT 4.26.0.Final installed from snapshots update site.

      eclipse.buildId=4.26.0.20221124-1200
      java.version=17.0.5
      java.vendor=Eclipse Adoptium
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product org.eclipse.epp.package.jee.product
      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
      
      This is a continuation of log file /home/odockal/eclipse-workspace-2022-12-RC1-JBT4260Final-snapshots/.metadata/.bak_0.log
      Created Time: 2022-12-12 14:00:43.918
      
      org.eclipse.m2e.core
      Error
      Mon Dec 12 15:53:23 CET 2022
      Could not update project org.jboss.tools.common.text.xml configuration
      
      java.lang.NullPointerException: Cannot invoke "org.eclipse.pde.core.build.IBuildEntry.getTokens()" because "entry" is null
      	at org.eclipse.m2e.pde.connector.PDEProjectHelper.getDefaultLibraryOutputFolder(PDEProjectHelper.java:140)
      	at org.eclipse.m2e.pde.connector.PDEProjectHelper.getOutputLocation(PDEProjectHelper.java:120)
      	at org.eclipse.m2e.pde.connector.PDEProjectHelper.configurePDEBundleProject(PDEProjectHelper.java:91)
      	at org.eclipse.m2e.pde.connector.TychoPackagingsConfigurator.configure(TychoPackagingsConfigurator.java:50)
      	at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:123)
      	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$6(ProjectConfigurationManager.java:494)
      	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:364)
      	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:274)
      	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:488)
      	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$4(ProjectConfigurationManager.java:416)
      	at java.base/java.util.Collection.removeIf(Collection.java:576)
      	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:410)
      	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.lambda$3(ProjectConfigurationManager.java:340)
      	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:364)
      	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:274)
      	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:213)
      	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1070)
      	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:339)
      	at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:80)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      
      
      

              stephane.bouchet Stephane Bouchet
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: