blutorange / closure-compiler-maven-plugin

Combine and minimize JavaScript with Closure Compiler.
http://blutorange.github.com/closure-compiler-maven-plugin
Apache License 2.0
52 stars 6 forks source link

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 closed 2 years ago

naomidhanapal commented 2 years ago

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**/.js` in my pom.

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

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

blutorange commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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