Re: maven archetype creating correctly?

From: Henrique Prange (hprang..mail.com)
Date: Fri Jul 24 2009 - 13:34:54 EDT

  • Next message: John Huss: "Re: Eclipse 3.5 - Very Slow Build Time"

    Hi Greg,

    You have detected a bug in the woapplication archetype. Thank you! :)

    The maven-war-plugin doesn't know about the src/main/components and
    src/main/webserver-resources folders. You have to add the following
    configuration to your pom:

    <build>
    ...
        <resources>
        ...
           <resource>
              <targetPath>Resources</targetPath>
              <directory>${basedir}/src/main/components</directory>
           </resource>
           <resource>
              <targetPath>WebServerResources</targetPath>
              <directory>${basedir}/src/main/webserver-resources</directory>
           </resource>
        </resources>
    </build>

    Of course, this configuration should be added by default by servlet
    archetypes. I've filed the issue WOL-1041 on Jira.

    Cheers,

    Henrique

    On 7/24/09 1:01 PM, Mr. G Brown wrote:
    > I made a mistake; one must tab out of the archetype fields (annoyingly
    > easy to forget) before hitting finish, so the project didn't get created
    > with true war support, but this one did.
    >
    > The war from: mvn clean package:
    >
    > ------------------------------------------------------------------------
    >
    >
    > here is the 2.0.17 archetype created pom:
    >
    > ------------------------------------------------------------------------
    >
    >
    > It has the maven war plugin.
    >
    > But I still can't see any html templates.
    >
    > Thanks,
    > Greg
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Jul 24 2009 - 13:35:55 EDT