Skip to content

[Question] Dependency resolution of Mojos #30

@lppedd

Description

@lppedd

I was looking at the plugin's Mojos (but specifically at the Execute one) and I've noticed they use requiresDependencyResolution = TEST. Why do these Mojos require dependency resolution in all cases?

The execute goal bound to generate-sources fails in my multi-module project using Eclipse Tycho, because some modules might not be already built. Wouldn't requiresDependencyCollection be a better alternative?

The important difference is that this annotation will not resolve the files for the dependencies, i.e. the artifacts associated with a Maven project can lack a file. As such, this annotation is meant for mojos that only want to analyze the set of transitive dependencies, in particular during early lifecycle phases where full dependency resolution might fail due to projects which haven't been built yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions