- This topic has 1 reply, 2 voices, and was last updated 14 years ago by support-joy.
-
AuthorPosts
-
madhockeydadMemberHi
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) -
AuthorPosts