Working on the MyFaces poms...
To the MyFaces team, the portlet API is not optional: it's needed to build MyFaces. They are not thinking in terms of transitive dependencies for a Maven 2 build. But I know my Shale app doesn't require the portlet api in WEB-INF/lib, yet that's what's going to happen without <optional>.
Here's a good link to the 1.1.0 build.xml, the one with *checkout* in it didn't work: http://svn.apache.org/viewcvs.cgi/myfaces/build/tags/1_1_0/build.xml?rev=280673&view=markup
Here's a thread where Craig explained that portlet is not 'provided' when I was trying to decide between 'provided' and 'optional' for the Commons Chain pom: http://www.nabble.com/Re%3A-chain-dependencies-p1507516.html
I'll go ask on dev@myfaces to make it official. Thanks!
/svn/ $ svn co http://svn.apache.org/repos/asf/myfaces/current myfaces/current
/svn/myfaces/current/build/ $ ant
Okay... that seems to have built myfaces-all.jar. Searching for the text 'nightly' turns up bootstrap.xml which apparently builds the nightlies. So we'll try that.
/svn/myfaces/current/build/ $ ant -f bootstrap.xml Buildfile: bootstrap.xml BUILD FAILED E:\svn\myfaces\current\build\bootstrap.xml:11: taskdef A class needed by class o rg.apache.tools.ant.taskdefs.optional.ssh.Scp cannot be found: com/jcraft/jsch/U serInfo Total time: 0 seconds
Ant's scp task depends on a library that is not distributed with Ant. Get jsch-x-x-x.jar from here http://www.jcraft.com/jsch/ and put it in $ANT_HOME/lib. Then try again:
$ ant -f bootstrap.xml Buildfile: bootstrap.xml BUILD FAILED E:\svn\myfaces\current\build\bootstrap.xml:13: taskdef class org.tigris.subversi on.svnant.SvnTask cannot be found Total time: 0 seconds
And that one is here: http://subclipse.tigris.org/svnant.html . Except that the downloads page takes you to subclipse. Best I could find is a link to RC1 here: http://svn.haxx.se/users/archive-2005-06/1706.shtml
So, retrieving the 1.0.0.RC1.zip and copying all of the jar files found in its 'lib' directory to $ANT_HOME/lib finally gets us somewhere!
... except that the default target in bootstrap.xml is now checking out another copy of the MyFaces project.
Apparently all you need are the 'bootstrap' files from here: http://svn.apache.org/repos/asf/myfaces/build/trunk/ and the two libraries mentioned above.