From owner-freebsd-ports@freebsd.org Sat Jul 13 22:24:09 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B0D215CEB66 for ; Sat, 13 Jul 2019 22:24:09 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0517F721A2 for ; Sat, 13 Jul 2019 22:24:06 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-vs1-xe43.google.com with SMTP id k9so8993655vso.5 for ; Sat, 13 Jul 2019 15:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=35ifODgbwZsnu7ZeeGmGW7P+mzcEBPuSF2C2v3VCUiU=; b=fSOtsXkwd6ZmfIg8ZNm34hzx2XEBSjlZkoQK33qkNcVxBBLz2c06d8QuDSXV4/aOYi 2SJDsyroAlfq5aBew4Fkk/VL3C433jowptzEtgfJt+grwnrfg15UisPl6xT4Iu4/hFdX 4lClxKpSqkXMlCmmb5MwbPSetoZyaLEVnIAVR21VOJFWrzjwOrjOkwmrIP3ufb8fazVD SBrOB+RhV8haPegAB2OwiE+E72tzEY0EpVzDQkwNvosfcAobFonbUJWlMA8G+hxLQfvt XrX9tj7DEmnrXGmeK98cvZg/eYx/dwfMxqllpxcomOsJyisgE1UAxsI+obu/e7FEyAq5 /wAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=35ifODgbwZsnu7ZeeGmGW7P+mzcEBPuSF2C2v3VCUiU=; b=IxViHJSUHjjsOA6Z/rjGoLyNc3HJ0arHnSKPNsNXlBhG0UAT0nQNM2CiHtOo63IIei D4qGpDTXiVkZi0Ao7YyjF3qRBcgSmem4E8k2tRgG6pFtK988LgbX7HebDx00vNYOW6Ki u2x5/i3IdPhpuyPxtdt5er1wVbc4IqjrfN8qrI/iGT0awzc+GcZdH724UiCVEgL8K0Rw ElCPJgaKe7CTXBLnCh/wHkamWlxhpdiMaSt+JAT5aLVGtgcQqrGEeQnEQql7p10G+KtJ uEhl7zIY0Fa3yV3OpEy59niYfyI5jatoPQckHv8446zG9xGWd/HQwC4HS4v+6suPNi8+ 6KtQ== X-Gm-Message-State: APjAAAXe9B4jvqOOZIkXnn7j0RK8N9vfvfrMXTq290S3i0Iu9VCGX3ZC 2VXobhk2LEDi9LLnjj6nzB4yLf6lmyDqMtvV1Ss0dw== X-Google-Smtp-Source: APXvYqwFNNd0sBFZ2SWt78FSuXDeKyhy7ocErks2J8HjvmPr2tUuL8es7lwzFQjD56QdMyeWqo6+WuDpdr9OEgBCic4= X-Received: by 2002:a67:dd0d:: with SMTP id y13mr12192835vsj.210.1563056645585; Sat, 13 Jul 2019 15:24:05 -0700 (PDT) MIME-Version: 1.0 References: <9caa5ea5-e030-adab-516d-df957e07760f@fechner.net> In-Reply-To: <9caa5ea5-e030-adab-516d-df957e07760f@fechner.net> From: Jonathan Chen Date: Sun, 14 Jul 2019 10:23:49 +1200 Message-ID: Subject: Re: How to package maven based ports To: Matthias Fechner Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 0517F721A2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=fSOtsXkw X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[chen.org.nz]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.4.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com]; R_SPF_NA(0.00)[]; NEURAL_HAM_SHORT(-0.32)[-0.317,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.67)[ip: (2.31), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.44), country: US(-0.06)] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2019 22:24:09 -0000 On Sat, 13 Jul 2019 at 20:45, Matthias Fechner wrote: > > Dear all, > > I just look into the port math/jts. > The new versions do provide only sources and they build with maven. > > But as maven fetch all dependencies while building (which is not allowed > with poudriere) what is the best here to solve this problem? > > The current version I have is: > https://gitlab.fechner.net/mfechner/Gitlab/tree/12.0/math/jts > > I tried to search in the ports how other maintainers are solving the > problem, but I do not fully understand it. Have a look at the java/eclipse port. It uses a pre-warmed maven repository that is fetched from github. You can create a localised repository that only contains the dependancies required by the project by specifying: -D maven.repo.local=/my/local/repo Once your project builds correctly, you can create a repo as a project on Github with its contents that can be retrieved with the port for the build. Cheers. -- Jonathan Chen