前端maven插件+;grunt contrib手表-如何使用?

前端maven插件+;grunt contrib手表-如何使用?,maven,gruntjs,grunt-contrib-watch,Maven,Gruntjs,Grunt Contrib Watch,我不知道如何配置前端maven插件,以便让grunt contrib监视侦听文件更改 如果我像下面这样创建grunt执行,Eclipse将在“Building workspace(95%)”处暂停: 咕噜手表 咕哝 看 在我手动终止grunt进程之前,它不会完成 我还尝试在shell中运行grunt watch,任务已正确执行,但我需要在Eclipse中强制执行preject刷新,以使Maven将新资源复制到构建目录(target/classes)中 对我来说,正确的解决方案是什么

我不知道如何配置前端maven插件,以便让grunt contrib监视侦听文件更改

如果我像下面这样创建grunt执行,Eclipse将在“Building workspace(95%)”处暂停:


咕噜手表
咕哝
看
在我手动终止grunt进程之前,它不会完成

我还尝试在shell中运行grunt watch,任务已正确执行,但我需要在Eclipse中强制执行preject刷新,以使Maven将新资源复制到构建目录(target/classes)中

对我来说,正确的解决方案是什么

    <execution>
        <id>grunt-watch</id>
        <goals>
            <goal>grunt</goal>
        </goals>
        <configuration>
            <arguments>watch</arguments>
        </configuration>
    </execution>