Hi Javed,

I don't remember if anyone else has answered your question.

Within Maven2, these properties are configured as plug-in properties, so
for example, to configure unit tests to run in seperate forked VM's, you
would add

<plugins>
      <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                  <forkMode>pertest</forkMode>
            </configuration>
      </plugin>
</plugins>

Instead of setting junit.forkMode (or whatever the M1 equivelant is).

And yes, these configurations are inherited by sub-projects.


HTH,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


                                                                                
                                                       
                      "javed mandary"                                           
                                                       
                      <[EMAIL PROTECTED]        To:       "Maven Users List" 
<[email protected]>                                   
                      >                        cc:                              
                                                       
                                               Subject:  M2 Inherit properties 
across all subprojects                                  
                      04/07/2006 08:39                                          
                                                       
                      AM                                                        
                                                       
                      Please respond to                                         
                                                       
                      "Maven Users                                              
                                                       
                      List"                                                     
                                                       
                                                                                
                                                       




Hi,
     in a multi-project M2 application is there a way to define some global
properties e.g tomcat.home , tomcat.deploy.dir ,etc.. which could be
inherited by all sub-projects .

I tried adding my property values inside a properties tag in my POM :

e.g

<properties>
  <tomcat.home>c:/devtools/tomcat</tomcat.home>
</properties>

But this does not seem to be working.

Any ideas?

thanks,
    Javed



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

Reply via email to