You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Edwin Punzalan (JIRA)" <ji...@codehaus.org> on 2005/11/08 07:47:06 UTC

[jira] Commented: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

    [ http://jira.codehaus.org/browse/MNG-1355?page=comments#action_50280 ] 

Edwin Punzalan commented on MNG-1355:
-------------------------------------

Hi, the cause of the infinite loop is not the depth of the project and/or the modules in it.

Look in the ui-toolkit/subproject/swing/pom.xml and you'll see that the project has the same artifactId as the parent.  That is what's causing the infinite loop.


> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>      Fix For: 2.0.1

>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org