MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
maiconramones
Post subject: Failed to create project  PostPosted: Oct 09, 2011 - 03:11 PM
Registered Member
Registered Member


Joined: Jan 14, 2011
Posts: 27

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Oct 10, 2011 - 06:25 AM



Joined: Nov 11, 2010
Posts: 2595

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.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
maiconramones
Post subject:   PostPosted: Oct 17, 2011 - 12:08 AM
Registered Member
Registered Member


Joined: Jan 14, 2011
Posts: 27

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 17, 2011 - 09:32 AM



Joined: Mar 09, 2011
Posts: 939

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.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits