Re: I need a Maven book review

2008-06-11 Thread matthew sporleder
On 6/11/08, David Brown [EMAIL PROTECTED] wrote:
 Hello Maven: dev, gurus, users and other haunts. I have a new gig that has 
 thrust me into a Maven-centric dev. env. I am a long time Ant user and the 
 original Hatcher/Ant book did wonders. Is there something similar for Maven? 
 Please advise, evangelize, rant or rave, Dave.


  Yet some, not wise, go to the other side of the globe, to barbarous and 
 unhealthy regions, and devote ten or twenty years, in that they may 
 live,-that is, keep comfortably warm,- and die in New England at last.

  Henry David Thoreau - Walden - 1845


Try this:
http://www.sonatype.com/book/index.html

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



Re: second zip artifact from the same pom?

2008-05-16 Thread matthew sporleder
On Fri, May 16, 2008 at 3:16 PM, ziprman [EMAIL PROTECTED] wrote:
 Hi,

 I have a typical war webapp which I deploy to tomcat. At the same time I
 have the typical static content (images, js, css) that needs to go to my
 webservers. It is easy enough to exclude the static content from my war, but
 I would like to zip up the static content and also deploy it to my repos as
 a separate artifact. Both attached to a phase and as an independent command,
 would be optimal, because we often update static content without needing to
 deploy the app.

 I have read some older postings about using assemblies (I have not used this
 plugin before) and the maven-zip-plugin, as both a standalone archetype and
 a build-plugin. Unfortunately, I am unsure which applies to my use case. I
 suppose I could also just use an ant task, as well.

 I was just wondering if anyone has done this and what is the best approach.



You can do this with assemblies using sources/fileSets without too much trouble.
(this assumes you want all of your resources/ put into the zip in a
module called something-front)
into your pom:
  build
plugins
  plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptors
descriptorsrc/assembly/assembly.xml/descriptor
  /descriptors
/configuration
  /plugin
/plugins
  /build

assembly.xml:
assembly
 idfront-assembly/id
 formats
  formatzip/format
 /formats
includeBaseDirectoryfalse/includeBaseDirectory

  moduleSets
moduleSet
  includes
include*-front/include
  /includes
  sources
includeModuleDirectoryfalse/includeModuleDirectory
fileSets
  fileSet
directorysrc/main/resources//directory
outputDirectory//outputDirectory
  /fileSet
/fileSets
  /sources
/moduleSet
  /moduleSets

/assembly

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



Re: Using resource plugin -- why do my resources end up in classes/ ?

2008-05-14 Thread matthew sporleder
Is there any reason why these files shouldn't be considered binaries
by the assembly plugin?

I'm now running into a problem where my binaries are getting
included in the zip file I create, but my resources are not.

Do I need to explicitly include the mas files, or is there an option
within the moduleSet to include resources?

On Tue, May 13, 2008 at 1:33 PM, matthew sporleder [EMAIL PROTECTED] wrote:
 Thanks, that worked perfectly.



  On Tue, May 13, 2008 at 1:17 PM, Kalle Korhonen
  [EMAIL PROTECTED] wrote:
   I'd separate out those resources from classpath resources by putting them
into a different dir. Then use:
 resource
   directorysrc/main/data/directory
   targetPath../targetPath
 /resource
  
Or, if you bind resources plugin yourself like you did below, use:
   configuration
  
outputDirectory${basedir}/target/outputDirectory
   /configuration
  
  
Kalle
  
  
On Tue, May 13, 2008 at 9:03 AM, matthew sporleder [EMAIL PROTECTED]
wrote:
  
  
  
 How can I change the outputDirectory for all of my modules which
 include the following:

 build
  plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-resources-plugin/artifactId
   version2.2/version
executions
  execution
phasecompile/phase
goals
  goalresources/goal
/goals
  /execution
/executions
   /plugin
  /plugins
 /build

 Currently my resources/* are being copied to target/classes/ and I
 really just need them in target/

 I've tried changing the outputDirectory, but it's not really working
 how I'd like with modules. (I end up with the copies in the parent's
 target/ instead of the modules'.

 Thanks,
 Matt

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


  


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



Generate final target in parent

2008-05-13 Thread matthew sporleder
I would like to end up with a target/ in my parent directory with
copies of all the sub-project .jar's, etc.  Should I do this with a
copy-dependencies, an ant task, or is there some built-in way?

Thanks,
Matt

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



Using resource plugin -- why do my resources end up in classes/ ?

2008-05-13 Thread matthew sporleder
How can I change the outputDirectory for all of my modules which
include the following:

build
 plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-resources-plugin/artifactId
   version2.2/version
executions
  execution
phasecompile/phase
goals
  goalresources/goal
/goals
  /execution
/executions
   /plugin
  /plugins
/build

Currently my resources/* are being copied to target/classes/ and I
really just need them in target/

I've tried changing the outputDirectory, but it's not really working
how I'd like with modules. (I end up with the copies in the parent's
target/ instead of the modules'.

Thanks,
Matt

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



Re: Using resource plugin -- why do my resources end up in classes/ ?

2008-05-13 Thread matthew sporleder
Thanks, that worked perfectly.

On Tue, May 13, 2008 at 1:17 PM, Kalle Korhonen
[EMAIL PROTECTED] wrote:
 I'd separate out those resources from classpath resources by putting them
  into a different dir. Then use:
   resource
 directorysrc/main/data/directory
 targetPath../targetPath
   /resource

  Or, if you bind resources plugin yourself like you did below, use:
 configuration

  outputDirectory${basedir}/target/outputDirectory
 /configuration


  Kalle


  On Tue, May 13, 2008 at 9:03 AM, matthew sporleder [EMAIL PROTECTED]
  wrote:



   How can I change the outputDirectory for all of my modules which
   include the following:
  
   build
plugins
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-resources-plugin/artifactId
 version2.2/version
  executions
execution
  phasecompile/phase
  goals
goalresources/goal
  /goals
/execution
  /executions
 /plugin
/plugins
   /build
  
   Currently my resources/* are being copied to target/classes/ and I
   really just need them in target/
  
   I've tried changing the outputDirectory, but it's not really working
   how I'd like with modules. (I end up with the copies in the parent's
   target/ instead of the modules'.
  
   Thanks,
   Matt
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  


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



Re: RE : maven with flex3

2008-05-05 Thread matthew sporleder
Are either of your guys using flexunit for testing?  (or am I naive to
think it does automated testing?)

On Sat, May 3, 2008 at 4:52 AM, Thomas Darbois
[EMAIL PROTECTED] wrote:
 I'm using Israfil plugin with quite a simple project (several language, 
 tokens ... but only one swf at the end) it works fine. The documentation is 
 great, and you only have to add in configuration all the parameters you are 
 using (and that are not by default) for example the resources for the tokens.

  Nearly no tweaking was needed.
  
  De : RedBugz Software [EMAIL PROTECTED]
  Date d'envoi : vendredi 2 mai 2008 20:09
  À : Maven Users List
  Objet : Re: maven with flex3



  On Fri, May 2, 2008 at 11:59 AM, matthew sporleder [EMAIL PROTECTED] wrote:
   Is anyone doing a flex3 project with maven?  It looks like the latest
net.israfil.mojo plugin supports flex3, but I'm having trouble getting
my head around directory structures, plugins and dependencys.
  
Any help/examples are appreciated.

  We're doing Flex 3 with Maven. We used to use the Israfil plugin, but
  now we use Flex-Mojos:
  http://flex-mojos.googlecode.com/

  Getting Started:
  http://blog.flex-mojos.info/2008/03/29/more-them-a-hello-world/

  Mailing List:
  http://groups.google.com/group/flex-mojos

  Post to the list if you have any questions or problems.

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



maven with flex3

2008-05-02 Thread matthew sporleder
Is anyone doing a flex3 project with maven?  It looks like the latest
net.israfil.mojo plugin supports flex3, but I'm having trouble getting
my head around directory structures, plugins and dependencys.

Any help/examples are appreciated.

Matt

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