maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Theussl (JIRA)" <j...@codehaus.org>
Subject [jira] (MSITE-619) Method calculateLink threw exception for reference $PathTool
Date Fri, 13 Apr 2012 06:37:02 GMT

     [ https://jira.codehaus.org/browse/MSITE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukas Theussl reopened MSITE-619:
---------------------------------

      Assignee:     (was: Lukas Theussl)

I doubt that this worked with any recent version of the site plugin. Unfortunately, the Exception
message comes from the Velocity parser, so we'd have to manually check for null hrefs in the
vm script. I still maintain that a href is required, so the Exception is valid, but I'd be
happy to apply a patch to log a better error message.
                
> Method calculateLink threw exception for reference $PathTool
> ------------------------------------------------------------
>
>                 Key: MSITE-619
>                 URL: https://jira.codehaus.org/browse/MSITE-619
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, site descriptor
>    Affects Versions: 3.0
>         Environment: Maven 3.0.3, MacOS-X 10.6.8
>            Reporter: Oliver Boehm
>
> After running 'mvn site:site' I get the following errors after upgrading to maven-site-plugin
3.0 (with 3.0-beta-3 this error does not happen!):
> ...
> [ERROR] Method calculateLink threw exception for reference $PathTool in template org/apache/maven/doxia/siterenderer/resources/default-site.vm
at  [2,31]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 34.451s
> [INFO] Finished at: Sun Nov 20 20:29:56 CET 2011
> [INFO] Final Memory: 22M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli)
on project patterntesting-rt: Error during page generation: Error while generating code. Invocation
of method 'calculateLink' in  class org.codehaus.plexus.util.PathTool threw exception java.lang.NullPointerException
@ org/apache/maven/doxia/siterenderer/resources/default-site.vm[2,41] -> [Help 1]
> ...
> These are the POMs which are used:
> - http://patterntesting.cvs.sourceforge.net/viewvc/patterntesting/PatternTesting10/patterntesting-parent/pom.xml
> - http://patterntesting.cvs.sourceforge.net/viewvc/patterntesting/PatternTesting10/patterntesting-rt/pom.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message