dev@glassfish.java.net

Re: build failure on Mac OS

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Fri, 24 Feb 2012 13:47:38 -0800

I realized that I hadn't updated my build script on my Mac to
use the new JVM values I'm using on my Solaris machine. I used
"-Xmx1024m -XX:MaxPermSize=512m" and now it builds!

Shouldn't gfbuild.sh be updated with these new values?


Bill Shannon wrote on 02/24/12 12:52:
> It hung in the same place twice. Before that I had several failures
> where it failed to download certain artifacts, which I attributed to
> intermittent network or server failures. I removed my repository and
> tried again and got another one of these download failures. I just
> tried again and it hung in the same place. I'm using the exact same
> maven, Java, and OS versions as you.
>
> Jane Young wrote on 02/24/12 09:41:
>> It's hard to tell why the build failed.
>> I ran gfbuild.sh on a fresh checked-out GlassFish trunk workspace so no need to
>> run "mvn clean" and it built successfully.
>> mvn --version returns:
>> Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
>> Java version: 1.6.0_29
>>
>> This is on the Mac OS 10.7.2
>> Does the build always hang in the same area?
>>
>> Jane
>>
>>
>> On 2/23/12 11:21 PM, Bill Shannon wrote:
>>> I build with a script that does a "mvn clean" and then builds with gfbuild.sh.
>>>
>>> Tim Quinn wrote on 02/23/2012 10:55 PM:
>>>> I ran
>>>>
>>>> mvn clean install
>>>>
>>>> from an updated workspace and it worked fine for me - same maven and Java
>>>> versions that you reported, also on a Mac.
>>>>
>>>> Note that I did a clean and build; your log looks like it's from an install
>>>> only.
>>>>
>>>> Maybe there's a problem with install-only in the acc-config module, or in
>>>> something upstream from there that is exposed in the acc-config module step?
>>>>
>>>> - Tim
>>>>
>>>> On Feb 23, 2012, at 9:49 PM, Bill Shannon wrote:
>>>>
>>>>> I've been trying for days to get GlassFish (trunk) to build on my Mac.
>>>>> First I ran into the "plexus.core" error so I removed my local maven
>>>>> repository and built from scratch. Now it's failed twice in a row at
>>>>> this point:
>>>>>
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building ACC Config Classes (JAXB)
>>>>> [INFO] task-segment: [install]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin: checking for
>>>>> updates from glassfish-repo-archive
>>>>> [INFO] artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin: checking for
>>>>> updates from central
>>>>> [INFO] snapshot org.glassfish.deployment:dtds:4.0-SNAPSHOT: checking for
>>>>> updates from glassfish-repo-archive
>>>>> [INFO] [enforcer:enforce {execution: enforce-versions}]
>>>>> [INFO] [osgiversion:compute-osgi-version {execution: compute-osgi-version}]
>>>>> [INFO] [gf:echo {execution: echo}]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building in /Users/shannon/v3/appserver/appclient/client/acc-config
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] [dependency:unpack {execution: unpack-dtd}]
>>>>> [INFO] Configured Artifact: org.glassfish.deployment:dtds:4.0-SNAPSHOT:zip
>>>>> [INFO] Unpacking
>>>>> /Users/shannon/v3/.m2/repository/org/glassfish/deployment/dtds/4.0-SNAPSHOT/dtds-4.0-SNAPSHOT.zip
>>>>>
>>>>>
>>>>> to /Users/shannon/v3/appserver/appclient/client/acc-config/temp with includes
>>>>> **/*-application-client-container*.dtd and excludes
>>>>> [INFO] [jaxb2:generate {execution: JAXB-gen-for-glassfish-acc}]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] FATAL ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> Exception in thread "main"
>>>>>
>>>>> Maven hangs right there. I never get the exception details.
>>>>>
>>>>> Any idea what could be going wrong?
>>>>>
>>>>> (mvn 2.2.1, JDK 1.6.0_29)
>>>>
>>>
>>
>