[ 
http://jira.codehaus.org/browse/MGROOVY-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102768
 ] 

Jason Dillon commented on MGROOVY-62:
-------------------------------------

In maven terms, the best way to do this is to put your scripts into a module, 
generate a jar for them, then include them in the classpath.

Basically you can't really assume with M2 as it is now, that ../ will be what 
you expect, as its perfectly legal to pull out just a specific module dir and 
build it, which will work if the parent is already in the local repo or pulled 
from a remote one.

This is actually how Continuum, the Maven CI tool, works.

So, until M2 has support for getting a reference to the modules parent 
directory, its best to not use ../ anywhere.

BUT, if you have a good solution to this problem I'm down to hear it :-)

> Better scriptpath support for multi-module projects
> ---------------------------------------------------
>
>                 Key: MGROOVY-62
>                 URL: http://jira.codehaus.org/browse/MGROOVY-62
>             Project: Maven 2.x Groovy Plugin
>          Issue Type: Improvement
>          Components: execute
>    Affects Versions: 1.0-beta-1
>            Reporter: Mauro Talevi
>            Assignee: Jason Dillon
>
> Currently, scriptpath works well with single-module projects, eg if your 
> scripts are in src/groovy dir:
> <scriptpath>
>   <element>${pom.basedir}/src/groovy</element>
> </scriptpath>
> If you have a multi-module project, it gets a bit messy, ie you have to 
> declare the path the groovy dir from all the modules, eg
> <scriptpath>
>   <element>${pom.basedir}/src/groovy</element>
>   <element>${pom.basedir}/../src/groovy</element>
> </scriptpath>
> which is kind of pointless, there being only one groovy dir. 
> Not sure what the best way to approach this - or what best-practice should be 
> suggested. 
> One way could be to package the groovy scripts in a separate module (and 
> create a corresponding artifact) and then to add allow the script path to be 
> built using the dependency. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to