Skip to content

[MBUILDCACHE-118] Use of extension breaks IntelliJ generate sources #345

Open
@jira-importer

Description

@jira-importer

Charles Mager opened MBUILDCACHE-118 and commented

When running Maven > Generate Sources and Update Folders from IntelliJ with the Maven Build Cache Extension present, I get this error in the output:

"org.apache.maven.execution.ExecutionListener.projectDiscoveryStarted(org.apache.maven.execution.ExecutionEvent)" because "this.delegate" is null 

I think the delegate it refers to is the one in ChainedListener..

I appreciate this works running via the Maven CLI, but for whatever reason IntelliJ doesn't provide a listener with the request. I'm not clear on whether IntelliJ is incorrectly using the API or if the extension should handle this scenario, but it would seem a fairly easy fix to not call the delegate methods if it's not present.

I've attached a repro that would be demonstrated in IntelliJ - just run Generate Sources and Update Folders to see the error.


Affects: 1.2.0

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions