Gregory Baumgardner created MINVOKER-161:
--------------------------------------------

             Summary: Full path names not recognized
                 Key: MINVOKER-161
                 URL: https://jira.codehaus.org/browse/MINVOKER-161
             Project: Maven Invoker Plugin
          Issue Type: Bug
    Affects Versions: 1.8
         Environment: windows
            Reporter: Gregory Baumgardner
            Priority: Minor


I am trying to run a "common" pre-build hook script across multiple executions 
of the invoker plugin.  This seems like a trivial thing to do, given the 
pluginManagement configuration concept, but does not work because the script is 
treated as a relative path.  I cannot use a full path to the script at all, nor 
can I guarantee that the relative path to the script is the same for each 
project I am trying to invoke.  What I found through debugging the code is that 
the pre-hook (and presumably post-hook) scripts are considered relative to the 
basedir of the project that will be invoked, and not the basedir for the plugin 
configuration project.  I suppose that makes sense, but it leaves me no good 
way that I can see to reuse the script.  An easy fix here would be to recognize 
full path names when you see one, and use that instead of adding it to the 
basedir.  See example below.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to