Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Null pointer when importing a maven project

As a related note, there are other things in m2e that tries to get configuration from the maven-compiler-plugin. One such thing is the character encoding. I *think* that that code handles null, but I'm quite sure there is no IT for it, which should be added.


On Mon, May 30, 2011 at 12:20, Xavi Beumala <xbeumala@xxxxxxxxx> wrote:

Hi Fred for such a quick response.


I have just come up with the same solution after debugging what was going on. the version fro maven-compiler-plugin is missing.


many again!



From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] On Behalf Of Fred Bricon
Sent: lunes, 30 de mayo de 2011 12:19
To: Maven Integration for Eclipse users mailing list
Subject: Re: [m2e-users] Null pointer when importing a maven project


Looks like, since this is an unconventional package, the maven-compiler-plugin is not bound to the maven lifecycle.
The java configurator is trying to infer the java version from the maven-compiler-plugin configuration, but fails. You can try adding
in your <plugins> node. I'm not sure it'll work. In any case, you should open an issue at


Fred Bricon

2011/5/30 Xavi Beumala <xbeumala@xxxxxxxxx>

Hi all,

I have a very simple project (basically it's a folder with the pom.xml and a src/main/resources empty folder), see pom file below.
When importing it In Eclipse as an existing maven project I get an exception (copied below). The problem is that after the exception the project is imported but it's only half configured (i.e. the classpath is wrong).

Any hint on what might be going on?

Many thanks

// pom.xml
<project xmlns=""

 <name>New Test Project</name>


// RTE
An internal error occurred during: "Importing Maven projects".

       at org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>(
       at org.apache.maven.plugin.DefaultPluginDescriptorCache.createKey(
       at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(
       at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(
       at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(
       at org.maven.ide.eclipse.internal.embedder.MavenImpl.getMojoParameterValue(
       at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.getCompilerLevel(
       at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.addJavaProjectOptions(
       at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.configure(
       at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(
       at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(
       at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(
       at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(
       at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(
       at org.maven.ide.eclipse.wizards.MavenImportWizard$1.runInWorkspace(

m2e-users mailing list

"Have you tried turning it off and on again" - The IT Crowd

m2e-users mailing list

Back to the top