You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Smita.2.Kulkarni" <sk...@TechMahindra.com> on 2012/03/29 10:24:36 UTC

Check in of pom.xmls in multi module Maven project using scm:checkin

Hi,

I used the maven release plugin to update the parent version numbers in my multi-module project (the modules are defined in different profiles) .

This checked out all the pom.xmls from the multi-module project.

Now I want to check-in all these files using the maven scm:checkin command. I am using Clearcase as the SCM.

I configured the plugin as below (image attached) in my parent pom:

[cid:image001.png@01CD0DB3.79E39F00]

But this checks in only the parent pom. All the other pom.xmls in the modules remain checked out.

I tried adding the pom.xml path in the <includes> tag but it didn't pick up. The structure of my project is as follows:

---folder1
------module1
------module2
---folder2
--------parent
--------module3
--------module4

The parent of the modules 1,2,3,4 is the parent project in the folder2.


Thanks and Regards,
Smita Kulkarni


============================================================================================================================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================

Re: Check in of pom.xmls in multi module Maven project using scm:checkin

Posted by Wayne Fay <wa...@gmail.com>.
> I used the maven release plugin to update the parent version numbers
> in my multi-module project (the modules are defined in different profiles) .

Using profiles to turn on/off modules is generally not a good idea
IMO. Why are you doing this?

> Now I want to check-in all these files using the maven scm:checkin
> command. I am using Clearcase as the SCM.
>
> I configured the plugin as below (image attached) in my parent pom:

Images and other attachments are stripped when sent to this list.

> But this checks in only the parent pom. All the other pom.xmls in the modules remain checked out.

Probably the other modules aren't "active" due to the profiles. Try
removing the profiles entirely (just put the <modules> directly in the
parent) and see if that works.

> The parent of the modules 1,2,3,4 is the parent project in the folder2.

This is a non-standard project layout. Why would you do this? Can you
not just move things around to conform to the norms, at least long
enough to see if your problems are resolved?

Wayne

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