users@glassfish.java.net

[gf-users] Re: building 4.1 fails?

From: Romain Grecourt <romain.grecourt_at_oracle.com>
Date: Wed, 15 Apr 2015 14:15:46 -0700

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".

Thanks,
Romain