Ok, and thanks again!
But I still want to make the following questions clear :
1. Since maven.repo.local is not a built in property, how Maven Core
itself and/or plugins will check to configure things if I use command
"mvn -Dmaven.repo.local=xxx install " ?   In another words, why  Maven
Core itself and/or plugins will check to config local repository if I
use command "mvn -Dmaven.repo.local=xxx install " ?
2. In this page
http://maven.apache.org/maven-1.x/reference/properties.html , it tells
us "maven.repo.local" is Built-in Maven Properties, and it's default
value is "${maven.home.local}/repository" .   So, does this conflict
with your idea ?


2012/12/16 Anders Hammar <[email protected]>:
>> Thanks,Hervé. I have read some maven books and the url link [1].  But
>> they do not tell us where are the built-in maven properties such as
>> "maven.repo.local" and do not tell us if maven3 still support built-in
>> maven properties like maven1. It is confuing me much!
>>
>
> maven.repo.local is not a built in property. What you don't seems to
> distinguish between is built in properties, which for example would be
> settings.localRepository or project.version, and Java system properties,
> such as maven.repo.local or skipTests, which Maven Core itself and/or
> plugins checks to configure things. Just because you can specify a Java
> system property to configure something in the build doesn't mean that
> property exists by default in a build.
>
> Also, please do not start multiple mail threads about the same topic. One
> thread is enough.
>
> /Anders
>
>
>>
>>
>>
>> 2012/12/16 Hervé BOUTEMY <[email protected]>:
>> > yes, there is interpolation in poms: see the reference [1]
>> >
>> > I suppose this is treated with more explanation in any Maven book
>> >
>> > Regards,
>> >
>> > Hervé
>> >
>> >
>> > [1] http://maven.apache.org/ref/3.0.4/maven-model-builder/
>> >
>> > Le dimanche 16 décembre 2012 15:26:45 jinwei zhu a écrit :
>> >> Hi, community,
>> >>       In this url
>> >> "http://maven.apache.org/maven-1.x/reference/properties.html"; , it
>> >> intruduces many maven's built-in properties, for example,
>> >> maven.repo.local, but it is maven 1.x ,  Do these properties still
>> >> exist in maven3 ? Could we use these properties in pom.xml like
>> >> ${maven.repo.local} ? It seems ${maven.repo.local} do not work if
>> >> without defining "maven.repo.local" in maven command like "mvn
>> >> -Dmaven.repo.local=xxx install".
>> >>
>> >> Best regards!
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to