[Commented] (MINVOKER-229) Add a property in invoker.properties to check the failed mojo

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Commented] (MINVOKER-229) Add a property in invoker.properties to check the failed mojo

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/MINVOKER-229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16741317#comment-16741317 ]

Robert Scholte commented on MINVOKER-229:
-----------------------------------------

I might have found a solution, but it'll take some time to implement.
Whoever wants to pick this up:
- the maven-invoker-plugin should create a {{.mvn/extensions.xml}} referring to some invoker-extension.
- this extension should be part of {{invoker:install}}
- A class of this extension should extend the {{AbstractExecutionListener}} and implement all {{fail}}-methods
- Once called it must inform the maven-invoker-plugin. Probably the easiest solution is to write the info to a new file, being recognized the plugin.


> Add a property in invoker.properties to check the failed mojo
> -------------------------------------------------------------
>
>                 Key: MINVOKER-229
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-229
>             Project: Maven Invoker Plugin
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>            Priority: Major
>
> using invoker.buildResult = failure we can check a plugin failed but there is no property to also check which mojo failed.
> Issue is you can pass a test where the build failed for another reason than the expected one.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)