Hi Andrew,

On 23/07/2009, at 7:34 PM, Andrew Lindesay wrote:

Having a wee play with maven to familiarise myself with it and have a wee question for you mavenites;

To get resource flattening;

        .../Resources/graphics/xyz.gif
        .../Resources/models/Foo.eomodeld
        .../Resources/components/View.wo

Going to

        .../Resources/xyz.gif
        .../Resources/Foo.eomodeld
        .../Resources/View.wo

Is there an easy(ish) way to achieve this "out of the box"?

Out of the box maven usually copies resources to the destination preserving their relative paths.

However, there's a few ways to achieve what you're after:

(Henrique -- feel free to fill in any blanks)

1) maven-wolifecycle-plugin flattenResources configuration option

@see http://wiki.objectstyle.org/confluence/display/WOL/WOProject-Maven2
@see http://wiki.objectstyle.org/confluence/display/WOL/maven-wolifecycle-plugin
@see http://wiki.objectstyle.org/confluence/display/WOL/woapplication-archetype

<build>
...
        <plugins>
                <plugin>
                        <groupId>org.objectstyle.woproject.maven2</groupId>
                        <artifactId>maven-wolifecycle-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                                <...>
                                <flattenResources>true</flattenResources>
                        </configuration>
                </plugin>
        </plugins>
...
</build>


2) http://portals.apache.org/jetspeed-2/buildguide/jetspeed-unpack-plugin.html

There may be others. I've not needed to do so and haven't looked into it. If you need further options asking on the maven user list would probably produce further results.

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to