Thanks but it is not what I need. e.g. user will type in the following to use my archetype to create a project.
mvn archetype:create -DgroupId=com.foo.a.b ... A XSL resource will be created in src/xsl/com/foo/a/b What I need is to convert the groupId from com.foo.a.b to com/foo/a/b in the content of the XSL file. On 12/22/05, Allan Ramirez <[EMAIL PROTECTED]> wrote: > Hi Willie, > > Please refer to this link > http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-IsthereawaytospecifyadifferentoutputdirectorywithouthavingtoeditthepomorconfigurationfileeachtimeIdoabuild%3F > > I think it is similar to what you are looking for, well except for the > command line. :) > > Hope this helps. > > -allan > > Willie Vu wrote: > > >${basedir} only gives me up to the project base path. I still need to > >construct the subdirectories from the groupId that user specifies when > >using my archetype:create. That's the part I don't know how to do. > > > >On 12/22/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > > > > >>If I rememer correctly, you can use ${basedir} wich point to the directory > >>where your pom file is located. So from there you can construct the path you > >>need. Hope it's help! > >> > >>On 12/21/05, Willie Vu <[EMAIL PROTECTED]> wrote: > >> > >> > >>>Archetype will create copy a resource (say file hello.xsl) into > >>>subfolders of groupId (e.g. if groupId is com.foo.abc, the xsl file is > >>>put into src/xsl/com/foo/abc/hello.xsl.) In the hello.xsl, I need to > >>>refer to the actual path where hello.xsl is located. > >>> > >>>2 questions: > >>> > >>>1. how do I construct a string representation to the full path where > >>>hello.xsl is? > >>>2. what are the properties available in replacing variables in > >>>resources? I know I can use ${groupId}, ${artifactId}. What else? > >>> > >>>Regards, > >>> > >>> > >>>Willie Vu > >>> > >>>--------------------------------------------------------------------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>-- > >>Alexandre Poitras > >>Québec, Canada > >> > >> > >> > >> > > > > > >-- > >Willie Vu > > > >HKJUG - http://hkjug.dev.java.net > > > >--------------------------------------------------------------------- > >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] > > -- Willie Vu HKJUG - http://hkjug.dev.java.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
