[
https://issues.apache.org/jira/browse/FLINK-20792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler updated FLINK-20792:
-------------------------------------
Description:
It is currently not possible to just run {{mvn spotless:check}}, but instead
one needs to use the fully qualified name of the plugin, i.e., {{mvn
com.diffplug.spotless:spotless-maven-plugin:check}}.
This is due to {{force-shading}}; this module is declared as a child of the
flink-parent pom (i.e., the root pom of the project), but is not actually
declaring that very module as it's parent.
This seems to throw of maven, which fails to retrieve the plugin information
from the parent.
(Essentially, flink-parent tells maven "run this plugin for each of my
children", maven asks child "so what should we actually do", child says "duh
ask my parent", but that parent is just some random dude that doesn't know
anything and maven doesn't know what to do.)
was:
It is currently not possible to just run {{mvn spotless:check}}, but instead
one needs to use the fully qualified name of the plugin, i.e., {{mvn
com.diffplug.spotless:spotless-maven-plugin:check}}.
This is due to {{force-shading}}; this module is declared as a child of the
flink-parent pom (i.e., the root pom of the project), but is not actually
declaring that very module as it's parent.
This seems to throw of maven, which fails to retrieve the plugin information
from the parent.
(Essentially, flink-parent tells maven "run this plugin for each of my
children", maven asks child "so what should we actually do", child says "duh
ask my parent duh", but that parent is just some random dude that doesn't know
anything and maven doesn't know what to do.)
> Allow shorthand invocation of spotless
> --------------------------------------
>
> Key: FLINK-20792
> URL: https://issues.apache.org/jira/browse/FLINK-20792
> Project: Flink
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 1.13.0, 1.11.4, 1.12.1
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Fix For: 1.13.0, 1.11.4, 1.12.1
>
>
> It is currently not possible to just run {{mvn spotless:check}}, but instead
> one needs to use the fully qualified name of the plugin, i.e., {{mvn
> com.diffplug.spotless:spotless-maven-plugin:check}}.
> This is due to {{force-shading}}; this module is declared as a child of the
> flink-parent pom (i.e., the root pom of the project), but is not actually
> declaring that very module as it's parent.
> This seems to throw of maven, which fails to retrieve the plugin information
> from the parent.
> (Essentially, flink-parent tells maven "run this plugin for each of my
> children", maven asks child "so what should we actually do", child says "duh
> ask my parent", but that parent is just some random dude that doesn't know
> anything and maven doesn't know what to do.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)