From owner-freebsd-questions@FreeBSD.ORG Fri Apr 20 10:17:51 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB2CE106566B; Fri, 20 Apr 2012 10:17:51 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: from smtpo.poczta.interia.pl (smtpo.poczta.interia.pl [217.74.65.207]) by mx1.freebsd.org (Postfix) with ESMTP id 3A5C28FC0C; Fri, 20 Apr 2012 10:17:51 +0000 (UTC) From: vermaden To: Horst Leitenmueller X-Mailer: interia.pl/pf09 In-Reply-To: <54DECB18-A318-4572-B664-E2B1A3E46B1E@liwest.at> References: <20120417212624.GB15370@dormouse.experts-exchange.com> <20120418193043.GC96044@dormouse.experts-exchange.com> <54DECB18-A318-4572-B664-E2B1A3E46B1E@liwest.at> Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1334917070; bh=dLRFYB0PrvSMm6BrXxAxgCtWajtFh0XAr7dOobBRxcA=; h=From:Subject:To:Cc:X-Mailer:In-Reply-To:References:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding; b=FHsDli6B/UKTBYDrIwHMcKuWYe4lpXVT1XBVPVxpE5VavXBKXv/xSJXwT0h/TQZ3i 7Iwjy71RPj0MyL4u+KlGsscz3kWIhUGXxi3O0ouHdmPq4f5YEYx0jJeEeOCL2L9dRk RtCsdS+xOVGI9sxTiQWVXjJ4leqjmXvKNhkSl7Hk= Date: Fri, 20 Apr 2012 10:17:51 +0000 (UTC) Cc: freebsd-questions@freebsd.org, Jason Helfman , freebsd-java@FreeBSD.org Subject: Re: /usr/local/java/jboss5 fails to build X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2012 10:17:51 -0000 Hi, I am not able to apply the patch ... mysql# pwd /usr/ports/java/jboss5 mysql# make clean =3D=3D=3D> Cleaning for jboss-5.1.0.GA_1,1 mysql# make extract =3D=3D=3D> License check disabled, port has not defined LICENSE =3D=3D=3D> Extracting for jboss-5.1.0.GA_1,1 =3D> SHA256 Checksum OK for jboss-5.1.0.GA-src.tar.gz. mysql# cd work/jboss-5.1.0.GA-src/ mysql# patch < /home/vermaden/patch.pom Hmm... Looks like a context diff to me... The text leading up to this was: -------------------------- |*** pom.xml.orig Thu Apr 19 18:29:15 2012 |--- pom.xml Thu Apr 19 20:40:37 2012 -------------------------- Patching file pom.xml using Plan A... (Fascinating--this is really a new-style context diff but without the telltale extra asterisks on the *** line that usually indicate the new style...) Hunk #1 failed at 280. Hunk #2 failed at 302. Hunk #3 failed at 362. 3 out of 3 hunks failed--saving rejects to pom.xml.rej done --- mysql# pwd /usr/ports/java/jboss5 mysql# make clean =3D=3D=3D> Cleaning for jboss-5.1.0.GA_1,1 mysql# make patch =3D=3D=3D> License check disabled, port has not defined LICENSE =3D=3D=3D> Extracting for jboss-5.1.0.GA_1,1 =3D> SHA256 Checksum OK for jboss-5.1.0.GA-src.tar.gz. =3D=3D=3D> Patching for jboss-5.1.0.GA_1,1 =3D=3D=3D> Applying FreeBSD patches for jboss-5.1.0.GA_1,1 mysql# cd work/jboss-5.1.0.GA-src/ mysql# patch < /home/vermaden/patch.pom=20 Hmm... Looks like a context diff to me... The text leading up to this was: -------------------------- |*** pom.xml.orig Thu Apr 19 18:29:15 2012 |--- pom.xml Thu Apr 19 20:40:37 2012 -------------------------- Patching file pom.xml using Plan A... (Fascinating--this is really a new-style context diff but without the telltale extra asterisks on the *** line that usually indicate the new style...) Hunk #1 failed at 280. Hunk #2 failed at 302. Hunk #3 failed at 362. 3 out of 3 hunks failed--saving rejects to pom.xml.rej done Could You please attach the whole modified working POM.XML? ;) Thanks, veramden "Horst Leitenmueller" pisze: > hi vermaden, >=20 > here is the howto and all needed changes... >=20 >=20 > installation is done on a 8.2-RELEASE-p6 FreeBSD amd64 with openjdk6 >=20 > what is missing is a settings.xml which must be located in the home direc= tory of root, or the one who is installing ports >=20 > /root/.m2/settings.xml >=20 > file is attached in this file the depricated jboss dependencies are kept;= otherwise you will not be able to build >=20 > second thing is i removed/changed things from the pom.xml file in the por= tbuild/usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/ >=20 > there are changes for=20 > =20 > and=20 > =20 >=20 >=20 > the entries glassfish i have removed http://maven.glassfish.org/content/g= roups/glassfish they just deliver not working response >=20 > how to patch, i run "make install" in /usr/ports/java/jboss5 > when jboss-src is downloaded and extracted i interrupted the build >=20 > patched the pom.xml (problem was, i thougth install will work, but it w= as running and downloading garbage from glassfish repo...) > rm -rf /root/.m2/repository/ helps also if some garbage is collected >=20 > jboss-team has announced there will be a repo change already some time ag= o, but i also did not recognize it :-) until it was turned off... >=20 > for the portmaintainer ? how to handle the settings.xml ? the other thing= s can be patched=E2=80=A6 >=20 >=20 > and settings.xml >=20 --=20 ...