On Tue, Mar 15, 2016 at 12:56:22PM -0400, Bryan C. Everly wrote: > Hi, > > I have several maven-based projects that I'd like to create ports for, but > our build process makes that challenging. > > Maven (for those who don't know) likes to download additional files as it > compiles which is a non-starter for our build process. A solution that I > have found to work around this is to run maven once, let it cache the files > locally, turn them into a tarball which I then place in my "files" > directory and make the real port run maven in offline mode from the cached > files in the tarball.
Upload the tarball to somewhere and use {pre,post,do}-configure,build,etc to build the port. (look in man bsd.port.mk) You can use various distfiles per port. > > This process works, but it sure seems awkward. > > Does anyone have any suggestions on how I could make this better? > > Or even better, perhaps I'm missing an understanding of part of the build > infrastructure that I could get educated on. :-) > > Thanks, > Bryan -- Juan Francisco Cantero Hurtado http://juanfra.info