Erik, Don't use goals in your template.jelly script. Simply place all jelly scripting at the top level within the <project> node. For example, your example should like as follows:
<?xml version="1.0"?> <project default="broadTemplate" xmlns:j="jelly:core" xmlns:i="jelly:interaction" xmlns:ant="jelly:ant" xmlns:define="jelly:define" xmlns:u="jelly:util"> <echo>In the broad template.jelly file.</echo> </project> Works like a charm for my templates. -- Chuck > -----Original Message----- > From: Erik Husby [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 8:07 PM > To: [EMAIL PROTECTED] > Subject: The Genapp plugin > > > Just started looking at the genapp plugin. Setting up a template for use > in my organization. > > One of the things you can do for a template is have a "template.jelly" > where you are supposed to be able > to do template specific tasks. However, there is no documentation on how > that template.jelly file is to be > setup and none of the provided templates use this feature. > > So I created a template.jelly that looks like this: > <?xml version="1.0"?> > <project > default="broadTemplate" > xmlns:j="jelly:core" > xmlns:i="jelly:interaction" > xmlns:ant="jelly:ant" > xmlns:define="jelly:define" > xmlns:u="jelly:util" > > > <goal name="broadTemplate"> > <echo>In the broad template.jelly file.</echo> > </goal> > > </project> > > When I run the template is processed but the system fails when it tries > to execute my template.jelly file > > What does the error message "Plugin Housing can not be null" mean? It is > issued by the class MavenGoalAction. > > I've verified that the jelly statement <j:import file="somefile"/> in > another maven.xml file will generate the > same error. > > Its apparent that this feature was not tested, and I have raised an > issue in Jira for it (mpgenapp-16) but if someone has an explanation and > a work around, I would be most grateful. > > > -- Sample output from executing genap > > Z:\IdeaProjects\junk>maven > -Dmaven.genapp.template.repository=z:\.maven\template genapp > __ __ > | \/ |__ _Apache__ ___ > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > |_| |_\__,_|\_/\___|_||_| v. 1.0 > > Enter a project template to use: [default] > broad > Please specify an id for your application: [app] > junk > Please specify a name for your application: [Example Application] > JunkApplication > Please specify the package for your application: [example.app] > name.erikhusby.junk > Please specify the CVS module for this application. [sequence/app] > name/junk > build:start: > > genapp: > [copy] Copying 1 file to > Z:\IdeaProjects\junk\src\java\name\erikhusby\junk > [copy] Copying 1 file to > Z:\IdeaProjects\junk\src\test\name\erikhusby\junk > [echo] Use template.jelly file present in z:\.maven\template/broad. > > BUILD FAILED > File...... z:\.maven\cache\maven-genapp-plugin-2.2\plugin.jelly > Element... j:import > Line...... 173 > Column.... 86 > file:/z:/.maven/template/broad/template.jelly:10:32: <goal> Plugin > Housing can not be null > Total time: 22 seconds > Finished at: Wed Jul 21 14:24:13 EDT 2004 > > Z:\IdeaProjects\junk> > > -- > Erik Husby > Team Lead for Software Quality Automation > Broad Institute of MIT and Harvard > Rm. 2192 320 Charles St > Cambridge, MA 02141-2023 > mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]