On Thu, 14 Oct 2004 08:36:59 -0700, Ben Anderson <[EMAIL PROTECTED]> wrote: > Hi, > In the spirit of converting struts to maven as well as my desire to begin using > (or testing, or whatever point it's at) struts-faces. I've created the > necessary maven files to > 1) create struts-faces.jar > 2) create example1-webapp.war >
Cool. I take it you noted the rearrangement that I did on the SVN repository for these things? If so, I'll definitely take advantage of your work, and add this to the repository. > One issue is that no jsf artifacts exist on ibiblio. I hope to get myfaces up > there eventually, but in the meantime they'll have to be downloaded manually. > See the end of this message if you need to know how to do this. The other > issue I'm running into concerns the war file. I can't seem to find the file > struts-faces.tld anywhere. I do see it in the struts-faces.jar nightly build. > Is this file somehow not in svn, or am I blind? > That file actually gets generated as part of the build (along with the documentation file describing the tag library. In a binary distribution, you'll find it in the META-INF directory of struts-faces.jar as well. > Anyone interested in this patch (Craig, I'm trying to win you over to Maven) :-) > can > find it here: > http://www.benanderson.us/bd/maven.txt > I plan to continue work on this until it's obvious that Maven will simplify > things, so this should only be considered an intermediary patch. > Sounds good. > I realize Maven is a lot more than what some people want, but I've found the > beauty in it's simple build mechanism. Craig, you mentioned that Maven > creates only a single artifact. While this is true, you're directory structure > can dictate subprojects (each creating it's own artifact). struts-faces is > already lined out nicely to do this. For instance, the core-libary directory > produces struts-faces.jar. The example1-webapp produces example1-webapp.war. > Does this pertain to your single artifact concerns, or is there some other > artifact I'm missing? > I deliberately tried to factor struts-faces into the individual pieces that each create their own artifact, and that part went fine. But how would I arrange the consolidation that is done in the top-level build.xml file of the "struts-faces" subdirectory, which basically delegates to the individual build scripts for each piece, and then combines the results? > Sorry for the rambling. Craig, I think struts-faces is pretty awesome and > appreciate the work you've done across the board ;-) > You're welcome. > -Ben > > To set jars that aren't in ibiblio's repository in maven's classpath: > I decided to stick with the jsfri, so in order for the following to make sense > in maven... > <dependency> > <groupId>sun</groupId> > <artifactId>jsf-api</artifactId> > <version>1.0</version> > <properties> > <war.bundle>true</war.bundle> > </properties> > </dependency> > <dependency> > <groupId>sun</groupId> > <artifactId>jsf-impl</artifactId> > <version>1.0</version> > <properties> > <war.bundle>true</war.bundle> > </properties> > </dependency> > > you must create the following directory structure in your local maven repository > ${LOCAL_MAVEN_REPOS} -- this is not a formal name > --sun > ----jars > ------jsf-api-1.0.jar -- I realize this is actually 1.0.1. I just picked > ------jsf-impl-1.0.jar -- a number to satisfy Maven's desire for a version #. > Might as well pick the current version, which is 1.1_01, right? Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
