[hibernate-dev] Error building Entity Manager documentation

Gail Badner gbadner at redhat.com
Thu Feb 3 18:10:56 EST 2011


I'm getting this error:

java.lang.IllegalStateException: basedir 
/NotBackedUp/gbadner/git/hibernate-core-3.6.1-Final/entitymanager/src/main/docbook/en/images 
does not exist

After creating the missing directory, the doc builds successfully.

I'm not sure where the bug is. Is it really because the directory is 
missing or does some plugin make an incorrect assumption.

Here are the details:

[gbadner at gbadner entitymanager]$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.5.0_16
Java home: /NotBackedUp/gbadner/apps/jdk1.5.0_16/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.18-212.el5.bz573514" arch: "i386" Family: 
"unix"

I'm using the command:

 mvn org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.4:resources 
org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.4:generate -P doc 
--settings ~/.m2/settings-3.6.1-Final.xml

The failure:

[INFO] Expanding: 
/home/gbadner/NotBackedUp/.m2/repository-3.6.1-Final/org/jboss/jbossorg-fonts/1.0.0/jbossorg-fonts-1.0.0.jdocbook-style 
into 
/NotBackedUp/gbadner/git/hibernate-core-3.6.1-Final/entitymanager/target/docbook/staging
[INFO] 
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] basedir 
/NotBackedUp/gbadner/git/hibernate-core-3.6.1-Final/entitymanager/src/main/docbook/en/images 
does not exist
[INFO] 
------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalStateException: basedir 
/NotBackedUp/gbadner/git/hibernate-core-3.6.1-Final/entitymanager/src/main/docbook/en/images 
does not exist
        at 
org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:550)
        at 
org.jboss.maven.shared.resource.ResourceDelegate.collectFileNames(ResourceDelegate.java:164)
        at 
org.jboss.maven.shared.resource.ResourceDelegate.process(ResourceDelegate.java:108)
        at 
org.jboss.maven.plugins.jdocbook.ResourceMojo.stageProjectResources(ResourceMojo.java:114)
        at 
org.jboss.maven.plugins.jdocbook.ResourceMojo.process(ResourceMojo.java:63)
        at 
org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.doExecute(AbstractDocBookMojo.java:295)
        at 
org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.execute(AbstractDocBookMojo.java:227)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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:585)
        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)
[



More information about the hibernate-dev mailing list