o Added workaround for bug in plexus-velocity

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@801392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-05 19:55:57 +00:00
parent 76a1b62fac
commit ffca6bafc9
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ public class VelocityMojo
{
// velocityComponent engine should not be null
// this is the real test to check that we got the right Initializable interface in both Plexus and the component
velocityComponent.getEngine().getTemplate( "/template.vm" );
/*
* NOTE: There's a bug in the plexus-velocity:1.1.7 component that fails to transform "/template.vm" into
* a proper resource name before searching the context class loader so we avoid the leading slash here.
*/
velocityComponent.getEngine().getTemplate( "template.vm" );
}
catch ( Exception e )
{