I'm using Maven 2.0.7.

I'm creating an archetype with a spring beanRefContext.xml file that has to 
reference the other spring applicationContext.xml. So I need to create a 
reference in the form:

com/mycompany/myapplication

based on the package. So what I do is to create a Velocity expression 
${package.replace('.', '/')}. 

When I run the mvn archetype:create command with the reference to the archetype 
I get:

${package.replace ('.', '/')} not a valid reference

Néstor

-----Mensaje original-----
De: Raphaël Piéroni [mailto:raphaelpier...@gmail.com] 
Enviado el: Tuesday, January 27, 2009 3:31 AM
Para: Maven Users List
Asunto: [?? Probable Spam] Re: Archetype expression ${package.replace ('.', 
'/')} not a valid reference

Hello Néstor,

Can you please describe a little bit more your problem?
What command line you use? what is the maven/plugin version?
Can you create a JIRA with all these indication.

Thanks,

Raphaël


2009/1/26 Néstor Boscán <nestor.bos...@tcs.com.ve>:
> Hi
>
>
>
> I've been working with archetypes for a time and I had some archetypes with
> this expression:
>
>
>
> ${package.replace ('.', '/')}
>
>
>
> And it worked, but for some reason now it doesn't work. It throws a warning
> message "is not a valid reference".
>
>
>
> Any ideas?
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to