dev@javaserverfaces.java.net

Re: Mojarra 2.1.0 build failed.

From: Sheetal Vartak <sheetal.vartak_at_oracle.com>
Date: Fri, 25 Mar 2011 11:31:57 -0700

Hi Tom,

The 2.1.0 build should work just like 2.0.4.

From the Error Message, it appears that there has been a typo.

Please see the line marked in bold inline...

Looks like you typed "and" instead of "ant" :-)

Hope this helps.

Thanks
Sheetal

On Mar 24, 2011, at 9:45 PM, Tom Shi wrote:

> I downloaded both the
> Mojarra 2.1.0 Release Candidate 1
> https://svn.java.net/svn/mojarra~svn/tags/2.1.0-b10 (svn)
> Mojarra 2.0.4 Final
> https://svn.java.net/svn/mojarra~svn/tags/2.0.4-b09 (svn)
>
>
> Follwoing the instructions:
>
> Copy build.properties.glassfish to build.properties
> Edit build.properties and set jsf.build.home to SOURCE_HOME
> From SOURCE_HOME run ant clean main - this will build the API as well as the implementation
>
> The 2.0.4 code is built successfully and passed the ant test.with.container.refresh
>
> But 2.1.0 build failed.
>
> Is there any specially instructions for 2.1.0 build? The trunk source code build failed also.
>
>
> Error message:
> clean:
> [exec] [INFO] Scanning for projects...
> [exec] [INFO] ------------------------------------------------------------------------
> [exec] [ERROR] BUILD FAILURE
> [exec] [INFO] ------------------------------------------------------------------------
> [exec] [INFO] Invalid task 'and': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
> [exec] [INFO] ------------------------------------------------------------------------
> [exec] [INFO] For more information, run Maven with the -e switch
> [exec] [INFO] ------------------------------------------------------------------------
> [exec] [INFO] Total time: < 1 second
> [exec] [INFO] Finished at: Fri Mar 25 00:33:05 EDT 2011
> [exec] [INFO] Final Memory: 1M/15M
> [exec] [INFO] ------------------------------------------------------------------------
>
> BUILD FAILED
> E:\proj\mojarra-2.1.0\build.xml:105: The following error occurred while executing this line:
> E:\proj\mojarra-2.1.0\build.xml:72: The following error occurred while executing this line:
> E:\proj\mojarra-2.1.0\common\ant\maven.xml:252: exec returned: 1
>
> Total time: 2 seconds
>