Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language server - plugin com.googlecode.maven-download-plugin:download-maven-plugin:1.6.0 - "Invalid plugin configuration: url" #549

Closed
ineffective opened this issue Oct 13, 2020 · 2 comments

Comments

@ineffective
Copy link

I have the following in my pom.xml:

            <plugin>
                <groupId>com.googlecode.maven-download-plugin</groupId>
                <artifactId>download-maven-plugin</artifactId>
                <version>1.6.0</version>
                <executions>
                    <execution>
                        <id>install-XXX</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>wget</goal>
                        </goals>
                        <configuration>
                            <url>http://XXX/XXXXX/XXX_1.0.3.zip</url>
                            <unpack>true</unpack>
                            <outputDirectory>${project.build.directory}/outdir/</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Eclipse warns, that <url> tag is invalid for this configuration. Url provided is find, plugin downloads zip file and unpacks it. I'd like to know if this warning is caused by STS/Language Server or rather misconfiguration of the plugin.

I have Eclipse version:
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2020-09 (4.17.0)
Build id: 20200910-1200
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 11.0.8

Included incubation components are those resulting from installation recommended packages mentioned in ticket #529.

Is there anything you can do or should I address authors of the plugin directly?

@BoykoAlex
Copy link
Contributor

No this is independent of STS4. The error is reported via M2E (Maven Tools for Eclipse) most likely (may depend on the editor you opened the pom.xml file with. Which editor is it? XML Editor or Generic Editor). I think it is correct but If your Maven build works via the CLI or if you right click the project Maven -> Update Project... and the artifact is downloaded and is at the location it's supposed to be then it's working and you shouldn't worry about the error.
(Don't forget to refresh the project in Eclipse after the Maven build, right-click the project and find Refresh action)

@ineffective
Copy link
Author

Thanks. So I believe I will take it to M2E mailing list. Everything works fine, but I strive to remove all and any warnings in my code base which is why I asked. I will close it and take it to proper place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants