Surok112 / robotframework-maven-plugin

Automatically exported from code.google.com/p/robotframework-maven-plugin
0 stars 0 forks source link

mvn robotframework:libdoc gives exceptions #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I run the plugin to create doc, I am getting this error:

[ERROR] Failed to execute goal 
com.googlecode.robotframework-maven-plugin:robotframework-maven-plugin:1.1.2:lib
doc (default-cli) on project jive-robot-framework: Failed to execute libdoc 
script: PyException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.googlecode.robotframework-maven-plugin:robotframework-maven-plugin:1.1.2:lib
doc (default-cli) on project jive-robot-framework: Failed to execute libdoc 
script
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    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.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute 
libdoc script
    at com.googlecode.LibDocMojo.subclassExecute(LibDocMojo.java:70)
    at com.googlecode.AbstractMojoWithLoadedClasspath.execute(AbstractMojoWithLoadedClasspath.java:46)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: Traceback (most recent call last):
  File "<iostream>", line 74, in <module>
ImportError: No module named serializing

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)
    at java.lang.Throwable.<init>(Throwable.java:181)
    at java.lang.Exception.<init>(Exception.java:29)
    at java.lang.RuntimeException.<init>(RuntimeException.java:32)
    at org.python.core.PyException.<init>(PyException.java:46)
    at org.python.core.PyException.<init>(PyException.java:43)
    at org.python.core.PyException.<init>(PyException.java:61)
    at org.python.core.Py.ImportError(Py.java:290)
    at org.python.core.imp.import_logic(imp.java:785)
    at org.python.core.imp.import_name(imp.java:839)
    at org.python.core.imp.importName(imp.java:884)
    at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
    at org.python.core.PyObject.__call__(PyObject.java:357)
    at org.python.core.__builtin__.__import__(__builtin__.java:1173)
    at org.python.core.imp.importFromAs(imp.java:978)
    at org.python.core.imp.importFrom(imp.java:954)
    at org.python.pycode._pyx0.f$0(<iostream>:718)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1261)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:235)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:230)
    at com.googlecode.LibDocMojo.runLibDoc(LibDocMojo.java:140)
    at com.googlecode.LibDocMojo.documentLibraryOrResourceDirectory(LibDocMojo.java:109)
    at com.googlecode.LibDocMojo.subclassExecute(LibDocMojo.java:64)
    ... 22 more
[ERROR] 
[ERROR] 

Original issue reported on code.google.com by shawna.q...@gmail.com on 25 Aug 2012 at 12:20

GoogleCodeExporter commented 8 years ago
And this is plugin that I am using in the pom:
<plugin>
                <groupId>com.googlecode.robotframework-maven-plugin</groupId>
                <artifactId>robotframework-maven-plugin</artifactId>
                <version>1.1.2</version>

                <dependencies>

                    <dependency>
                        <groupId>org.seleniumhq.selenium</groupId>
                        <artifactId>selenium-java</artifactId>
                        <version>2.23.1</version>
                    </dependency>

                    <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.12</version>
                    </dependency>

                    <dependency>
                        <groupId>org.robotframework</groupId>
                        <artifactId>javalib-core</artifactId>
                        <version>0.9.1</version>
                    </dependency>

                    <dependency>
                        <groupId>org.robotframework</groupId>
                        <artifactId>robotframework</artifactId>
                        <version>2.7.1</version>
                    </dependency>
                </dependencies>

                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>run</goal>
                            <goal>libdoc</goal>
                        </goals>
                    </execution>
                </executions>

Original comment by shawna.q...@gmail.com on 25 Aug 2012 at 12:24

GoogleCodeExporter commented 8 years ago
The issue seems to be on the override the the robotframework. For all the 
version above 2.7 I am getting the exceptions.  But i need to use the newer 
version.  So wondering if there is a workaround or when the plugin support the 
newer version coming up?

Thx

Original comment by shawna.q...@gmail.com on 27 Aug 2012 at 3:45