On 6 March 2011 14:29, Niall Pemberton <niall.pember...@gmail.com> wrote:
> Hi Sebb,
>
> Whats the reason behind adding this change? Why wouldn't someone just
> switch to the module directory and build from there?

Because I thought I had found that the Maven behaviour is different.

I cannot seem to get it to work now, but the idea was to be able to
update Commons Parent and test builds without needing to install
Commons Parent.

> Also, if there is a good reason, then the shorter the property  name,
> the easier it is
>
> e.g. mvn -Dcommons.module=math test
>
> would be better than
>
>       mvn -Dcommons.module.path=math test

I deliberately chose a longer name to avoid accidental activation.

I did not want to use:

mvn -Dcommons.module=math test -Psingle-module

> Niall
>
> On Sun, Mar 6, 2011 at 11:54 AM,  <s...@apache.org> wrote:
>> Author: sebb
>> Date: Sun Mar  6 11:54:44 2011
>> New Revision: 1078455
>>
>> URL: http://svn.apache.org/viewvc?rev=1078455&view=rev
>> Log:
>> Add profile to allow build of a single module
>>
>> Modified:
>>    commons/proper/commons-parent/trunk/pom.xml
>>
>> Modified: commons/proper/commons-parent/trunk/pom.xml
>> URL: 
>> http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=1078455&r1=1078454&r2=1078455&view=diff
>> ==============================================================================
>> --- commons/proper/commons-parent/trunk/pom.xml (original)
>> +++ commons/proper/commons-parent/trunk/pom.xml Sun Mar  6 11:54:44 2011
>> @@ -756,6 +756,18 @@
>>       </modules>
>>     </profile>
>>
>> +    <!--
>> +     !  Profile to allow build of a single module
>> +     !  e.g. mvn site -Dcommons.module.path=../commons-net
>> +    -->
>> +    <profile>
>> +      <id>build-module</id>
>> +      
>> <activation><property><name>commons.module.path</name></property></activation>
>> +      <modules>
>> +        <module>${commons.module.path}</module>
>> +      </modules>
>> +    </profile>
>> +
>>        <!--
>>          Use maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x 
>> with Maven 3.x
>>          See 
>> http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to