You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Hammar (JIRA)" <ji...@codehaus.org> on 2011/02/02 10:30:22 UTC

[jira] Created: (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

install goal doesn't install required plugins (from the reactor build) to the local repo
----------------------------------------------------------------------------------------

                 Key: MINVOKER-115
                 URL: http://jira.codehaus.org/browse/MINVOKER-115
             Project: Maven 2.x Invoker Plugin
          Issue Type: Bug
    Affects Versions: 1.5
         Environment: MacOS 10.6.6
Mac Java 1.6
Maven 3.0.2
            Reporter: Anders Hammar


In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313967#comment-313967 ] 

Anders Hammar commented on MINVOKER-115:
----------------------------------------

Have you fixed the cause you found on trunk? I've written an IT but can't get it to fail with trunk. But it seems to fail with v1.7.
                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins from the reactor build to the local repo

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MINVOKER-115.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.8
         Assignee: Robert Scholte

Fixed in [r1412302|http://svn.apache.org/viewvc?rev=1412302&view=rev]
                
> install goal doesn't install required plugins from the reactor build to the local repo
> --------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>            Assignee: Robert Scholte
>             Fix For: 1.8
>
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.
> Update: The scenario above was the initial detection of the issue. It can also be seen in simpler scenarios where you have a plugin being created in one module and then the m-invoker-p used in another module with ITs using the created plugin.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314038#comment-314038 ] 

Anders Hammar commented on MINVOKER-115:
----------------------------------------

This IT fails for me with trunk as well after cleaning up the local repo...
                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314075#comment-314075 ] 

Anders Hammar commented on MINVOKER-115:
----------------------------------------

I'm not very keen on adding params for everything. IMHO it would make things too complicated for the novice user. Why not just always install all the artifacts of a multi-module project to the (new) local repo?
Also, if my memory serves me correct the m-invoker-p detects if there is a normal library dependency to some other module it will install it. Why can't it detect a plugin dependency? The reactor in core 3.0+ can do it for calculating the build order in a multi-module build. If it complicated I think we should install all artifacts of a multi-module build for now and it can be improved later on.
                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins from the reactor build to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar updated MINVOKER-115:
-----------------------------------

    Summary: install goal doesn't install required plugins from the reactor build to the local repo  (was: install goal doesn't install required plugins (from the reactor build) to the local repo)
    
> install goal doesn't install required plugins from the reactor build to the local repo
> --------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313837#comment-313837 ] 

Robert Scholte commented on MINVOKER-115:
-----------------------------------------

Anders,

could you write an IT? I think I found the cause, but wants to confirm this with a proper test.
I'd like to prepare a new release soon and this is the only bug left (others are feature requests or improvements).

                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins from the reactor build to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar updated MINVOKER-115:
-----------------------------------

    Description: 
In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

Update: The scenario above was the initial detection of the issue. It can also be seen in simpler scenarios where you have a plugin being created in one module and then the m-invoker-p used in another module with ITs using the created plugin.

  was:
In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

    
> install goal doesn't install required plugins from the reactor build to the local repo
> --------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.
> Update: The scenario above was the initial detection of the issue. It can also be seen in simpler scenarios where you have a plugin being created in one module and then the m-invoker-p used in another module with ITs using the created plugin.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins from the reactor build to the local repo

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314107#comment-314107 ] 

Robert Scholte commented on MINVOKER-115:
-----------------------------------------

Installing all reactor-projects was my first idea as well, but I wondered why that hasn't been done in the first place. Probably due to the assumption that you would have all the required artifacts while checking all deps, parents, etc of the {{MavenProject}}. Here's a case which shows otherwise. The fastest/cheapest way seems to be to copy all finished reactor projects.
                
> install goal doesn't install required plugins from the reactor build to the local repo
> --------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.
> Update: The scenario above was the initial detection of the issue. It can also be seen in simpler scenarios where you have a plugin being created in one module and then the m-invoker-p used in another module with ITs using the created plugin.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314041#comment-314041 ] 

Robert Scholte commented on MINVOKER-115:
-----------------------------------------

Since the plugin was created in {{plugin}}-module and reused in an IT of the {{itests}}-module, it is out of reach; the {{maven-invoker-plugin}} can't discover that the plugin is used.
I'm thinking of 2 parameters: {{includeReactorProjects}} and {{excludeReactorProjects}}, where you can specify {{groupId:artifactId[:type:classifier]}} with '*'-support.
Sounds reasonable?

                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar updated MINVOKER-115:
-----------------------------------

    Attachment: MINVOKER-115-IT.patch

Attaching the IT.
                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>         Attachments: MINVOKER-115-IT.patch
>
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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

        

[jira] (MINVOKER-115) install goal doesn't install required plugins (from the reactor build) to the local repo

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313852#comment-313852 ] 

Anders Hammar commented on MINVOKER-115:
----------------------------------------

Sure. I'll look into this.
                
> install goal doesn't install required plugins (from the reactor build) to the local repo
> ----------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-115
>                 URL: https://jira.codehaus.org/browse/MINVOKER-115
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: MacOS 10.6.6
> Mac Java 1.6
> Maven 3.0.2
>            Reporter: Anders Hammar
>
> In a multimodule build where the m-invoker-p is used to perform integration tests for an archetype. In the build, a maven plugin is first created. Then a maven archetype.
> For the archetype project, integration test is performed where a project is generated based on the archetype and then a build (mvn verify) is done.
> However, the build fails as it can't find the maven plugin built earlier in the reactor build. The maven-invoker-plugin:install goal installs all dependencies to the cloned local repo, but it doesn't install the plugin built.

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