Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Cannot enable Maven on a java project

This definitely looks like a bug, but we'd need a sample project and
exact steps to reproduce the problem in order to be able to debug it.

--
Regards,
Igor

On 11-11-11 1:43 AM, Bjørn Willy Arntzen wrote:
Yes, it has. And a mvn clean install from my command line maven, worked fine.

But I found a workaround, it seems. I deleted the project (without removing the files), then I did a Import Existing Maven Project, and that worked.

Normally I just Check Out from SVN and then enables Maven Dependency Management.

I will try this on some other projects, just to check that other projects also has this 'bug' ... ?


Med vennlig hilsen

Bjørn Willy Arntzen
Seniorkonsulent

Kommunal Landspensjonskasse gjensidig forsikringsselskap
Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo
Mob: +4797759007
www.klp.no

Vennligst tenk på miljøet før du skriver ut denne e-posten
-----Opprinnelig melding-----
Fra: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] På vegne av Igor Fedorenko
Sendt: 10. november 2011 23:14
Til: m2e-users@xxxxxxxxxxx
Emne: Re: [m2e-users] Cannot enable Maven on a java project

Does your project have pom.xml?

--
Regards,
Igor

On 11-11-10 4:52 PM, Bjørn Willy Arntzen wrote:
I updated my RAD 8.0.3 m2e to v1.1.0.20111108-0328 and that may have
broken something.

On a plain java project I'm trying to enable Maven, but get this error.

!MESSAGE An internal error occurred during: "Enabling Maven Dependency
Management".

!STACK 0

java.lang.NullPointerException

at
org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory.getMavenPluginEmbeddedMetadataSources(Unknown
Source)

at
org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory.getProjectMetadataSources(Unknown
Source)

at
org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory.calculateEffectiveLifecycleMappingMetadata(Unknown
Source)

at
org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory.calculateLifecycleMapping(Unknown
Source)

at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.setupLifecycleMapping(Unknown
Source)

at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(Unknown
Source)

at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(Unknown
Source)

at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(Unknown
Source)

at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.configureNewMavenProject(Unknown
Source)

at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.enableMavenNature(Unknown
Source)

at
org.eclipse.m2e.core.ui.internal.actions.EnableNatureAction$1.run(Unknown Source)

at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

Med vennlig hilsen

*Bjørn Willy Arntzen
*Seniorkonsulent

*

Kommunal Landspensjonskasse *gjensidig forsikringsselskap
Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo
Mob: +4797759007
www.klp.no<http://www.klp.no>



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top