Hi , 

     I've a maven project in the following structure setup -- 

                                 Component1
                                                     --module1
                                                     --module2
                                                     --pom.xml
                                 Component2  -- > contains a <parent>
element referring to <Component1>
                                 Component3  --> contains a <parent> element
referring to <Component1>
                                 Component4 --> profiles.xml 

  and each team develops it's own component , hence they have a PROFILE
setup in their settings.xml file . This profile contians some properties
<path values ,versions etc..>  used by the AD team locally . 

few questions --

1) Can Component4 profiles.xml properties be used across other components
also. ? 
2) The settings.xml file contains a profile with few properties set , and
this overrides all the other properties from all the components. But, it
does NOT for the <parent> element .  how do we achieve this .? 

  for ex : Component2 contains a <parent> element referring to to
<Component1> 

               Component2 pom.xml file is below , with <relativePath>
element .
            ----------------------------------------
                    <parent> 
                              <groupid>com.xyz.components</groupid>
                               <artifactId>component1</artifactid>
                              
<relativePath>../${Comp1.Path}/pom.xml</relativePath>
                      </parent>
                    ----------

As I try to execute from the Component2 , it first tries to scan the pom
file and fails as it can't find the Component1 pom file , due to not able to
refer to the ${comp1.Path}  property value from "settings.xml" file . 

How can we achieve this, with out hardcoding the <relativePath> element
vlaue . Please let me know any other ways .


Thanks,
Chandra
                             
                 
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/how-can-we-replace-properties-values-in-the-parent-element-tp3390613p3390613.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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

Reply via email to