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

String index out of range: 9 for mvn versions:display-dependency-updates -Dmaven.version.rules=rules.xml #439

Closed
ghost opened this issue Oct 29, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 29, 2020

This goes wrong in:
https://github.com/mojohaus/versions-maven-plugin/blob/efee2d1295b66210cbd901b15067688adc142c81/src/main/java/org/codehaus/mojo/versions/api/DefaultVersionsHelper.java#L404

If the given argument is shorter then "classpath", it tries to get a character at an index which is outside the String.

ghusta added a commit to ghusta/versions-maven-plugin that referenced this issue Jan 12, 2021
@ghusta
Copy link
Contributor

ghusta commented Jan 12, 2021

A workaround would be to have a input string longer than 9 characters.

For example instead of "rules.xml" you can try "file:./rules.xml"

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

1 participant