pguedes / maven-jsduck Goto Github PK
View Code? Open in Web Editor NEWA maven plugin to run jsduck targets
A maven plugin to run jsduck targets
Are the goals of any given build phase limited to "clean-jsduck" only? I seem to get an RKelly::SyntaxError every time I attempt to execute a "jsduck" goal from my POM plugin definition from within the defined execution. "clean-jsduck" works without issue every time.
PARTIAL STACK TRACE FROM MY CONSOLE:
[ERROR] Failed to execute goal nl.secondfloor.mojo.jsduck:jsduck-maven-plugin:0.
2.1-SNAPSHOT:jsduck (install-duck) on project dashboard: Execution install-duck
of goal nl.secondfloor.mojo.jsduck:jsduck-maven-plugin:0.2.1-SNAPSHOT:jsduck fai
led: (SyntaxError) RKelly::SyntaxError -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal n
l.secondfloor.mojo.jsduck:jsduck-maven-plugin:0.2.1-SNAPSHOT:jsduck (install-duc
k) on project dashboard: Execution install-duck of goal nl.secondfloor.mojo.jsdu
ck:jsduck-maven-plugin:0.2.1-SNAPSHOT:jsduck failed: (SyntaxError) RKelly::Synta
xError
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:225)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution install-d
uck of goal nl.secondfloor.mojo.jsduck:jsduck-maven-plugin:0.2.1-SNAPSHOT:jsduck
failed: (SyntaxError) RKelly::SyntaxError
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
Caused by: org.jruby.embed.EvalFailedException: (SyntaxError) RKelly::SyntaxErro
r
at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java
:132)
at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:12
63)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.ja
va:1256)
at nl.secondfloor.mojo.jsduck.JsDuckMojo.runJsDuck(JsDuckMojo.java:315)
at nl.secondfloor.mojo.jsduck.JsDuckMojo.execute(JsDuckMojo.java:150)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
... 20 more
Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) RKelly::SyntaxErro
r
When running the jsduck plugin from a multi-module build that resides in a different directory, the JSDuck plugin fails to find source files and outputs to the directory the build was run from. This is because the plugin seems to assume that the build will always run from the root of an individual Maven project.
The code should be added to use paths that start from the project directory as retrieved from the MavenProject.
ie.
File baseDir = mavenProject.getBaseDir();
new File(baseDir, 'src/main/javascript');
Hi,
I use Ubuntu 13.10 with Oracle JDK 1.7-update45on a 64-Bit System
I got the following error
Producing JavaScript API documentation using jsduck.
NotImplementedError: fork is not available on this platform
fork at org/jruby/RubyKernel.java:1776
fork at org/jruby/RubyProcess.java:960
worker at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/parallel.rb:250
create_workers at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/parallel.rb:238
each at org/jruby/RubyArray.java:1615
create_workers at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/parallel.rb:237
work_in_processes at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/parallel.rb:201
map at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/parallel.rb:106
map at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/jsduck/util/parallel.rb:28
parse at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/jsduck/batch_parser.rb:14
parse at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/jsduck/app.rb:41
run at file:/home/drkunibar/.m2/repository/nl/secondfloor/mojo/jsduck/jsduck-maven-plugin/0.2.1-SNAPSHOT/jsduck-maven-plugin-0.2.1-SNAPSHOT.jar!/jsduck/app.rb:21
(root) at <script>:57
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.