Failed to execute goal com.github.trecloux:yeoman-maven-plugin:0.5:build (default) on project jw: Error during : cmd /c grunt test --no-color: Process exited with an error: 6 (Exit value: 6) -> [Help 1] #27
// Generated on 2015-11-23 using generator-angular 0.14.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,/}.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/*/.js'
module.exports = function (grunt) {
var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest;
grunt.loadNpmTasks('grunt-connect-proxy');
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Run some tasks in parallel to speed up the build process
concurrent: {
server: [
'copy:styles'
],
test: [
'copy:styles'
],
dist: [
'copy:styles',
'imagemin',
'svgmin'
]
},
// Test settings
karma: {
unit: {
configFile: 'test/karma.conf.js',
singleRun: true
}
}
});
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
}
grunt.registerTask('server', 'DEPRECATED TASK. Use the "serve" task instead', function (target) {
grunt.log.warn('The server task has been deprecated. Use grunt serve to start a server.');
grunt.task.run(['serve:' + target]);
});
While building with dependency in my netbeans ,I m continously getting following error --
ailed to execute goal com.github.trecloux:yeoman-maven-plugin:0.5:build (default) on project jw: Error during : cmd /c grunt test --no-color: Process exited with an error: 6 (Exit value: 6) -> [Help 1]
jw is my project name ,How can i resolve this issue .
I created new maven project archetype - jersey-quick-webapp , My pom.xml looks like--- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
My gruntfile.js looks like ------
// Generated on 2015-11-23 using generator-angular 0.14.0 'use strict';
// # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,/}.js' // use this if you want to recursively match all subfolders: // 'test/spec/*/.js'
module.exports = function (grunt) { var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; grunt.loadNpmTasks('grunt-connect-proxy'); // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt);
// Automatically load required Grunt tasks require('jit-grunt')(grunt, { useminPrepare: 'grunt-usemin', ngtemplates: 'grunt-angular-templates', cdnify: 'grunt-google-cdn' });
// Configurable paths for the application var appConfig = { app: require('./bower.json').appPath || 'app', dist: 'dist' };
// Define the configuration for all the tasks grunt.initConfig({
}, styles: { files: ['<%= yeoman.app %>/styles/{,/}.css'], tasks: ['newer:copy:styles', 'postcss'] }, gruntfile: { files: ['Gruntfile.js'] }, livereload: { options: { livereload: '<%= connect.options.livereload %>' }, files: [ '<%= yeoman.app %>/{,/}.html', '.tmp/styles/{,/}.css', '<%= yeoman.app %>/images/{,/}.{png,jpg,jpeg,gif,webp,svg}' ] } },
} },
} },
}, server: '.tmp' },
} },
'<%= yeoman.dist %>/images/{,/}.{png,jpg,jpeg,gif,webp,svg}', '<%= yeoman.dist %>/styles/fonts/*' ] } },
css: ['<%= yeoman.dist %>/styles/{,/}.css'], js: ['<%= yeoman.dist %>/scripts/{,/}.js'], options: { assetsDirs: [ '<%= yeoman.dist %>', '<%= yeoman.dist %>/images', '<%= yeoman.dist %>/styles' ], patterns: { js: [[/(images\/[^''""]*.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']] } } },
},
svgmin: { dist: { files: [{ expand: true, cwd: '<%= yeoman.app %>/images', src: '{,/}.svg', dest: '<%= yeoman.dist %>/images' }] } },
htmlmin: { dist: { options: { collapseWhitespace: true, conservativeCollapse: true, collapseBooleanAttributes: true, removeCommentsFromCDATA: true }, files: [{ expand: true, cwd: '<%= yeoman.dist %>', src: ['*.html'], dest: '<%= yeoman.dist %>' }] } },
ngtemplates: { dist: { options: { module: 'yoJaxrsTutorialApp', htmlmin: '<%= htmlmin.dist.options %>', usemin: 'scripts/scripts.js' }, cwd: '<%= yeoman.app %>', src: 'views/{,/}.html', dest: '.tmp/templateCache.js' } },
}, styles: { expand: true, cwd: '<%= yeoman.app %>/styles', dest: '.tmp/styles/', src: '{,/}.css' } },
});
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) { if (target === 'dist') { return grunt.task.run(['build', 'connect:dist:keepalive']); }
grunt.task.run([ 'clean:server', 'wiredep', 'concurrent:server', 'postcss:server', 'configureProxies', 'connect:livereload', 'watch' ]); });
grunt.registerTask('server', 'DEPRECATED TASK. Use the "serve" task instead', function (target) { grunt.log.warn('The
server
task has been deprecated. Usegrunt serve
to start a server.'); grunt.task.run(['serve:' + target]); });grunt.registerTask('test', [ 'clean:server', 'configureProxies', 'wiredep', 'concurrent:test', 'postcss', 'connect:test', 'karma' ]);
grunt.registerTask('build', [ 'clean:dist', 'configureProxies', 'wiredep', 'useminPrepare', 'concurrent:dist', 'postcss', 'ngtemplates', 'concat', 'ngAnnotate', 'copy:dist', 'cdnify', 'cssmin', 'uglify', 'filerev', 'usemin', 'htmlmin' ]);
grunt.registerTask('default', [ 'newer:jshint', 'newer:jscs', 'test', 'build' ]); };
While building with dependency in my netbeans ,I m continously getting following error --
ailed to execute goal com.github.trecloux:yeoman-maven-plugin:0.5:build (default) on project jw: Error during : cmd /c grunt test --no-color: Process exited with an error: 6 (Exit value: 6) -> [Help 1]
jw is my project name ,How can i resolve this issue .