• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maven Resource / WebServerResource Flattening
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maven Resource / WebServerResource Flattening


  • Subject: Re: Maven Resource / WebServerResource Flattening
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 24 Jul 2009 11:10:48 +1000

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Maven Resource / WebServerResource Flattening
      • From: Andrew Lindesay <email@hidden>
References: 
 >Maven Resource / WebServerResource Flattening (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: [SOLVED] Re: failed to provide new primary keys for entity
  • Next by Date: Re: Maven Resource / WebServerResource Flattening
  • Previous by thread: Maven Resource / WebServerResource Flattening
  • Next by thread: Re: Maven Resource / WebServerResource Flattening
  • Index(es):
    • Date
    • Thread