grunt-maven-plugin
grunt-maven-plugin copied to clipboard
Grunt docular task fails when using plugin
Execution of grunt fails when grunt is executed from the plugin. The task is a docular task. Standalone execution of the grunt-file succeeds. Educated guess would be that enviroment settings (most notably the proxy settings) are not taken into account.
Result from plugin:
Parsing files for gid: gps-domain
Parsing files for gid: stork
Backfilling file data for gid: Base
Backfilling file data for gid: gps-domain
Backfilling file data for gid: stork
Creating docs from for gid: Base
Creating docs from for gid: gps-domain
Creating docs from for gid: stork
Error: No tag found that was able to satisfy 3.2
at createError (C:\dev\workspaces\workspace\gps\backend\domain\stork-docs\no
de_modules\grunt-docular\node_modules\docular\node_modules\bower\lib\util\create
Error.js:4:15)
at C:\dev\workspaces\workspace\gps\backend\domain\stork-docs\node_modules\gr
unt-docular\node_modules\docular\node_modules\bower\lib\core\resolvers\GitResolv
er.js:144:23
at C:\dev\workspaces\workspace\gps\backend\domain\stork-docs\node_modules\gr
unt-docular\node_modules\docular\node_modules\bower\node_modules\q\q.js:1142:26
at _fulfilled (C:\dev\workspaces\workspace\gps\backend\domain\stork-docs\nod
e_modules\grunt-docular\node_modules\docular\node_modules\bower\node_modules\q\q
.js:787:54)
at self.promiseDispatch.done (C:\dev\workspaces\workspace\gps\backend\domain
\stork-docs\node_modules\grunt-docular\node_modules\docular\node_modules\bower\n
ode_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\dev\workspaces\workspace\gps\backend\
domain\stork-docs\node_modules\grunt-docular\node_modules\docular\node_modules\b
ower\node_modules\q\q.js:749:13)
at C:\dev\workspaces\workspace\gps\backend\domain\stork-docs\node_modules\gr
unt-docular\node_modules\docular\node_modules\bower\node_modules\q\q.js:509:49
at flush (C:\dev\workspaces\workspace\gps\backend\domain\stork-docs\node_mod
ules\grunt-docular\node_modules\docular\node_modules\bower\node_modules\q\q.js:1
08:17)
From previous event:
at null.<anonymous> (C:\dev\workspaces\workspace\gps\backend\domain\stork-do
cs\node_modules\grunt-docular\node_modules\docular\lib\scripts\core\generator.js
:189:76)
{ [Error: No tag found that was able to satisfy 3.2]
code: 'ENORESTARGET',
details: 'No versions found in https://github.com/twbs/bootstrap.git',
data:
{ endpoint: { name: 'bootstrap', source: 'bootstrap', target: '3.2' },
resolver:
{ name: 'bootstrap',
source: 'https://github.com/twbs/bootstrap.git',
target: '3.2' } } }
Warning: Task "docular" failed. Use --force to continue.
Aborted due to warnings.
Result from standalone execution
C:\dev\workspaces\workspace\gps\backend\domain\stork-docs>grunt
(node) sys is deprecated. Use util instead.
Running "docular" task
Loading individual files for gid: Base
Loading individual files for gid: gps-domain
Loading individual files for gid: stork
Parsing files for gid: Base
Parsing files for gid: gps-domain
Parsing files for gid: stork
Backfilling file data for gid: Base
Backfilling file data for gid: gps-domain
Backfilling file data for gid: stork
Creating docs from for gid: Base
Creating docs from for gid: gps-domain
Creating docs from for gid: stork
Dependencies saved
Done, without errors.
Could you go to target-grunt
and run grunt there?
Sorry about late reply, didnt see the comment for some reason...
Anyway, grunt execution in target-grunt works as expected, though it fails from maven.