Skip to content

Can I skip maven main process when running some recipe #1122

@XiaoSK

Description

@XiaoSK

Some Java projects use JDK 8 and depend on tools.jar located under the JDK's systemPath. However, many recipes utilize classes that are only available in JDK 9 or later. Consequently, running these recipes on JDK 11 fails. I observed that adding the JVM option -Dmaven.main.skip=true allows these recipes to execute successfully by skipping certain build phases.

Can I safely apply -Dmaven.main.skip=true to all recipes? If so, what impact does this have on the recipes? Under which circumstances would this cause side effects, and when would it be safe without adverse consequences?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions