我正在尝试使用 jslint maven 插件。我将它包含在我的 pom 文件中
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>execute-jslint</id>
<goals>
<goal>jslint</goal>
<goal>test-jslint</goal>
</goals>
<configuration>
<sourceJsFolder>
<file>${basedir}/src/main/webapp/static/js/</file>
</sourceJsFolder>
</configuration>
</execution>
</executions>
</plugin>
但是当我运行这个命令时,maven jslint:jslint
我得到了这个错误
[ERROR] Failed to execute goal org.codehaus.mojo:jslint-maven-plugin:1.0.1:jslint (default-cli) on project webshop-core: Execution default-cli of goal org.codehaus.mojo:jslint-maven-plugin:1.0.1:jslint failed: basedir /home/mymac/project1/src/main/js does not exist -> [Help 1]
根据此链接http://mojo.codehaus.org/jslint-maven-plugin/jslint-mojo.html#sourceJsFolder的参数,它仍然从默认值中读取。