NPE during execution of mvn clean site --------------------------------------
Key: MLATEX-12 URL: http://jira.codehaus.org/browse/MLATEX-12 Project: Mojo Latex Maven Plugin Issue Type: Bug Affects Versions: 1.1 Environment: java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode) kama@office:~/ws-git/maui$ mvn --version Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /home/kama/tools/maven Java version: 1.6.0_24, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-31-generic", arch: "i386", family: "unix" Reporter: Karl Heinz Marbaise I'm trying to run the latex plugin to create pdf via pdflatex. The following is the pom snippet to configure the plugin: {code} <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>latex-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> <phase>pre-site</phase> <goals> <goal>latex</goal> </goals> <configuration> <binariesPath>/usr/bin/pdflatex</binariesPath> <docsRoot>${project.build.directory}/generated-site/latex/maui-guide/maui-guide.tex</docsRoot> <latexBuildDir>${project.build.directory}/generated-site/latex/maui-guide/</latexBuildDir> </configuration> </execution> </executions> </plugin> {code} which results into the following error message if i do a mvn clean site (-X option) {code} [INFO] [INFO] --- latex-maven-plugin:1.1:latex (default) @ maui --- [DEBUG] org.codehaus.mojo:latex-maven-plugin:jar:1.1: [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.2:compile [DEBUG] org.apache.commons:commons-exec:jar:1.0.1:compile [DEBUG] org.apache.commons:commons-io:jar:1.3.2:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime [DEBUG] Created new class realm plugin>org.codehaus.mojo:latex-maven-plugin:1.1 [DEBUG] Importing foreign packages into class realm plugin>org.codehaus.mojo:latex-maven-plugin:1.1 [DEBUG] Imported: < project>com.soebes.maven.guide:maui:0.1-SNAPSHOT [DEBUG] Populating class realm plugin>org.codehaus.mojo:latex-maven-plugin:1.1 [DEBUG] Included: org.codehaus.mojo:latex-maven-plugin:jar:1.1 [DEBUG] Included: org.apache.commons:commons-exec:jar:1.0.1 [DEBUG] Included: org.apache.commons:commons-io:jar:1.3.2 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.1 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.2 [DEBUG] Configuring mojo org.codehaus.mojo:latex-maven-plugin:1.1:latex from plugin realm ClassRealm[plugin>org.codehaus.mojo:latex-maven-plugin:1.1, parent: sun.misc.Launcher$AppClassLoader@1a16869] [DEBUG] Configuring mojo 'org.codehaus.mojo:latex-maven-plugin:1.1:latex' with basic configurator --> [DEBUG] (f) binariesPath = /usr/bin/pdflatex [DEBUG] (f) buildDir = /home/kama/ws-git/maui/target [DEBUG] (f) commonsDirName = common [DEBUG] (f) docsRoot = /home/kama/ws-git/maui/target/generated-site/latex/maui-guide/maui-guide.tex [DEBUG] (f) latexBuildDir = /home/kama/ws-git/maui/target/generated-site/latex/maui-guide [DEBUG] -- end configuration -- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.908s [INFO] Finished at: Sat May 28 22:00:06 CEST 2011 [INFO] Final Memory: 22M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:latex-maven-plugin:1.1:latex (default) on project maui: Execution default of goal org.codehaus.mojo:latex-maven-plugin:1.1:latex failed. NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:latex-maven-plugin:1.1:latex (default) on project maui: Execution default of goal org.codehaus.mojo:latex-maven-plugin:1.1:latex failed. 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.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.PluginExecutionException: Execution default of goal org.codehaus.mojo:latex-maven-plugin:1.1:latex failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.NullPointerException at org.codehaus.mojo.latex.LaTeXMojo.prepareLaTeXBuildDirectories(LaTeXMojo.java:201) at org.codehaus.mojo.latex.LaTeXMojo.execute(LaTeXMojo.java:95) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException {code} The full code of the project can be reached via https://github.com/khmarbaise/maui -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email