MyEclipse Forums
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
madhockeydad
Post subject: Web Applications via New -> Maven Project  PostPosted: Nov 04, 2010 - 04:53 PM



Joined: Jun 28, 2010
Posts: 18

Hi

If I choose to make a new Other -> Maven Project and select the maven-archetype-webapp I always get the exception shown below. If I create the missing directories (java under main and test under src) then the project is structured properly. Also, for some reason under Properties for the project -> Java Build Path -> Source shows the "resources" directory as the source. I remove that and then add src/main/java and src/test/java as the source directories then the web application project built from the Maven Project template will work properly including building the ear (all unit tests will build). However, if I do New -> Web Project and then "Add Maven support", I can't get the unit tests to run as the conventional structure is not supported. I believe the issue above with the exception stack below is a MyEclipse defect. Any help with this is greatly appreciate.

David

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:55)
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Web Applications via New -> Maven Project  PostPosted: Nov 08, 2010 - 10:22 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442


_________________
Joy
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   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits