You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Erwin Mueller <er...@deventm.org> on 2011/06/23 11:55:08 UTC

Resource filtering for developer's name?

Hallo,

	if I set in the pom.xml information about the developers, can I use it 
for resource filtering? Like I have in the pom.xml file:

	<developers>
		<developer>
			<name>Erwin Müller</name>
			<email>erwin.mueller@deventm.org</email>
			<organization>Global Scaling Software</organization>
			<organizationUrl>http://www.global-scaling-
software.de/</organizationUrl>
		</developer>
	</developers>

	Now I have a resource where I want to set the developer's name: 
${pom.developers.developer.name}. Now developers is a multiple items tag, how 
can I use the first developer? Is it possible anyway?

Kind regards, Erwin.
-- 
Erwin Mueller
http://www.global-scaling-institute.de/

Re: Resource filtering for developer's name?

Posted by Anders Hammar <an...@hammar.net>.
No, I don't think so. Easiest would be to try, did you?

While on the topic, it's not ${pom.xxx} but ${project.xxx}. The former is
deprecated.

/Anders

On Thu, Jun 23, 2011 at 11:55, Erwin Mueller <er...@deventm.org>wrote:

> Hallo,
>
>        if I set in the pom.xml information about the developers, can I use
> it
> for resource filtering? Like I have in the pom.xml file:
>
>        <developers>
>                <developer>
>                        <name>Erwin Müller</name>
>                        <email>erwin.mueller@deventm.org</email>
>                        <organization>Global Scaling Software</organization>
>                        <organizationUrl>http://www.global-scaling-
> software.de/</organizationUrl>
>                </developer>
>        </developers>
>
>        Now I have a resource where I want to set the developer's name:
> ${pom.developers.developer.name}. Now developers is a multiple items tag,
> how
> can I use the first developer? Is it possible anyway?
>
> Kind regards, Erwin.
> --
> Erwin Mueller
> http://www.global-scaling-institute.de/
>