[jboss-dev-forums] [Design of JBoss Build System] - Re: Using jdocbook

nbhatia do-not-reply at jboss.com
Wed Aug 15 11:14:37 EDT 2007


Thanks Paul. I made the change to the pom. Also had to add the "sourceDocumentName" element to the configuration. However now I am getting a NullPointerException.


  | java.lang.NullPointerException
  |         at org.jboss.maven.plugins.jdocbook.GenerationMojo.process(GenerationMojo.java:55)
  |         at org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.execute(AbstractDocBookMojo.java:207)
  |         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
  |         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
  |         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
  |         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
  |         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
  |         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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  |         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  |         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  |         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  | 

Am I missing some other configuration? As far as I can tell, I have added all the required elements. This is my latest pom:


  | <project xmlns="http://maven.apache.org/POM/4.0.0"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  | 
  |     <modelVersion>4.0.0</modelVersion>
  | 
  |     <groupId>org.andromda</groupId>
  |     <artifactId>andromda-tutorial-java</artifactId>
  |     <version>3.2</version>
  |     <packaging>jdocbook</packaging>
  | 
  |     <name>AndroMDA Tutorial for Java</name>
  |     <description>AndroMDA Tutorial for Java</description>
  | 
  |     <build>
  |         <plugins>
  |             <plugin>
  |                 <groupId>org.jboss.maven.plugins</groupId>
  |                 <artifactId>maven-jdocbook-plugin</artifactId>
  |                 <extensions>true</extensions>
  |                 <configuration>
  |                     <sourceDocumentName>Master.xml</sourceDocumentName>
  |                     <formats>
  |                         <format>
  |                             <formatName>pdf</formatName>
  |                         </format>
  |                         <format>
  |                             <formatName>html</formatName>
  |                         </format>
  |                     </formats>
  |                 </configuration>
  |             </plugin>
  |         </plugins>
  |     </build>
  | 
  |     <repositories>
  |         <repository>
  |             <id>jboss</id>
  |             <name>JBoss Repository</name>
  |             <url>http://repository.jboss.org/maven2</url>
  |         </repository>
  |     </repositories>
  |     <pluginRepositories>
  |         <pluginRepository>
  |             <id>jboss</id>
  |             <name>JBoss Repository</name>
  |             <url>http://repository.jboss.org/maven2</url>
  |         </pluginRepository>
  |     </pluginRepositories>
  | 
  | </project>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074472#4074472

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074472



More information about the jboss-dev-forums mailing list