can you display the maven-metadata.xml (and your project's pom.xml) and display 
the command you are using which *should* reproduce this error?

thanks,
Martin 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de 
déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> From: dhug...@alagad.com
> Date: Sun, 10 May 2009 09:13:14 -0400
> Subject: Re: Creating archetypes and disabling velocity
> To: users@maven.apache.org
> 
> Sorry to keep harping on this topic.  I'm hoping someone can offer some
> advice. :)
> 
> As a last test, I intentionally put invalid XML in the
> archetype-metadata.xml file.  I was able to run archetype:create without it
> reporting an XML error.  This tells me it's ignoring my metadata file
> anyhow.... any ideas on what I can do to work around this?
> 
> Thanks,
> 
> Doug Hughes, President
> Alagad Inc.
> dhug...@alagad.com
> 888 Alagad4 (x300)
> Office: 919-550-0755
> Fax: 888-248-7836
> 
> 
> On Sun, May 10, 2009 at 8:58 AM, Doug Hughes <dhug...@alagad.com> wrote:
> 
> > I wanted to add to my last message.  I found some instructions on using
> > archetype:create-from-project to create a new archetype.  I followed them to
> > create a new archetype project.  This had a slightly different file layout
> > than the webapp archetype I was trying to customize before.  However, I'm
> > still having the same problem I did before.  Specifically, archetype:create
> > seems to be trying to send every file through the velocity system.
> >
> > The archetype:create-from-project did create an archetype-metadata.xml file
> > which I've modified as such in an attempt to completely remove all filtering
> > from my archetype.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >  <archetype-descriptor name="ColdFusion-archetype">
> >   <fileSets>
> >     <fileSet filtered="false" packaged="true">
> >       <directory>src/main</directory>
> >       <includes>
> >         <include>**/*.cfm</include>
> >       </includes>
> >     </fileSet>
> >   </fileSets>
> > </archetype-descriptor>
> >
> > Unfortuantly, when I run archetype:create I'm still getting the same errors
> > from velocity.  Am I going about this the right way?  Is there any good
> > documentation on this stuff?  Or maybe a useful book I could buy?
> >
> > Thanks,
> >
> > Doug Hughes, President
> > Alagad Inc.
> > dhug...@alagad.com
> > 888 Alagad4 (x300)
> > Office: 919-550-0755
> > Fax: 888-248-7836
> >
> >
> > On Sat, May 9, 2009 at 11:06 PM, Doug Hughes <dhug...@alagad.com> wrote:
> >
> >> Hi,
> >>
> >> I'm in the process of creating my first archetype.  I've based it on the
> >> simple-webapp archetype, but I've added the entire ColdFusion application.
> >> This is 4114 files total.  I can build and install the archetype just fine
> >> using mvn install just fine.  However, when I use mvn archetype:create to
> >> create a new project based on my archetype I get this in the resulting
> >> output:
> >>
> >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> >> reference : template =
> >> archetype-resources/src/main/webapp/CFIDE/adminapi/_datasource/getaccessdefaultsfromregistry.cfm
> >> [line 17,column 20] : $coldfusion is not a valid reference.
> >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> >> reference : template =
> >> archetype-resources/src/main/webapp/CFIDE/adminapi/_datasource/getaccessdefaultsfromregistry.cfm
> >> [line 17,column 31] : $tagext is not a valid reference.
> >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> >> reference : template =
> >> archetype-resources/src/main/webapp/CFIDE/adminapi/_datasource/getaccessdefaultsfromregistry.cfm
> >> [line 17,column 38] : $lang is not a valid reference.
> >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> >> reference : template =
> >> archetype-resources/src/main/webapp/CFIDE/adminapi/_datasource/getaccessdefaultsfromregistry.cfm
> >> [line 17,column 43] : $RegistryTag is not a valid reference.
> >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> >> reference : template =
> >> archetype-resources/src/main/webapp/CFIDE/adminapi/_datasource/getaccessdefaultsfromregistry.cfm
> >> [line 62,column 244] : $Lcoldfusion is not a valid reference.
> >> [ERROR] ResourceManager.getResource() parse exception:
> >> org.apache.velocity.exception.ParseErrorException: Lexical error:
> >> org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 
> >> 206,
> >> column 35.  Encountered: <EOF> after : ""
> >>
> >> I think that what's going on is that the Velosity templating system is
> >> seeing $ or ${ or something like that in the ColdFusion files.  I'm trying
> >> to find a way to tell velosity to ignore these files.  Any tips on this?
> >> I've read every line of documentation on the archetype plugin I can find,
> >> but there's no clear answer.
> >>
> >> I did find one page which discussed a file called archetype-metadata.xml.
> >> The simple-webapp archetype I based this on didn't have one of these files.
> >> I added it under src/main/resources/META-INF/maven, with the following XML,
> >> but it didn't seem to have any effect at all the next time I tried to 
> >> create
> >> my archetype:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <archetype-descriptor name="basic">
> >>   <fileSets>
> >>     <fileSet filtered="false" packaged="true">
> >>       <directory>src/main</directory>
> >>       <includes>
> >>         <include>**/*.*</include>
> >>       </includes>
> >>     </fileSet>
> >>   </fileSets>
> >> </archetype-descriptor>
> >>
> >> I get the impression that there are two versions of the archetype plugin
> >> and that the I might be building my archetype based on documentation on the
> >> archetype 1 plugin and that the archetype-metadata.xml file is specific to
> >> version 2?
> >>
> >> Thanks for your help,
> >>
> >> Doug Hughes, President
> >> Alagad Inc.
> >> dhug...@alagad.com
> >> 888 Alagad4 (x300)
> >> Office: 919-550-0755
> >> Fax: 888-248-7836
> >>
> >
> >

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Reply via email to