[ http://jira.codehaus.org/browse/MNG-1876?page=all ]
     
Milos Kleint closed MNG-1876:
-----------------------------

     Resolution: Fixed
    Fix Version: 2.1

was fixed in embedder refactor branch and is now in trunk.

> exception coming from the embedder prohibits modifying the pom file. 
> ---------------------------------------------------------------------
>
>          Key: MNG-1876
>          URL: http://jira.codehaus.org/browse/MNG-1876
>      Project: Maven 2
>         Type: Bug

>   Components: Embedding
>     Versions: 2.0.1
>  Environment: maven embedder 2.0.1, netbeans mevenide2 source snapshot.
>     Reporter: Milos Kleint
>     Assignee: Milos Kleint
>     Priority: Blocker
>      Fix For: 2.1
>  Attachments: duplicates.patch, newversion.patch
>
>
> the embedder is seriously broken when it has to reload the project 
> definition. When I open a project and the embedder reads it's structures for 
> teh first time, it's fine, but when the user changes the pom.xml, I need to 
> reload the data. reusing the same embedder instance, 
> I get this strange exception and the whole project/IDE is mainly unusable 
> because of reoccuring exceptions. That's a showstpper for any serious IDE 
> integration.
> org.apache.maven.project.ProjectBuildingException: Duplicate project ID found 
> in /home/mkleint/src/mevenide/mevenide2/netbeans/libs/embedder/pom.xml
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:298)
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:274)
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:169)
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:159)
>       at 
> org.apache.maven.embedder.MavenEmbedder.readProjectWithDependencies(MavenEmbedder.java:307)
>       at 
> org.codehaus.mevenide.netbeans.NbMavenProject.getOriginalMavenProject(NbMavenProject.java:131)
> <snip>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to