---- Heinrich Nirschl <[EMAIL PROTECTED]> schrieb:
> On Jan 2, 2008 12:06 PM, Thomas Chang <[EMAIL PROTECTED]> wrote:
> > Now I do as follow in the "settings.xml":
> >
> >   <profiles>
> >   <profile>
> >   <properties>
> >   <my.junit.version>3.8.1</my.junit.version>
> >   </properties>
> >   </profile>
> >   </profiles>
> >
> >   And it runs successful when I run "mvn clean". But as I run "´mvn 
> > compile" I got error as follow:
> >
> >   Downloading: 
> > http://repo1.maven.org/maven2/junit/junit/{my.junit.version}/junit-
> > {my.junit.version}.jar
> 
> To reference the proerties you must use syntax like this:
> 
> <version>${my.junit.version}</version>

And you need to make sure the profile it is defined in is "active". By default, 
profiles are not active so variables defined in them have no effect. Use 
"-Pprofilename" on the commandline, or set <activeByDefault> (name might not be 
quite right) in the profile definition.

Regards,

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to