maven-parent icon indicating copy to clipboard operation
maven-parent copied to clipboard

[MPOM-387] Enforcer enforceBytecodeVersion applies to everything

Open jira-importer opened this issue 2 years ago • 3 comments

Tamas Cservenak opened MPOM-387 and commented

In Maven Parent POM the enforcer enforceBytecodeVersion is added without any special configuration, which IMHO is wrong.

For example, this rule prevents to use Java 11 test-only dependencies on a project that is otherwise producing Java 8 artifact.

IMHO, applying this rule on everything makes no sense, at lest test scope should be ignored (if not provided as well, as one have no control what is provided).


1 votes, 2 watchers

jira-importer avatar Dec 22 '22 13:12 jira-importer

Slawomir Jaranowski commented

Project issues moved to GitHub, please copy to it.

jira-importer avatar Apr 21 '24 08:04 jira-importer

Is this still valid?

slachiewicz avatar Nov 08 '25 16:11 slachiewicz

we can exclude a test scope, but eg with project target to 8 we have a jdk8 also in build matrix ...

slawekjaranowski avatar Nov 08 '25 16:11 slawekjaranowski