Date: Thu, 19 Apr 2012 23:53:48 +0200 From: Horst Leitenmueller <horst.leitenmueller@liwest.at> To: vermaden <vermaden@interia.pl> Cc: freebsd-questions@freebsd.org, Jason Helfman <jgh@FreeBSD.org>, freebsd-java@FreeBSD.org Subject: Re: /usr/local/java/jboss5 fails to build Message-ID: <54DECB18-A318-4572-B664-E2B1A3E46B1E@liwest.at> In-Reply-To: <xcbeqljxjjssrpqpcqob@kumd> References: <inftrztxhtpsihcsuweq@gbbg> <20120417212624.GB15370@dormouse.experts-exchange.com> <wcxblzgbzuiihpqooqox@rxpj> <20120418193043.GC96044@dormouse.experts-exchange.com> <B3CF7902-2E44-4329-A81B-B9E6B1B3E695@liwest.at> <xcbeqljxjjssrpqpcqob@kumd>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
hi vermaden,
here is the howto and all needed changes...
installation is done on a 8.2-RELEASE-p6 FreeBSD amd64 with openjdk6
what is missing is a settings.xml which must be located in the home directory of root, or the one who is installing ports
/root/.m2/settings.xml
file is attached in this file the depricated jboss dependencies are kept; otherwise you will not be able to build
second thing is i removed/changed things from the pom.xml file in the portbuild/usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/
there are changes for
<repositories></repositories>
and
<pluginRepositories></pluginRepositories>
the entries glassfish i have removed <url>http://maven.glassfish.org/content/groups/glassfish</url> they just deliver not working response
how to patch, i run "make install" in /usr/ports/java/jboss5
when jboss-src is downloaded and extracted i interrupted the build
patched the pom.xml (problem was, i thougth install will work, but it was running and downloading garbage from glassfish repo...)
rm -rf /root/.m2/repository/ helps also if some garbage is collected
jboss-team has announced there will be a repo change already some time ago, but i also did not recognize it :-) until it was turned off...
for the portmaintainer ? how to handle the settings.xml ? the other things can be patched…
and settings.xml
[-- Attachment #2 --]
here the patch for pom file: patch < patch.pom in portbuild/usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/
[-- Attachment #3 --]
*** pom.xml.orig Thu Apr 19 18:29:15 2012
--- pom.xml Thu Apr 19 20:40:37 2012
***************
*** 280,293 ****
</dependencies>
</dependencyManagement>
<!-- Repositories -->
<repositories>
! <repository>
<id>repository.jboss.org</id>
<name>JBoss Releases Repository</name>
! <url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
--- 280,293 ----
</dependencies>
</dependencyManagement>
<!-- Repositories -->
<repositories>
! <repository>
<id>repository.jboss.org</id>
<name>JBoss Releases Repository</name>
! <url>http://repository.jboss.org/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
***************
*** 302,319 ****
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- Plugin Repositories -->
<pluginRepositories>
! <pluginRepository>
<id>repository.jboss.org</id>
<name>JBoss Plugin Releases</name>
! <url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
--- 302,353 ----
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
+ <repository>
+ <id>releases.jboss.org</id>
+ <name>JBoss Release Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>public.jboss.org</id>
+ <name>JBoss Public Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/public/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>thirdparty.jboss.org</id>
+ <name>JBoss Thirdparty Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+
</repositories>
<!-- Plugin Repositories -->
<pluginRepositories>
! <pluginRepository>
<id>repository.jboss.org</id>
<name>JBoss Plugin Releases</name>
! <url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
***************
*** 328,337 ****
--- 362,382 ----
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
+ <pluginRepository>
+ <id>releases.jboss.org</id>
+ <name>JBoss Release Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
</pluginRepositories>
<profiles>
<!-- By default build all modules -->
[-- Attachment #4 --]
patch can be applied like described here
http://www.freebsddiary.org/patch.php
br horst
PS:
BUILD SUCCESSFUL
Total time: 11 minutes 25 seconds
To run the jboss server from startup, add jboss5_enable="YES" in your /etc/rc.conf. Extra options can be found in the startup script.
===> Registering installation for jboss-5.1.0.GA_1,1
;-) good luck
On 19.04.2012, at 07:22, vermaden wrote:
> "Horst Leitenmueller" <horst.leitenmueller@liwest.at> pisze:
>> it is functional i'm using it
>>
>> but some changes must be done on the maven dependencies, here is a summary of the changes to get it build again
>>
>> problem is jboss has change to a new repository system and all old urls are changed...(nice work of jboss team ;-))
>> just a few things must be changed
>>
>> i will write tomorrow the summary, i hope somebody can fix it then
>>
>> br horst
>
> Thanks, I appreciate Your help, waiting for instructions then ...
>
> ... and for JBoss community to reply ;)
>
> Regards,
> vermaden
>
>> On 18.04.2012, at 21:30, Jason Helfman wrote:
>>
>>> On Wed, Apr 18, 2012 at 07:42:55AM +0000, vermaden thus spake:
>>>> hi,
>>>>
>>>> I do not pressure to use the Ports version I just need a working
>>>> JBOSS5 on FreeBSD, I can download jboss-5.1.0.GA.zip from here
>>>>
>>>> http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/
>>>>
>>>> But will it be fully functional on FreeBSD?
>>>>
>>>> Regards,
>>>> vermaden
>>>
>>> I can't answer if it will be functional or not on FreeBSD until it is
>>> successfully installed, however it being in the portstree gives me some
>>> indication that it did work at one time. This is a vendor issue though, and
>>> I would urge you to contact them regarding their maven repository issue with
>>> the error you are receiving.
>>>
>>> I would be happy to look into this further after they are able to diagnose
>>> the issue.
>>>
>>> Thanks!
>>> -jgh
>>>
>>> --
>>> Jason Helfman | FreeBSD Committer
>>> jgh@FreeBSD.org | http://people.freebsd.org/~jgh
>>> _______________________________________________
>>> freebsd-java@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-java
>>> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
>>
>>
>>
>> --------------------------------------------------
>> DI Horst Leitenmueller
>>
>> email: horst.leitenmueller@liwest.at
>> --------------------------------------------------
>
>
>
>
> --
>
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54DECB18-A318-4572-B664-E2B1A3E46B1E>
