On 10/8/2011 11:41, Fred Bricon wrote:
Can you get more details on the
exception you're getting?
(<workspace>/.metadata/.log)
This exception occurs after I import the project:
!ENTRY
org.eclipse.core.jobs
4 2 2011-08-12 11:23:37.552
!MESSAGE An internal error occurred during: "Importing Maven
projects".
!STACK 0
java.lang.IllegalArgumentException
at
org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.addProjectFacet(FacetedProjectWorkingCopy.java:816)
at
org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:301)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at
org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:339)
at
org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.configure(WebProjectConfiguratorDelegate.java:144)
at
org.maven.ide.eclipse.wtp.AbstractProjectConfiguratorDelegate.configureProject(AbstractProjectConfiguratorDelegate.java:84)
at
org.maven.ide.eclipse.wtp.WTPProjectConfigurator.configure(WTPProjectConfigurator.java:54)
at
org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:72)
at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:302)
at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:234)
at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:150)
at
org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$1.doCreateMavenProjects(MavenImportWizard.java:164)
at
org.eclipse.m2e.core.ui.internal.wizards.AbstractCreateMavenProjectsOperation.run(AbstractCreateMavenProjectsOperation.java:73)
at
org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$3.runInWorkspace(MavenImportWizard.java:249)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Does updating the maven
configuration on your projects work after import?
Strangely, it works only in the second time. The first time
I run it, it shows: "Unable to update maven configuration
for the following projects: solare-intranet" and still shows
the error "Project configuration is not up-to-date with
pom.xml".
The second time, the message "Unable to update..." still
shows, but the "Project configuration is not up-to-date..."
is gone and the MAVEN2_CLASSPATH_CONTAINER warning appears.
When I click to update project configuration, nothing
appears in the console.