Open celsomarques opened 9 years ago
Could you try and make a "minimal" example where this is happening, and put it on your GitHub account? Then we can try and reproduce it, and figure out what's happening.
This seems to happen with https://github.com/Athou/commafeed now too.
I have encountered this problem. This is my Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['Gruntfile.js', 'src/main/webapp/*.js']
},
bower: {
install: {
options: {
targetDir: "src/main/webapp/jslib",
layout: "byComponent",
install: false,
verbose: false,
cleanTargetDir: false
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-bower-task');
grunt.registerTask('default', ['jshint', 'bower']);
};
Eclipse's "Build Automatically" is checked. When I open a file in targetDir of grunt-bower-task(“src/main/webapp/jslib”), the project will build at once. If the web server is running, the project will build forever.
Same problem here. The problem is that when eclipse start a build, the frontend maven plugin run npm, bower and gulp as command lines. So Eclipse think that external tools just changed something in its workspace. So a new build is triggered. And you have a "infinite building loop".
Same problem here!
same problem here on neon
I had the same problem and I found a solution working for me. First of all, this is not an issue of the plugin.
What happens is that if your gruntfile (or whatever you use) runs a minify/uglify, even if there are no differences in the source file and in the generated target file, at system level the file is anyway saved and written, even if with the same content. So if your workspace is refreshed by using "native hooks" it feels the file change, even if the content is the same. Disabling the native hooks it works but of course you lose the native hooks capabilities. A better solution is to uglify or minify only if really needed, only if the source file changes.
What i did is to use the grunt-changed plugin, just changing from
grunt.registerTask('default', [ 'uglify', 'cssmin' ]);
to
grunt.loadNpmTasks('grunt-changed');
grunt.registerTask('default', [ 'changed:uglify', 'changed:cssmin' ]);
In such a way the target file is not rewritten by an identical copy and therefore it does not trigger the build
Hi folks,
This configuration
<runOnIncremental>true</runOnIncremental>
for goals such as: npm, gulp, etc, makes Eclipse building workspace forever.I'm using Eclipse Luna 4.4.0.
To solve this issue I included on pom.xml
Is it possible to change that directly on your project?
Best, Celso