Coder Social home page Coder Social logo

maven-jsduck's People

Contributors

hennk avatar nabcos avatar pguedes avatar storeylf avatar whittlec avatar wscheele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maven-jsduck's Issues

Unable to use "jsduck" goal

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

Plugin does not function correctly with Multi-Module build.

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');

NotImplementedError: fork is not available on this platform on Ubuntu

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.