users@glassfish.java.net

[gf-users] Re: building 4.1 fails?

From: Romain Grecourt <romain.grecourt_at_oracle.com>
Date: Thu, 16 Apr 2015 11:49:12 -0700

On 4/16/15 12:10 AM, Pawel Veselov wrote:
> On Wed, Apr 15, 2015 at 2:15 PM, Romain Grecourt
> <romain.grecourt_at_oracle.com <mailto:romain.grecourt_at_oracle.com>> wrote:
>
> On 4/15/15 1:31 PM, Pawel Veselov wrote:
>
> Hi.
>
> I'm running into these problems trying to build 4.1:
> JAVA_HOME=/opt/java/jdk1.8 MVN_HOME=~/soft/apache-maven-3.0.4/
> PATH=$PATH:~/soft/apache-maven-3.0.4/bin/ ./gfbuild.sh
>
> [INFO] GlassFish Nucleus Parent Project ..................
> FAILURE [0.700s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3:40.646s
> [INFO] Finished at: Wed Apr 15 12:12:57 PDT 2015
> [INFO] Final Memory: 153M/2217M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Unknown lifecycle phase "". You must specify a valid
> lifecycle phase or a goal in the format <plugin-prefix>:<goal>
> or
> <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>.
> Available lifecycle phases are: validate, initialize,
> generate-sources, process-sources, generate-resources,
> process-resources, compile, process-classes,
> generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resources, test-compile,
> process-test-classes, test, prepare-package, package,
> pre-integration-test, integration-test, post-integration-test,
> verify, install, deploy, pre-site, site, post-site,
> site-deploy, pre-clean, clean, post-clean. -> [Help 1]
>
> Any hints on what I may be missing?
>
> The no-arg usage of gfbuild.sh was apparently broken. I've made a
> fix, update the script and try again.
> Otherwise just use "mvn install".
>
>
> Thank you.
>
> The gfbuild.sh also lacks 'export MAVEN_OPTS' after the MAVEN_OPTS is
> defined. Without it, there is a good chance the build will fail with
> out of memory.
Thanks for the catch, I've added an export statement for MAVEN_OPTS.

Romain
>
> Thanks,
> Pawel.