[ http://jira.andromda.org/browse/ANDROMDAPP-38?page=comments#action_15352 ]
heapifyman commented on ANDROMDAPP-38: -------------------------------------- the method should look like this, I think: private MavenProject getRootProject() throws MojoExecutionException, ArtifactResolutionException, ArtifactNotFoundException { if (this.rootProject == null) { final MavenProject firstParent = this.project.getParent(); File rootFile = this.project.getFile(); if (firstParent != null) { for (this.rootProject = firstParent, rootFile = new File(rootFile.getParentFile().getParentFile(), POM_FILE_NAME); this.rootProject.getParent() != null && this.rootProject.getParent().getFile() != null; this.rootProject = this.rootProject.getParent(), rootFile = new File(rootFile.getParentFile().getParentFile(), POM_FILE_NAME)) { ; } // - if the project has no file defined, use the rootFile if (this.rootProject != null && this.rootProject.getFile() == null && rootFile.exists()) { this.rootProject.setFile(rootFile); } } else { this.rootProject = this.project; } } return this.rootProject; } > org.andromda.maven.plugin.andromdapp.EclipseMojo's getRootProject() doesn't > find the correct root project > --------------------------------------------------------------------------------------------------------- > > Key: ANDROMDAPP-38 > URL: http://jira.andromda.org/browse/ANDROMDAPP-38 > Project: AndroMDApp Project Generator > Type: Bug > Environment: andromda 3.3-SNAPSHOT, Win XP Pro SP2, jdk 1.5.0_15, maven 2.0.8 > Reporter: heapifyman > Assignee: Chad Brandon > Priority: Blocker > > Create a j2ee project with latest andromda 3.3-SNAPSHOT. > andromdapp:eclipse goal will generate .project and .classpath files in the > subproject mda instead of directly in the base directory -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone