/usr/local/java/jboss5 fails to build

Horst Leitenmueller horst.leitenmueller at liwest.at
Thu Apr 19 21:53:52 UTC 2012


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
-------------- next part --------------


here the patch for pom file:  patch < patch.pom in portbuild/usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.pom
Type: application/octet-stream
Size: 3678 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120419/b47d1d4c/patch.obj
-------------- next part --------------


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 at 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 at FreeBSD.org       | http://people.freebsd.org/~jgh
>>> _______________________________________________
>>> freebsd-java at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-java
>>> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>> 
>> 
>> 
>> --------------------------------------------------
>> DI Horst Leitenmueller
>> 
>> email: horst.leitenmueller at liwest.at
>> --------------------------------------------------
> 
> 
> 
> 
> -- 
> 
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list