GoogleContainerTools / jib-extensions

Apache License 2.0
117 stars 35 forks source link

Eclipse warning "Invalid plugin configuration" in jib-layer-filter-extension-maven #151

Closed x44 closed 1 year ago

x44 commented 1 year ago

Is there a way to get rid of these Eclipse warnings?

"Invalid plugin configuration: filters" "Invalid plugin configuration: createParentDependencyLayers"

The plugin works fine, this is just about these warnings.

Eclipse Version: 2022-09 (4.25.0) Build id: 20220908-1902

<pluginExtension>
    <implementation>com.google.cloud.tools.jib.maven.extension.layerfilter.JibLayerFilterExtension</implementation>
    <configuration implementation="com.google.cloud.tools.jib.maven.extension.layerfilter.Configuration">
        <filters>
            <filter>
                <glob>**/to_be_excluded.ext</glob>
            </filter>
        </filters>
        <createParentDependencyLayers>false</createParentDependencyLayers>
    </configuration>
</pluginExtension>
emmileaf commented 1 year ago

Are there any POM editor preferences you could check and set in Eclipse that might be related (Preferences > Maven > User Interface or Preferences > Maven > Errors/Warnings)? Updating the maven project or upgrading the Eclipse version might also be helpful to try here.

Unfortunately I don’t have much familiarity developing in Eclipse, but if the plugin is working as expected and you are finding these warnings specifically in the IDE, perhaps you could also reach out in Eclipse M2E for more support.

chanseokoh commented 1 year ago

The elements under <configuration> (<filters> and <createParentDependencyLayers> in this case) are custom configuration options that each Jib extension can declare in an arbitrary manner. Probably the extension-specific configuration structure is not or cannot be integrated to Maven in the way that Eclipse can recognize these as correct syntax. For example, the internal Jib implementation just casts the extension-specific config block retrieved as an Object to the type explicitly specified by an extension.

x44 commented 1 year ago

Thanks for your replies! After trying everything i could imagine, still no success. However, since this is not a problem of the plugin (VS Code does not show these warnings) i close this issue.