You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Raphaël Piéroni <ra...@gmail.com> on 2009/01/27 09:00:55 UTC
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 <ne...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Re: Archetype expression ${package.replace ('.', '/')} not a valid reference
Posted by Néstor Boscán <ne...@tcs.com.ve>.
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:raphaelpieroni@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 <ne...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Re: Archetype expression ${package.replace ('.', '/')} not a valid reference
Posted by Néstor Boscán <ne...@tcs.com.ve>.
Found something.
It looks like the problem is when I'm using JDK 1.4. If I use JDK 5 it works. I use JDK 1.4 so I can compile using that version of java because sadly using JDK 5 and telling the compiler to compile for 1.4 does not work well.
Regards,
Néstor Boscán
-----Mensaje original-----
De: Raphaël Piéroni [mailto:raphaelpieroni@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 <ne...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Re: Archetype expression ${package.replace ('.', '/')} not a valid reference
Posted by Néstor Boscán <ne...@tcs.com.ve>.
Tried to use Maven 2.0.9 and the problem is still there. Tried using expressions:
${groupId.replace('.', '/')}
${packageName.replace('.', '/')}
And I'm still getting the same error.
-----Mensaje original-----
De: Raphaël Piéroni [mailto:raphaelpieroni@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 <ne...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org