You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by chandresh pancholi <ch...@gmail.com> on 2015/08/06 14:48:56 UTC

Difference between pom.xml and pom-installed.xml

Hi,

It might sound silly but why are we using pom-installed.xml in every module?
I never saw and used other than pom.xml.This is first time i am seeing two
pom in single module.



Thanks



-- 
Chandresh Pancholi
Senior Software Engineer
Flipkart.com
Email-id:chandresh.pancholi@flipkart.com
Contact:08951803660

Re: Difference between pom.xml and pom-installed.xml

Posted by Raul Kripalani <ra...@apache.org>.
Sounds good. Since this plugin is only required to accompany the deploy
plugin and not in normal (local) builds, you could also put it inside a
profile.

BTW - you can also try using the flatten:clean goal to remove this file
rather than the pattern in the standard clean plugin config, but in reality
it should make no difference.

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Thu, Aug 6, 2015 at 2:19 PM, Anton Vinogradov <av...@gridgain.com>
wrote:

> Hello,
>
> It used to generate pom files that will be uploaded to maven repository.
>
> Plugins configuration can be changed to
>
>   <configuration>
>                     <flattenMode>minimum</flattenMode>
>
> <flattenedPomFilename>pom-installed.xml</flattenedPomFilename>
>
> <outputDirectory>${project.basedir}/target/</outputDirectory>
>                 </configuration>
>
> in this case pom-installed.xml will be generated at target directory. But
> we have to check this improvement brings no issues with deploy to maven
> repository.
>
> On Thu, Aug 6, 2015 at 3:55 PM, Raul Kripalani <ra...@apache.org> wrote:
>
> > I asked myself the same question. It's actually generated by
> > the flatten-maven-plugin defined in ignite-parent.
> >
> > I guess it's used for debugging purposes? Although I'm not sure why you
> > would want this permanently in the build. Someone will likely clarify.
> >
> > Moreover, in my opinion it should be generated inside the target/
> > directory.
> >
> > Regards,
> >
> > *Raúl Kripalani*
> > Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
> > Integration specialist
> > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
> > http://blog.raulkr.net | twitter: @raulvk
> >
> > On Thu, Aug 6, 2015 at 1:48 PM, chandresh pancholi <
> > chandreshpancholi007@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > It might sound silly but why are we using pom-installed.xml in every
> > > module?
> > > I never saw and used other than pom.xml.This is first time i am seeing
> > two
> > > pom in single module.
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > --
> > > Chandresh Pancholi
> > > Senior Software Engineer
> > > Flipkart.com
> > > Email-id:chandresh.pancholi@flipkart.com
> > > Contact:08951803660
> > >
> >
>

Re: Difference between pom.xml and pom-installed.xml

Posted by Anton Vinogradov <av...@gridgain.com>.
Hello,

It used to generate pom files that will be uploaded to maven repository.

Plugins configuration can be changed to

  <configuration>
                    <flattenMode>minimum</flattenMode>

<flattenedPomFilename>pom-installed.xml</flattenedPomFilename>

<outputDirectory>${project.basedir}/target/</outputDirectory>
                </configuration>

in this case pom-installed.xml will be generated at target directory. But
we have to check this improvement brings no issues with deploy to maven
repository.

On Thu, Aug 6, 2015 at 3:55 PM, Raul Kripalani <ra...@apache.org> wrote:

> I asked myself the same question. It's actually generated by
> the flatten-maven-plugin defined in ignite-parent.
>
> I guess it's used for debugging purposes? Although I'm not sure why you
> would want this permanently in the build. Someone will likely clarify.
>
> Moreover, in my opinion it should be generated inside the target/
> directory.
>
> Regards,
>
> *Raúl Kripalani*
> Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
> Integration specialist
> http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
> http://blog.raulkr.net | twitter: @raulvk
>
> On Thu, Aug 6, 2015 at 1:48 PM, chandresh pancholi <
> chandreshpancholi007@gmail.com> wrote:
>
> > Hi,
> >
> > It might sound silly but why are we using pom-installed.xml in every
> > module?
> > I never saw and used other than pom.xml.This is first time i am seeing
> two
> > pom in single module.
> >
> >
> >
> > Thanks
> >
> >
> >
> > --
> > Chandresh Pancholi
> > Senior Software Engineer
> > Flipkart.com
> > Email-id:chandresh.pancholi@flipkart.com
> > Contact:08951803660
> >
>

Re: Difference between pom.xml and pom-installed.xml

Posted by Raul Kripalani <ra...@apache.org>.
I asked myself the same question. It's actually generated by
the flatten-maven-plugin defined in ignite-parent.

I guess it's used for debugging purposes? Although I'm not sure why you
would want this permanently in the build. Someone will likely clarify.

Moreover, in my opinion it should be generated inside the target/ directory.

Regards,

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Thu, Aug 6, 2015 at 1:48 PM, chandresh pancholi <
chandreshpancholi007@gmail.com> wrote:

> Hi,
>
> It might sound silly but why are we using pom-installed.xml in every
> module?
> I never saw and used other than pom.xml.This is first time i am seeing two
> pom in single module.
>
>
>
> Thanks
>
>
>
> --
> Chandresh Pancholi
> Senior Software Engineer
> Flipkart.com
> Email-id:chandresh.pancholi@flipkart.com
> Contact:08951803660
>