dev@glassfish.java.net

Re: mvn build hanging

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Tue, 08 Apr 2008 08:31:13 -0500

If, in fact, building with JDK 5 is a requirement - even if a temporary
one - then the build should either force the use of 5 or check to make
sure that 5 has been set as the JDK.

After all, once instructed to do so computers are far better at checking
things like that than humans are. I'm reminded of the earlier need to
build the api module first before building the rest of the system. How
many person-hours would have been saved if that logic had been -
temporarily - inserted into the build?

- Tim

Kedar Mhaswade wrote:
> Vivek Pandey wrote:
>> As it turns out I was using 1.6.0_04 (have always been using) to
>> compile v3. Not sure what is causing it. running maven with -e
>> --debug does not tell much except that it is happening during
>> compiling with hk2-apt.
>>
>> I switched to jdk5 and it compiles fine.
>
> This is an important data point. Maybe the build is not set up to build
> with JDK 6. I can't test with JDK 6 at the moment, but can you reproduce
> the problem and while the build is hanging, do a "kill -3
> build-process-id"
> to get the thread dump?
>
> Thanks.
>>
>> -vivek.
>>
>> mvn -e --debug install output:
>>
>> [DEBUG] Configuring mojo
>> 'com.sun.enterprise:hk2-maven-plugin:0.2-SNAPSHOT:hk2-c
>> ompile' -->
>> [DEBUG] (f) basedir = /ws/gfv3/common/mbeanserver
>> [DEBUG] (f) buildDirectory = /ws/gfv3/common/mbeanserver/target
>> [DEBUG] (f) classpathElements =
>> [/ws/gfv3/common/mbeanserver/target/classes, /
>> myhome/vivekmz/.m2/repository/com/sun/enterprise/hk2/0.2-SNAPSHOT/hk2-0.2-SNAPSH
>>
>> OT.jar,
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/hk2-core/0.2-SNAPSHOT/
>> hk2-core-0.2-SNAPSHOT.jar,
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/con
>> fig/0.2-SNAPSHOT/config-0.2-SNAPSHOT.jar,
>> /myhome/vivekmz/.m2/repository/com/sun
>> /enterprise/auto-depends/0.2-SNAPSHOT/auto-depends-0.2-SNAPSHOT.jar,
>> /myhome/viv
>> ekmz/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar,
>> /myhome/
>> vivekmz/.m2/repository/org/jvnet/tiger-types/1.0/tiger-types-1.0.jar,
>> /myhome/vi
>> vekmz/.m2/repository/org/glassfish/common/internal-api/10.0-SNAPSHOT/internal-ap
>>
>> i-10.0-SNAPSHOT.jar]
>> [DEBUG] (f) compileSourceRoots =
>> [/ws/gfv3/common/mbeanserver/src/main/java]
>> [DEBUG] (f) compilerId = javac
>> [DEBUG] (f) debug = true
>> [DEBUG] (f) fork = false
>> [DEBUG] (f) localRepository = [local] ->
>> file:///myhome/vivekmz/.m2/repository
>>
>> [DEBUG] (f) optimize = false
>> [DEBUG] (f) outputDirectory =
>> /ws/gfv3/common/mbeanserver/target/classes
>> [DEBUG] (f) outputFileName = glassfish-mbeanserver-1.0
>> [DEBUG] (f) project = MavenProject:
>> org.glassfish.common:glassfish-mbeanserver
>> :1.0 @ /ws/gfv3/common/mbeanserver/pom.xml
>> [DEBUG] (f) projectArtifact =
>> org.glassfish.common:glassfish-mbeanserver:hk2-j
>> ar:1.0
>> [DEBUG] (f) showDeprecation = false
>> [DEBUG] (f) showWarnings = false
>> [DEBUG] (f) staleMillis = 0
>> [DEBUG] (f) verbose = false
>> [DEBUG] -- end configuration --
>> [INFO] [hk2:hk2-compile]
>> [DEBUG] Using compiler 'hk2-apt'.
>> [DEBUG] Source directories: [/ws/gfv3/common/mbeanserver/src/main/java]
>> [DEBUG] Classpath: [/ws/gfv3/common/mbeanserver/target/classes
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/hk2/0.2-SNAPSHOT/hk2-0.2-SNAP
>>
>> SHOT.jar
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/hk2-core/0.2-SNAPSHOT/hk2-cor
>>
>> e-0.2-SNAPSHOT.jar
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/config/0.2-SNAPSHOT/config-0.
>>
>> 2-SNAPSHOT.jar
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/auto-depends/0.2-SNAPSHOT/aut
>>
>> o-depends-0.2-SNAPSHOT.jar
>> /myhome/vivekmz/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.j
>>
>> ar
>> /myhome/vivekmz/.m2/repository/org/jvnet/tiger-types/1.0/tiger-types-1.0.jar
>>
>> /myhome/vivekmz/.m2/repository/org/glassfish/common/internal-api/10.0-SNAPSHOT/
>>
>> internal-api-10.0-SNAPSHOT.jar]
>> [DEBUG] Output directory: /ws/gfv3/common/mbeanserver/target/classes
>> [DEBUG] Classpath:
>> [DEBUG] /ws/gfv3/common/mbeanserver/target/classes
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/hk2/0.2-SNAPSHOT/hk2-
>> 0.2-SNAPSHOT.jar
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/hk2-core/0.2-SNAPSHOT
>> /hk2-core-0.2-SNAPSHOT.jar
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/config/0.2-SNAPSHOT/c
>> onfig-0.2-SNAPSHOT.jar
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/com/sun/enterprise/auto-depends/0.2-SNAP
>> SHOT/auto-depends-0.2-SNAPSHOT.jar
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api
>> -1.0-2.jar
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/org/jvnet/tiger-types/1.0/tiger-types-1.
>> 0.jar
>> [DEBUG]
>> /myhome/vivekmz/.m2/repository/org/glassfish/common/internal-api/10.0-S
>> NAPSHOT/internal-api-10.0-SNAPSHOT.jar
>> [DEBUG] Source roots:
>> [DEBUG] /ws/gfv3/common/mbeanserver/src/main/java
>> [INFO] Compiling 2 source files to
>> /ws/gfv3/common/mbeanserver/target/classes
>>
>> -vivek.
>>
>> Kedar Mhaswade wrote:
>>> Vivek Pandey wrote:
>>>> I am trying to build v3 from root. The build gets stuck (hours and
>>>> still not back) while building commong/mbeanserver.
>>>>
>>>> Here is the message:
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] Building Glassfish MBeanServer support
>>>> [INFO] task-segment: [install]
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] [resources:resources]
>>>> [INFO] Using default encoding to copy filtered resources.
>>>> [INFO] [hk2:hk2-compile]
>>>> [INFO] Compiling 2 source files to
>>>> /ws/gfv3/v3/common/mbeanserver/target/classes
>>>>
>>>>
>>>>
>>>> Any idea what is going on or how can I go past this issue?
>>>>
>>>
>>> Vivek,
>>>
>>> Blame it on the netwoek :-P
>>> Can't really say. Is it possible for you to post "mvn -e --debug"
>>> output.
>>>
>>> Thanks,
>>> Kedar
>>>
>>>> -vivek.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>