Roger;
Thanks for the fix. With your fix, now I can run Mojarra 2.1.0 build and test.
--- On Tue, 3/29/11, Roger Kitain <roger.kitain_at_oracle.com> wrote:
From: Roger Kitain <roger.kitain_at_oracle.com>
Subject: Re: Mojarra 2.1.0 build failed.
To: dev_at_javaserverfaces.java.net
Date: Tuesday, March 29, 2011, 12:58 PM
I duplicated the problem on my windows xp vmware fusion (on mac)
area.
I have a fix. I'll let you know when it is checked in.
-roger
On 3/26/11 11:58 PM, Tom Shi wrote:
Hi Sheetal;
Thanks for your reply.
It is not the typo. :)
I got the same error again even after redoing steps again.
The OS is windows XP.
1. Get the code:
svn checkout
https://svn.java.net/svn/mojarra~svn/tags/2.1.0-b10
mojarra-2.1.0
2. Copy the build.properties.glassfish to build.properties
and change 3 lines:
jsf.build.home=E:/proj/mojarra-2.1.0
container.name=glassfishV3
container.home=C:/sn/glassfish-3.0.1/glassfish
3. building:
E:\proj\mojarra-2.1.0>ant clean main
Buildfile: E:\proj\mojarra-2.1.0\build.xml
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: Sat Mar 26 23:11:28 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
It looks like something related to the maven.xml, but it
is hard to me to figure it out.
I am using maven 2.2.1
Any help will be greatly appreciated!
Thanks
Tom
---------------------------------------------------------------------------------------------------------------------
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
--
roger.kitain_at_oracle.com
https://twitter.com/rogerk09
http://www.java.net/blogs/rogerk