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

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?

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.

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?

Sorry for the rambling.  Craig, I think struts-faces is pretty awesome and
appreciate the work you've done across the board ;-)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to