[ 
http://jira.codehaus.org/browse/MDEP-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Kitching updated MDEP-134:
--------------------------------

    Attachment: pom.xml

This pom fails every time for me. Interestingly, when I was removing entries 
which only exist in our local repos, the crash stopped happening. But when I 
added in the same number of other random dependencies it reappeared again.

So it looks like some kind of "buffer overflow" is happening. Or maybe it is a 
jvm "out of memory" issue that is being silently suppressed, and turned into 
some other kind of exception?

But it can also be turned on and off via uncommenting the section I referred to 
in the original posting (the exclude section inside the jasperreports 
dependency).

Very odd, I hope this fails for you!

BTW:

> java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)

> uname -a
Linux ***** 2 2.6.18.8-0.7-default #1 SMP Tue Oct 2 17:21:08 UTC 2007 x86_64 
x86_64 x86_64 GNU/Linux


> dependency:tree throws exception
> --------------------------------
>
>                 Key: MDEP-134
>                 URL: http://jira.codehaus.org/browse/MDEP-134
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: tree
>    Affects Versions: 2.0-alpha-5
>            Reporter: Simon Kitching
>            Assignee: Brian Fox
>         Attachments: pom.xml
>
>
> Running
>    mvn -Papache 
> org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree 
> on a pom containing the following entry throws an exception, unless an 
> exclusion is applied as shown below.
>               <dependency>
>                       <groupId>jasperreports</groupId>
>                       <artifactId>jasperreports</artifactId>
>                       <version>2.0.0</version>
>                       <scope>compile</scope>
>                       <exclusions>
>                               <!-- This exclusion needed to avoid crash in 
> dependency:tree version 2.0-alpha-5-SNAPSHOT -->
>                               <exclusion>
>                                       <groupId>commons-digester</groupId>
>                                       
> <artifactId>commons-digester</artifactId>
>                               </exclusion>
>                               <exclusion>
>                                       <groupId>xml-apis</groupId>
>                                       <artifactId>xml-apis</artifactId>
>                               </exclusion>
>                               <exclusion>
>                                       <groupId>eclipse</groupId>
>                                       <artifactId>jdtcore</artifactId>
>                               </exclusion>
>                       </exclusions>
>               </dependency>
>               <dependency>
>                       <groupId>commons-digester</groupId>
>                       <artifactId>commons-digester</artifactId>
>                       <version>1.8</version>
>                       <scope>compile</scope>
>               </dependency>
> Exception:
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] version was null for commons-digester:commons-digester
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException: version was null for 
> commons-digester:commons-digester
>         at 
> org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:362)
>         at 
> org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:225)
>         at 
> org.apache.maven.shared.dependency.tree.DependencyTreeResolutionListener.flushDependencyManagement(DependencyTreeResolutionListener.java:524)
>         at 
> org.apache.maven.shared.dependency.tree.DependencyTreeResolutionListener.omitForNearer(DependencyTreeResolutionListener.java:209)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.fireEvent(DefaultArtifactCollector.java:487)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.fireEvent(DefaultArtifactCollector.java:462)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:234)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:370)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:370)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:76)
>         at 
> org.apache.maven.shared.dependency.tree.DefaultDependencyTreeBuilder.buildDependencyTree(DefaultDependencyTreeBuilder.java:102)
>         at 
> org.apache.maven.plugin.dependency.TreeMojo.execute(TreeMojo.java:218)
> My uneducated guess is that for that particular version of the dependency, 
> neither the dependency's pom nor any parent pom defines a version for 
> commons-digester.
> PS: dependency:tree rocks!

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