Archetype plugin - variable output folders for modules

2008-02-22 Thread Pablo Saavedra
Hi All,

is there any way to specify an output directory for a module that is
different from the source directory? For instance, I'd like a module
contained in folder template-ui to be created as ${rootArtifactId}-ui.

For what I could see, the dir property is used for both input and output
directories, so it I use the ${rootArtifactId} property it will tell me that
it can't find the input folder.

Thanks in advance.


RE: Archetype plugin - variable output folders for modules

2008-02-22 Thread EJ Ciramella
Sure, use assembly directory:

plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-1/version
configurationue
outputDirectoryC:/some/dir/out/of/source/outputDirectory
appendAssemblyIdfalse/appendAssemblyId
finalNameSOMEFINALNAME/finalName
descriptors
descriptor
path/to/assembly/descriptor/dep.xml
/descriptor
/descriptors
/configuration
/plugin 

-Original Message-
From: Pablo Saavedra [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 22, 2008 10:32 AM
To: users@maven.apache.org
Subject: Archetype plugin - variable output folders for modules

Hi All,

is there any way to specify an output directory for a module that is
different from the source directory? For instance, I'd like a module
contained in folder template-ui to be created as ${rootArtifactId}-ui.

For what I could see, the dir property is used for both input and output
directories, so it I use the ${rootArtifactId} property it will tell me
that
it can't find the input folder.

Thanks in advance.

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



Re: Archetype plugin - variable output folders for modules

2008-02-22 Thread Pablo Saavedra
Thanks EJ,

but I think we are talking about different things... I want to define a
module in the archetype-metadata.xml, like this:

module id=${rootArtifactId}-main dir=template-main
name=${rootArtifactId}-main

so the archetype plugin copy all the resources from the template-main module
into a myproject-main module in the resulting project

Thanks!

On 22/02/2008, EJ Ciramella [EMAIL PROTECTED] wrote:

 Sure, use assembly directory:

 plugin
 artifactIdmaven-assembly-plugin/artifactId
 version2.2-beta-1/version
 configurationue
 outputDirectoryC:/some/dir/out/of/source/outputDirectory
 appendAssemblyIdfalse/appendAssemblyId
 finalNameSOMEFINALNAME/finalName
 descriptors
 descriptor
 path/to/assembly/descriptor/dep.xml
 /descriptor
 /descriptors
 /configuration
 /plugin


 -Original Message-
 From: Pablo Saavedra [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 22, 2008 10:32 AM
 To: users@maven.apache.org
 Subject: Archetype plugin - variable output folders for modules

 Hi All,

 is there any way to specify an output directory for a module that is
 different from the source directory? For instance, I'd like a module
 contained in folder template-ui to be created as ${rootArtifactId}-ui.

 For what I could see, the dir property is used for both input and output
 directories, so it I use the ${rootArtifactId} property it will tell me
 that
 it can't find the input folder.

 Thanks in advance.


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




RE: Archetype plugin - variable output folders for modules

2008-02-22 Thread EJ Ciramella
Ahhh - sorry, lackOfCoffeeException() 

-Original Message-
From: Pablo Saavedra [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 22, 2008 10:44 AM
To: Maven Users List
Subject: Re: Archetype plugin - variable output folders for modules

Thanks EJ,

but I think we are talking about different things... I want to define a
module in the archetype-metadata.xml, like this:

module id=${rootArtifactId}-main dir=template-main
name=${rootArtifactId}-main

so the archetype plugin copy all the resources from the template-main
module
into a myproject-main module in the resulting project

Thanks!

On 22/02/2008, EJ Ciramella [EMAIL PROTECTED] wrote:

 Sure, use assembly directory:

 plugin
 artifactIdmaven-assembly-plugin/artifactId
 version2.2-beta-1/version
 configurationue

outputDirectoryC:/some/dir/out/of/source/outputDirectory
 appendAssemblyIdfalse/appendAssemblyId
 finalNameSOMEFINALNAME/finalName
 descriptors
 descriptor
 path/to/assembly/descriptor/dep.xml
 /descriptor
 /descriptors
 /configuration
 /plugin


 -Original Message-
 From: Pablo Saavedra [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 22, 2008 10:32 AM
 To: users@maven.apache.org
 Subject: Archetype plugin - variable output folders for modules

 Hi All,

 is there any way to specify an output directory for a module that is
 different from the source directory? For instance, I'd like a module
 contained in folder template-ui to be created as ${rootArtifactId}-ui.

 For what I could see, the dir property is used for both input and
output
 directories, so it I use the ${rootArtifactId} property it will tell
me
 that
 it can't find the input folder.

 Thanks in advance.


 -
 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]



plugin variable

2004-06-24 Thread Sonnathi, Venkat
Hi,

Can I set a variable for a plugin. For e.g. Can I set maven.build.dir
setting for multiproject plugin alone? for the rest use-default?

Thanks,
--Venkat.

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



Cannot get plugin variable values

2004-03-13 Thread Charles Daniels
Hi,

I am having some trouble getting variable values from a plugin context.  From one 
plugin, the
following expression retrieves the expected value:

${pom.getPluginContext('maven-javadoc-plugin').getVariable('maven.javadoc.destdir')

However, from another plugin, this expression returns no value.  How can this happen?  
Also, this
expression returns no value when placed within my maven.xml file.  Should I be able to 
use this
type of expression in maven.xml?

Cheers,
Chuck


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