Re: Packaging up images

2007-03-27 Thread mraible

Here's what I came up with using the maven-antrun-plugin.  How would I do
this with the assembly plugin?

profile
idzipContent/id
build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idzipContent/id
phasepackage/phase
configuration
tasks
zip
zipfile=${project.build.directory}/static-content.zip
zipfileset
dir=src/main/webapp/content
patternset
id=srcfiles
include name=**/
exclude
name=*.psd/
/patternset
/zipfileset
/zip
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile

Thanks,

Matt

dan tran wrote:
 
 zip and deploy? if so, use assembly:attached
 
 
 On 3/27/07, mraible [EMAIL PROTECTED] wrote:


 I'm currently migrating an ASP-based site to Maven and Subversion. The
 previous site didn't use any source control, so the images directory is
 quite large (1 GB).  I can exclude/include this directory easily enough
 with
 the maven-war-plugin and profiles, but I'm wondering what's the best way
 to
 zip it up as part of the build process. Should I use the
 maven-antrun-plugin, or is there a better way?

 Thanks,

 Matt
 --
 View this message in context:
 http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696408
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696856
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Packaging up images

2007-03-27 Thread Dan Tran

You need to create an assemlby file and configure it to zip up your
directory.  There is plenty examples at assembly-plugin's site.

-D


On 3/27/07, mraible [EMAIL PROTECTED] wrote:



Here's what I came up with using the maven-antrun-plugin.  How would I do
this with the assembly plugin?

   profile
   idzipContent/id
   build
   plugins
   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idzipContent/id
   phasepackage/phase
   configuration
   tasks
   zip
zipfile=${project.build.directory}/static-content.zip
   zipfileset
dir=src/main/webapp/content
   patternset
id=srcfiles
   include
name=**/
   exclude
name=*.psd/
   /patternset
   /zipfileset
   /zip
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   /plugin
   /plugins
   /build
   /profile

Thanks,

Matt

dan tran wrote:

 zip and deploy? if so, use assembly:attached


 On 3/27/07, mraible [EMAIL PROTECTED] wrote:


 I'm currently migrating an ASP-based site to Maven and Subversion. The
 previous site didn't use any source control, so the images directory
is
 quite large (1 GB).  I can exclude/include this directory easily enough
 with
 the maven-war-plugin and profiles, but I'm wondering what's the best
way
 to
 zip it up as part of the build process. Should I use the
 maven-antrun-plugin, or is there a better way?

 Thanks,

 Matt
 --
 View this message in context:
 http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696408
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
View this message in context:
http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696856
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Packaging up images

2007-03-27 Thread Dan Tran

zip and deploy? if so, use assembly:attached


On 3/27/07, mraible [EMAIL PROTECTED] wrote:



I'm currently migrating an ASP-based site to Maven and Subversion. The
previous site didn't use any source control, so the images directory is
quite large (1 GB).  I can exclude/include this directory easily enough
with
the maven-war-plugin and profiles, but I'm wondering what's the best way
to
zip it up as part of the build process. Should I use the
maven-antrun-plugin, or is there a better way?

Thanks,

Matt
--
View this message in context:
http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696408
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Packaging up images

2007-03-27 Thread mraible

OK, I got it working by adding the following profile:

profile
idstatic-content/id
build
plugins
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
descriptors
   
descriptorsrc/assembly/static-content.xml/descriptor
/descriptors
/configuration
executions
execution
idmake-assembly/id
phasepackage/phase
goals
goalattached/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile

In src/assembly/static-content.xml, I have:

assembly
idstatic-content/id
formats
formatzip/format
/formats
fileSets
fileSet
directorysrc/main/webapp/content/directory
excludes
exclude**/*.psd/exclude
/excludes
/fileSet
/fileSets
/assembly

Everything seems to work fine.  However, I'd like to include this static
content in another webapp that depends on this WAR.  I tried adding the
following, but it doesn't include this content in the final war when running
mvn package.

dependency
groupId${pom.groupId}/groupId
artifactIdmy-webapp/artifactId
version${pom.version}/version
classifierstatic-content/classifier
typezip/type
/dependency

AFAICT, my classifier and type is correct.

Thanks,

Matt


dan tran wrote:
 
 You need to create an assemlby file and configure it to zip up your
 directory.  There is plenty examples at assembly-plugin's site.
 
 -D
 
 
 On 3/27/07, mraible [EMAIL PROTECTED] wrote:


 Here's what I came up with using the maven-antrun-plugin.  How would I do
 this with the assembly plugin?

profile
idzipContent/id
build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idzipContent/id
phasepackage/phase
configuration
tasks
zip
 zipfile=${project.build.directory}/static-content.zip
zipfileset
 dir=src/main/webapp/content
patternset
 id=srcfiles
include
 name=**/
exclude
 name=*.psd/
/patternset
/zipfileset
/zip
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile

 Thanks,

 Matt

 dan tran wrote:
 
  zip and deploy? if so, use assembly:attached
 
 
  On 3/27/07, mraible [EMAIL PROTECTED] wrote:
 
 
  I'm currently migrating an ASP-based site to Maven and Subversion. The
  previous site didn't use any source control, so the images directory
 is
  quite large (1 GB).  I can exclude/include this directory easily
 enough
  with
  the maven-war-plugin and profiles, but I'm wondering what's the best
 way
  to
  zip it up as part of the build process. Should I use the
  maven-antrun-plugin, or is there a better way?
 
  Thanks,
 
  Matt
  --
  View this message in context:
  http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696408
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9696856
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Packaging-up-images-tf3474277s177.html#a9699901