On Tue, Dec 13, 2011 at 4:12 PM, Prashant Neginahal
<[email protected]> wrote:
> Thanks for your reply. Are you suggestting something below.
>
> Parent POM.
>
>  <groupId>com.tdsecurities</groupId>
>  <artifactId>test-parent</artifactId>
>  <version>1.0-SNAPSHOT</version>
>
> In all child projects
>
> <parent>
>  <artifactId>test-parent</artifactId>
>  <groupId>com.tdsecurities</groupId>
>  <version>1.0-SNAPSHOT</version>
> </parent>
> <groupId>com.tdsecurities</groupId>
>  <artifactId>test-child</artifactId>
>  <version>${parent.version}</version>

Almost.
<parent>
 <artifactId>test-parent</artifactId>
 <groupId>com.tdsecurities</groupId>
 <version>1.0-SNAPSHOT</version>
</parent>
<groupId>com.tdsecurities</groupId>
<artifactId>test-child</artifactId>

You dont need the current pom's artifact version.
i.e. deleted <version>${parent.version}</version>
It either inherits it from the parent, or gets it from the parent's
dependencyManagement section (I dont know which).
The result being you dont need to specify it.

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

Reply via email to