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

Build failure: Unable to parse configuration of mojo com.github.blutorange:closure-compiler-maven-plugin:2.21.0:minify for parameter includes: Cannot assign configuration entry 'includes' with value '**/*.js' of type java.lang.String to property of type java.util.ArrayList #58

Closed
naomidhanapal opened this issue Nov 3, 2021 · 3 comments

Comments

@naomidhanapal
Copy link

naomidhanapal commented Nov 3, 2021

Using Version 2.21.0
I get the build failure: Unable to parse configuration of mojo com.github.blutorange:closure-compiler-maven-plugin:2.21.0:minify for parameter includes: Cannot assign configuration entry 'includes' with value '**/*.js' of type java.lang.String to property of type java.util.ArrayList, when I have <includes>**/*.js<includes> in my pom.

This issue can be solved with the additional <include> parameter in my pom:

<includes><include>**/*.js</include></includes>

@blutorange
Copy link
Owner

Yes, theincludes is a list, so you need <includes><include>**/*.js</include></includes>. The parsing is done by maven itself, so I don't think there's any way to support the shortcut <includes>**/*.js<includes>.

With the long version you don't get any issues?

@naomidhanapal
Copy link
Author

With the long version, I don't get any issues. However, I think it would be great to add it to the usage example in the README.md.

@blutorange
Copy link
Owner

Ah, now I see what you mean, it's wrong in the readme. I updated it, thanks for pointing it out 👍

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