Date: Sat, 20 Jun 2020 13:03:03 +1200 From: Jonathan Chen <jonc@chen.org.nz> To: James Wright <james.wright@digital-chaos.com> Cc: ports@freebsd.org Subject: Re: sysutils/apache-mesos: Enable Java bindings request for review Message-ID: <CAJuc1zMyxA0D66Uf5Hze5-Vyxhtt8eFF6xOP%2BxKOG1wqNAF1sQ@mail.gmail.com> In-Reply-To: <00a82f73-b1f7-0a80-6631-b64682522f10@digital-chaos.com> References: <8fd5c853-6dd6-a3f6-3ebf-da973cf6ae8e@digital-chaos.com> <CAJuc1zNopnx46p57mnzJ8=pmFMt9PSd0AXkzRp-O4gnJtSxxnQ@mail.gmail.com> <b3fd479e-c398-423f-1848-71f7667015bb@digital-chaos.com> <CAJuc1zOXP%2BLa2h6sOmLt14P10XNDSHiVkV7BYrCjeunREokXSA@mail.gmail.com> <00a82f73-b1f7-0a80-6631-b64682522f10@digital-chaos.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Jun 2020 at 12:39, James Wright <james.wright@digital-chaos.com> wrote: > > > On 20/06/2020 01:16, Jonathan Chen wrote: > > On Sat, 20 Jun 2020 at 10:01, James Wright > > <james.wright@digital-chaos.com> wrote: > >> > >> On 19/06/2020 22:37, Jonathan Chen wrote: > >>> On Sat, 20 Jun 2020 at 07:14, James Wright > >>> <james.wright@digital-chaos.com> wrote: > >>> [..] > >>>> One specific area of concern is dealing with the Maven dependencies > >>>> fetched mid-way through the build phase. I thought I had a solution > >>>> utilizing > >>>> the maven dependency plugin "go-offline" goal in the fetch phase and > >>>> providing a skeleton POM to describe the dependencies required. However, > >>>> there > >>>> is a question mark over where these dependencies should be downloaded > >>>> during the fetch phase; > >>> One possible way to do this is to provide an offline maven repository > >>> that has all the required dependencies pre-fetched. The pre-warmed > >>> repo is static, and can be retrieved and extracted during the > >>> fetch-phase. Your maven build can then specify > >>> "-Dmaven.repo.local=${WRKDIR}/local-repo". > >>> > >>> The java/eclipse port uses this strategy. > >>> > >>> Cheers. > >>> -- > >>> Jonathan Chen <jonc@chen.org.nz> > >> I have seen that method used in some Java ports, but thought it would be > >> better to > >> download the dependencies from the offical maven repo directly, rather > >> than a > >> bundled tarball hosted on a personal/private repo which seems a less > >> reliable source? > > Doing so violates the ports-build requirement that access to the 'Net > > is only permitted during the fetch-phase. > > Not in this case, all dependencies are downloaded during the fetch phase > by invoking > maven dependency:go-offline goal to prefetch everything required into the > local repo before the build phase. Won't your distinfo file be amazingly large? -- Jonathan Chen <jonc@chen.org.nz>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJuc1zMyxA0D66Uf5Hze5-Vyxhtt8eFF6xOP%2BxKOG1wqNAF1sQ>