Bug 155547 - java/jboss5 port build failure
Summary: java/jboss5 port build failure
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 07:30 UTC by Patrick
Modified: 2012-02-23 20:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2011-03-14 07:30:09 UTC
   [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Reactor Summary:
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] JBossAS Component Matrix .............................. SUCCESS [2:22.268s]
     [java] [INFO] JBoss Application Server Parent POM ................... SUCCESS [0.057s]
     [java] [INFO] JBoss Application Server Thirdparty Build ............. SUCCESS [9:58.188s]
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] BUILD SUCCESSFUL
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Total time: 12 minutes 44 seconds
     [java] [INFO] Finished at: Mon Mar 14 07:17:06 GMT 2011
     [java] [INFO] Final Memory: 38M/96M
     [java] [INFO] ------------------------------------------------------------------------

_buildmagic:init:
Trying to override old definition of task property

_buildmagic:init:local-properties:
     [copy] Copying 1 file to /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/build

_buildmagic:init:buildlog:

configure:
     [echo] groups:  default
     [echo] modules: main,j2se,mbeans,jmx,system,system-jmx,security,server,deployment,jbossas/remoting,jmx-remoting,jbossas/jmx-remoting,messaging,cluster,varia,iiop,aspects,profileservice,connector,management,ejb3,tomcat,webservices,hibernate-int,console,spring-int

BUILD FAILED
/usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/build/build.xml:197: You must specify value, location or refid with the name attribute

Total time: 12 minutes 46 seconds
*** Error code 1

Stop in /usr/ports/java/jboss5.

Fix: 

Unknown
How-To-Repeat: cd /usr/ports/java/jboss5
make clean install
Comment 1 Chris Rees freebsd_committer freebsd_triage 2011-06-19 12:46:07 UTC
State Changed
From-To: open->feedback

Ask maintainer for opinion
Comment 2 Chris Rees freebsd_committer freebsd_triage 2011-06-19 12:49:16 UTC
Maintainer of java/jboss5:

The PR at [1] has been discovered.

If you have a fix for this problem, please reply with a fix and a
committer will take care of it.

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/155547
Comment 3 Jonathan Chen 2011-06-19 19:54:40 UTC
More information on the environment is required. The output of "env" and 
"java -version" would be appreciated.
--
Jonathan Chen <jonc@chen.org.nz>
Comment 4 Sergey V. Dyatko 2011-07-05 09:22:01 UTC
Hi, 


Buildfile: build/build.xml

maven-init:
     [echo] Maven Home set
to /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/tools/maven

maven-install:
     [java] [INFO] Scanning for projects...
     [java] [INFO] Reactor build order: 
     [java] [INFO]   JBossAS Component Matrix
     [java] [INFO]   JBoss Application Server Parent POM
     [java] [INFO]   JBoss Application Server Thirdparty Build
     [java] WAGON_VERSION: 1.0-beta-2
     [java] [INFO]
------------------------------------------------------------------------
[java] [INFO] Building JBossAS Component Matrix [java] [INFO]
task-segment: [install] [java] [INFO]
------------------------------------------------------------------------
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [INFO] [site:attach-descriptor] [java] [INFO] Preparing
source:jar [java] [WARNING] Removing: jar from forked lifecycle, to
prevent recursive invocation. [java] [INFO] [enforcer:enforce
{execution: ban-bad-dependencies}] [java] [INFO] [source:jar
{execution: attach-sources}] [java] [INFO] [install:install]
     [java] [INFO]
Installing /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/component-matrix/pom.xml
to /root/.m2/repository/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom
     [java] [INFO]
------------------------------------------------------------------------
[java] [INFO] Building JBoss Application Server Parent POM [java]
[INFO]    task-segment: [install] [java] [INFO]
------------------------------------------------------------------------
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [INFO] [enforcer:enforce {execution:
enforce-java-maven-versions}] [java] [INFO] [enforcer:enforce
{execution: enforce-plugin-versions}] [java] [INFO]
[site:attach-descriptor] [java] [INFO] Preparing source:jar [java]
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation. [java] [INFO] [enforcer:enforce {execution:
ban-bad-dependencies}] [java] [INFO] [enforcer:enforce {execution:
enforce-java-maven-versions}] [java] [INFO] [enforcer:enforce
{execution: enforce-plugin-versions}] [java] [INFO] [source:jar
{execution: attach-sources}] [java] [INFO] [install:install] [java]
[INFO] Installing /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/pom.xml
     to /root/.m2/repository/org/jboss/jbossas/jboss-as-parent/5.1.0.GA/jboss-as-parent-5.1.0.GA.pom
     [java] [INFO]
------------------------------------------------------------------------
[java] [INFO] Building JBoss Application Server Thirdparty Build [java]
[INFO]    task-segment: [install] [java] [INFO]
------------------------------------------------------------------------
[java] Downloading:
http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] Downloading:
http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] Downloading:
http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] Downloading:
http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] [INFO]
------------------------------------------------------------------------
[java] [ERROR] BUILD ERROR [java] [INFO]
------------------------------------------------------------------------
[java] [INFO] Error building POM (may not be this project's POM).

     [java] 
     [java] 
     [java] Project ID:
     org.jboss.maven.plugins:maven-jboss-license-plugin [java] 
     [java] Reason: POM
     'org.jboss.maven.plugins:maven-jboss-license-plugin' not found in
     repository: Unable to download the artifact from any repository
     [java] [java]
     org.jboss.maven.plugins:maven-jboss-license-plugin:pom:1.0.0
     [java] [java] from the specified remote repositories: [java]
     snapshots.jboss.org (http://snapshots.jboss.org/maven2), [java]
     central (http://repo1.maven.org/maven2), [java]
     repository.jboss.org (http://repository.jboss.org/maven2) [java]
     for project org.jboss.maven.plugins:maven-jboss-license-plugin
     [java] [java] 
     [java] [INFO]
     ------------------------------------------------------------------------
     [java] [INFO] For more information, run Maven with the -e switch
     [java] [INFO]
     ------------------------------------------------------------------------
     [java] [INFO] Total time: 6 seconds [java] [INFO] Finished at: Tue
     Jul 05 13:19:22 GMT 2011 [java] [INFO] Final Memory: 26M/186M
     [java] [INFO]
     ------------------------------------------------------------------------
     [java] Java Result: 1
BUILD FAILED
/usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/build/build.xml:1084:
     Unable to build maven modules.  See maven output for details.

Total time: 7 seconds
*** Error code 1

Stop in /usr/ports/java/jboss5.
cash-service# make maintainer
jonc@chen.org.nz
cash-service# env
STY=73762.pts-0.master-cash1
TERM=screen
TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#34:co#120:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:G0:\
        :as=\E(0:ae=\E(B:\
        :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
        :F1=\E[23~:F2=\E[24~:kb=^H:kh=\E[1~:@1=\E[1~:kH=\E[4~:\
        :@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:\
        :kd=\EOB:kr=\EOC:kl=\EOD:km:
WINDOW=0
SHELL=/bin/csh
FTP_PASSIVE_MODE=YES
BLOCKSIZE=K
MAIL=/var/mail/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
HOME=/root
USER=root
HOSTTYPE=FreeBSD
VENDOR=unknown
OSTYPE=FreeBSD
MACHTYPE=unknown
SHLVL=3
PWD=/usr/ports/java/jboss5
LOGNAME=root
GROUP=wheel
HOST=cash-service.domain
REMOTEHOST=
EDITOR=vi
PAGER=more
cash-service# uname -rms
FreeBSD 8.2-RELEASE amd64
cash-service# java -version
java version "1.6.0_03-p4"
Java(TM) SE Runtime Environment (build
1.6.0_03-p4-root_05_jul_2011_13_00-b00) Java HotSpot(TM) 64-Bit Server
VM (build 1.6.0_03-p4-root_05_jul_2011_13_00-b00, mixed mode)

I think something wrong with build.xml or maven mirrors:
[tiger@laptop]~%fetch
http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
fetch:
http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom:
Forbidden [tiger@laptop]~%fetch
http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
fetch:
http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom:
Not Found [tiger@laptop]~%fetch
http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
fetch:
http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom:
Forbidden [tiger@laptop]~%fetch
http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
fetch:
http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom:
Not Found [tiger@laptop]~%


-- 
wbr, tiger
Comment 5 B. 2011-08-19 17:29:30 UTC
Hello,
 
while installing Jboss5 on Freebsd I came across a few issues. It may be related to your problem.
 
Check if the below fixes apply to your case (and maybe incorporate them into the version control).
 
 
Cheers,
Balazs
 
---
 
1. Had to add an extra repository as some "modules" were not available on the Jboss server:
 
vi /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/pom.xml
...
  <!-- 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>
      </snapshots>
    </repository>
    <repository>
      <id>snapshots.jboss.org</id>
      <name>JBoss Snapshots Repository</name>
      <url>http://snapshots.jboss.org/maven2</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>repository.jboss.org.2</id>
      <name>JBoss Releases Repository 2</name>
      <url>http://maven.glassfish.org/content/groups/glassfish</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </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>
      </snapshots>
    </pluginRepository>
    <pluginRepository>
      <id>snapshots.jboss.org</id>
      <name>JBoss Plugin Snapshots</name>
      <url>http://snapshots.jboss.org/maven2</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
    <pluginRepository>
      <id>repository.jboss.org.2</id>
      <name>JBoss Plugin Releases 2</name>
      <url>http://maven.glassfish.org/content/groups/glassfish</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
...
 
 
2. The access right setup for a few files was wrong after the installation (some files had ownership of "root" and "www" could not access them). However not sure why Jboss runs under "www" and not "root":
 
find /var/jboss5/ -user root -exec chown www {} \; 		 	   		  =
Comment 6 Chris Rees freebsd_committer freebsd_triage 2011-09-04 17:59:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

I'll take it.
Comment 7 Chris Rees 2012-02-05 17:55:31 UTC
I've incorporated the fix by Balazs into a patch (below).

Does this help?

Chris

http://www.bayofrum.net/~crees/patches/jboss-fix.diff
Comment 8 dfilter service freebsd_committer freebsd_triage 2012-02-23 20:41:11 UTC
crees       2012-02-23 20:40:57 UTC

  FreeBSD ports repository

  Modified files:
    java/jboss5          Makefile 
  Added files:
    java/jboss5/files    patch-pom-xml 
  Log:
  Add extra repository
  
  PR:             ports/155547
  Approved by:    maintainer timeout
  
  Revision  Changes    Path
  1.53      +0 -2      ports/java/jboss5/Makefile
  1.1       +38 -0     ports/java/jboss5/files/patch-pom-xml (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 9 Chris Rees freebsd_committer freebsd_triage 2012-02-23 20:41:41 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!