dev@glassfish.java.net

maven version to use (was "build failure")

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 01 Oct 2009 08:55:29 -0700

I'm still using 2.0.9 (Mac), any problem with that?

Lloyd

On Oct 1, 2009, at 3:23 AM, Jane Young wrote:

> Nandini,
>
> I've been using Maven version 2.2.1 for a while and have no issues
> with the build. I'm using Mac.
> Can you explicitly set the MAVEN_OPTS in the environment (export
> MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=512m") and try the build again?
> Let me know if this work.
>
> Thanks,
> Jane
>
>
> Nandini Ektare wrote:
>>
>> Anyone has any idea what issues could come up if I use maven 2.1.0.
>>
>> After trying unsuccessfully with 2.2.0 and 2.2.1, I tried the maven
>> 2.1.0 and finally the build succeeds!
>> Default domain starts too and overall it appears okay.
>>
>> Thanks
>> Nandini
>>
>> On Sep 30, 2009, at 11:13 AM, Nandini Ektare wrote:
>>
>>> Thanks Pavel for the tip.
>>>
>>> Jane,
>>>
>>> Even with 2.2.1, I have another issue now. GF parent project keeps
>>> failing on account of OOM errors and no matter how large the
>>> number is in $MAVEN_OPTS, it fails due to OOM at the same place.
>>> I have enough memory so hardware is not an issue for sure.
>>>
>>> -Nandini
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building GlassFish Parent Project
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [enforcer:enforce {execution: enforce-versions}]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] FATAL ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Java heap space
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> java.lang.OutOfMemoryError: Java heap space
>>> at java.util.ArrayList.<init>(ArrayList.java:112)
>>> at java.util.ArrayList.<init>(ArrayList.java:119)
>>> at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:80)
>>> at
>>> org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.getChild
>>> (XmlPlexusConfiguration.java:144)
>>> at
>>> org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.getChild
>>> (XmlPlexusConfiguration.java:128)
>>> at
>>> org.codehaus.plexus.component.repository.io.PlexusTools.buildComponentDescriptor
>>> (PlexusTools.java:138)
>>> at
>>> org.codehaus.plexus.component.discovery.DefaultComponentDiscoverer.createComponentDescriptors
>>> (DefaultComponentDiscoverer.java:69)
>>> at
>>> org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer.findComponents
>>> (AbstractComponentDiscoverer.java:78)
>>> at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents
>>> (DefaultPlexusContainer.java:717)
>>> at org.codehaus.plexus.DefaultPlexusContainer.addJarResource
>>> (DefaultPlexusContainer.java:1396)
>>> at
>>> org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
>>> (DefaultPluginManager.java:853)
>>> at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo
>>> (DefaultPluginManager.java:647)
>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo
>>> (DefaultPluginManager.java:468)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
>>> (DefaultLifecycleExecutor.java:694)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
>>> (DefaultLifecycleExecutor.java:556)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>>> (DefaultLifecycleExecutor.java:535)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
>>> (DefaultLifecycleExecutor.java:387)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>>> (DefaultLifecycleExecutor.java:348)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
>>> (DefaultLifecycleExecutor.java:180)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>> at org.apache.maven.cli.compat.CompatibleMain.main
>>> (CompatibleMain.java:60)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke
>>> (NativeMethodAccessorImpl.java:39)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
>>> 315)
>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>> at org.codehaus.classworlds.Launcher.mainWithExitCode
>>> (Launcher.java:430)
>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 1 minute 2 seconds
>>> [INFO] Finished at: Wed Sep 30 11:02:46 PDT 2009
>>> [INFO] Final Memory: 80M/81M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> v3 glassfish$ mvn -version
>>> Using Java version: 1.6
>>> Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
>>> Java version: 1.6.0_15
>>>
>>> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/
>>> 1.6.0/Home
>>> Default locale: en_US, platform encoding: MacRoman
>>> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
>>> v3 glassfish$ echo $MAVEN_OPTS
>>> -Xmx512m -XX:MaxPermSize=512m //2048 did not make any difference
>>> either
>>> v3 glassfish$
>>>
>>>
>>>
>>> On Sep 30, 2009, at 2:56 AM, Jane Young wrote:
>>>
>>>> Hi,
>>>>
>>>> Please do not use maven version 2.2.0. There are critical
>>>> regressions in this version and you will not be able to compile
>>>> GFv3.
>>>>
>>>> Jane
>>>>
>>>>
>>>> Pavel Bucek wrote:
>>>>> Nandini,
>>>>>
>>>>> I experienced same behavior and I was using maven 2.2.0.
>>>>> Switching to 2.2.1 resolved it.
>>>>>
>>>>> Regards,
>>>>> Pavel
>>>>>
>>>>> Nandini Ektare wrote:
>>>>>> Build on latest trunk sources results in the following error
>>>>>> (it's on 10.5.8 mac os).
>>>>>> Any idea or anyone else sees this?
>>>>>>
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Building Glassfish Nucleus Package
>>>>>> [INFO] task-segment: [install]
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] [enforcer:enforce {execution: enforce-versions}]
>>>>>> [INFO] [osgiversion:compute-osgi-version {execution: compute-
>>>>>> osgi-version}]
>>>>>> [INFO] [clean:clean {execution: auto-clean}]
>>>>>> [INFO] [resources:resources {execution: default-resources}]
>>>>>> [WARNING] Using platform encoding (MacRoman actually) to copy
>>>>>> filtered resources, i.e. build is platform dependent!
>>>>>> [INFO] Copying 3 resources
>>>>>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>>>>>> [WARNING] Ignoring project type distribution-base-zip -
>>>>>> supportedProjectTypes = [hk2-jar, bundle]
>>>>>> [INFO] [hk2:hk2-test-compile {execution: default-hk2-test-
>>>>>> compile}]
>>>>>> [INFO] No sources to compile
>>>>>> [INFO] [surefire:test {execution: default-test}]
>>>>>> [INFO] No tests to run.
>>>>>> [INFO] [antrun-extended:run {execution: default-run}]
>>>>>> [INFO] Executing tasks
>>>>>>
>>>>>> create.package:
>>>>>> Downloading: http://maven.glassfish.org/content/groups/glassfish/javax/servlet/jsp/jsp-api/[2.1.3-b02,2.2
>>>>>> )/jsp-api-[2.1.3-b02,2.2).pom
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] BUILD ERROR
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] An Ant BuildException has occured: The following error
>>>>>> occurred while executing this line:
>>>>>> /Users/glassfish/ws/v3/packager/glassfish-nucleus/build.xml:29:
>>>>>> java.lang.IllegalArgumentException: Invalid uri 'http://
>>>>>> maven.glassfish.org/content/groups/glassfish/javax/servlet/jsp/
>>>>>> jsp-api/[2.1.3-b02,2.2)/jsp-api-[2.1.3-b02,2.2).pom': escaped
>>>>>> absolute path not valid
>>>>>>
>>>>>> Nandini
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>>>>
>>>
>>
>

Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish Team