- This topic has 3 replies, 3 voices, and was last updated 13 years, 1 month ago by support-tony.
-
AuthorPosts
-
maiconramonesParticipantHi Guys,
I want create a maven project but MyEclipse doesn’t work for me.
See Error Log:
eclipse.buildId=unknown
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=pt_BR
Framework arguments: export MOZILLA_FIVE_HOME=xulrunner-1.9.2.17
Command-line arguments: -os linux -ws gtk -arch x86_64 export MOZILLA_FIVE_HOME=xulrunner-1.9.2.17Error
Sun Oct 09 10:55:20 BRT 2011
Failed to create project.java.lang.NullPointerException
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.findWebRoot(MyEclipseProjectSupport.java:204)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configureWebProject(MyEclipseProjectSupport.java:71)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configure(MyEclipseProjectSupport.java:57)
at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57)
at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:332)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:267)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:175)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.createArchetypeProject(ProjectConfigurationManager.java:498)
at org.maven.ide.eclipse.wizards.MavenProjectWizard$5.runInWorkspace(MavenProjectWizard.java:279)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)Thank you
support-swapnaModeratormaiconramones,
Sorry that you are seeing this issue with MyEclipse. I could not replicate the issue at my end with MyEclipse 9.1
Can you answer some more questions for me to understand the issue better ?
1) Can you share your Build ID from Help > About MyEclipse Enterprise Workbench > Build ID ? Paste the Build ID here.
2) How did you install MyEclipse ? Is it through Pulse/ All-In-One Installer or Archived Update Site?
3) Can you please elaborate on what exact issue you see when trying to create a Maven project ? Is the project created at all or are there any missing files ?
4) Also please list out the exact steps you are following for us to be able to replicate the issue at our end ? Clear the contents of the .log file , replicate the issue and paste the entire contents of the log file here.
5) Alternatively you can use New -> Web Project and then “Add Maven support”.
Let us know how it works for you.
maiconramonesParticipantHi, I’m sorry I’m late…
Answers…
1) Can you share your Build ID from Help > About MyEclipse Enterprise Workbench > Build ID ? Paste the Build ID here.
Answer: Build id: 9.1-201107012) How did you install MyEclipse ? Is it through Pulse/ All-In-One Installer or Archived Update Site?
Answer: All-in-One Installer, I installed with the myeclipse-9.1-offline-installer-linux.run
3) Can you please elaborate on what exact issue you see when trying to create a Maven project ? Is the project created at all or are there any missing files ?
Answer: So, after the message error, the project is created but some files not exist. Like a folder src/main/java4) Also please list out the exact steps you are following for us to be able to replicate the issue at our end ? Clear the contents of the .log file , replicate the issue and paste the entire contents of the log file here.
Answer: Steps to replicate
1 – new -> Other -> Maven Project -> Next ->
2 – I selected Artifact Id maven-archetype-webapp -> Next
3 – Complete information Group Id and Artifact Id -> Finish -> Error but the project is created incomplete.The log was:
java.lang.NullPointerException
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.findWebRoot(MyEclipseProjectSupport.java:204)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configureWebProject(MyEclipseProjectSupport.java:71)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configure(MyEclipseProjectSupport.java:57)
at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57)
at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:332)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:267)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:175)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.createArchetypeProject(ProjectConfigurationManager.java:498)
at org.maven.ide.eclipse.wizards.MavenProjectWizard$5.runInWorkspace(MavenProjectWizard.java:279)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)So I edited de archive under .settings, .project and .classpath and works for me, but requiring a lot of work.
Thanks.
support-tonyKeymastermaiconramones,
The project that is created is complete from the perspective of the maven archetype. If you generate a project outside of MyEclipse, with maven, using that archetype, you’ll get the folders that MyEclipse generates. The target folders are a MyEclipse addition.
However, there is still the problem of the exception which may mean that MyEclipse intended to do more work in setting up the project. We’re looking into this.
Sorry for the inconvenience. Maven support will be improved in the next release, due this month.
-
AuthorPosts