facebook

Failed to create project

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #320334 Reply

    maiconramones
    Participant

    Hi 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.17

    Error
    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

    #320342 Reply

    support-swapna
    Moderator

    maiconramones,

    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.

    #320472 Reply

    maiconramones
    Participant

    Hi, 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-20110701

    2) 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/java

    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.
    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.

    #320479 Reply

    support-tony
    Keymaster

    maiconramones,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Failed to create project

You must be logged in to post in the forum log in