[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Building with Maven
|
On Wednesday, September 28, 2011 18:55:36 Schaefer, Doug wrote:
> Reproducibility of maven builds is a hot topic in the community right now.
> Freezing .m2 is a common approach that's being proposed.
Oh, so there's no official approach right now? Ehm.
> Another option is to create a local mirror of the dependencies for CDT and
> set the properties listed in the top level pom.xml file to point at them
> instead of the default. It's pretty easy to create p2 mirrors these days
> (google for it). And use -D on the mvn command line to override the
> properties.
I imagine this will work, but having maven "download" things from file:// repository
sounds like a way to slow down already slow down build :-(
--
Vladimir Prus
CodeSourcery / Mentor Graphics
+7 (812) 677-68-40
> > -----Original Message-----
> > From: Vladimir Prus [mailto:vladimir@xxxxxxxxxxxxxxxx]
> > Sent: Wednesday, September 28, 2011 4:32 AM
> > To: cdt-dev@xxxxxxxxxxx
> > Cc: Schaefer, Doug
> > Subject: Re: [cdt-dev] Building with Maven
> >
> > On Wednesday, September 21, 2011 19:41:24 Schaefer, Doug wrote:
> > > > In fact, I have Maven 2.2, which is most recent in Ubuntu. I'll try
> > > > the hard way, and install 3.x. Thanks!
> > >
> > > I just untar the tarball from Apache and call bin/mvn from there.
> > > Wasn't hard at all.
> >
> > Thanks, this has worked. Now, for a different issue -- it appears the
> > build process downloads a pile of things, mostly related to tycho, but
> > maybe something else. How do I go about pre-fetching all of that, and
> > making the build process use the pre-fetched copies, so that our
> > production build can use snapshot of everything as of today (for
> > example) and now try to fetch anything new every time?
> >
> > It seems like I might be able to first do a regular build, then copy
> > ~/.m2 and then use use the -gs option to point maven to a point maven to
> > a settings file that will specify that repository copy, as well as force
> > offline mode, but I would appreciate if somebody comment on such a plan
> > (or maybe existing solutions), before I start trying this for real.
> >
> > Thanks,
> >
> > --
> > Vladimir Prus
> > CodeSourcery / Mentor Graphics
> > +7 (812) 677-68-40