I think you mean:
<properties>
<my.junit.group>xxxx</my.junit.group>
</properties>
Right?
I put this at the end of "settings.xml". But I got error as I run mvn command
such as mvn clean:
E:\Projekte\TestXml>mvn clean
Error reading settings.xml: Unrecognised tag: 'properties' (position: START_TAG
seen ...</profiles>\r\n\r\n\t<properties>... @240:14)
Line: 240
Column: 14
E:\Projekte\TestXml>
******************
In your settings.xml files, insert the following code under the
settings
element:
<properties>
<my.junit.group>xxxx</libs_project_home>
</properties>
Jeff
On Jan 2, 2008 11:12 AM, Thomas Chang <[EMAIL PROTECTED]> wrote:
> Thanks for the answer.
>
> Could you give an example how to set these properties in the
settings.xml?
> :-/
>
>
> ***************************
> Maven will do it automatically if you defines theses properties in
your
> setting.xml files.
>
> Jeff
>
>
> On Jan 2, 2008 10:53 AM, Thomas Chang <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > Normally the <version> in <dependency> in pom.xml look as follow:
> > <dependency>
> > <groupId>junit</groupId>
> > <artifactId>junit</artifactId>
> > <version>3.8.1</version>
> > </dependency>
> >
> > Now I want to do as follow:
> > <dependency>
> > <groupId>{my.junit.group}</groupId>
> > <artifactId>{my.junit.artifactId}</artifactId>
> > <version>{my.junit.version}</version>
> > </dependency>
> >
> > The values of {my.junit.group} etc. will be defined in an other
> file. Now
> > my question: How can I configure the pom.xml so that it knows to
read
> > these values from the file where the {my.junit.group} etc. defined?
> >
> > Regards
> >
> > Thomas
---------------------------------
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr
bietet das neue Yahoo! Mail.