<webhelpBaseDir> not valid when <goal>generate-webhelp</goal>

21 views
Skip to first unread message

Mark Craig

unread,
Mar 5, 2014, 9:14:53 AM3/5/14
to docbkx-to...@googlegroups.com
Hi all,

With 2.0.15, I seem to be able to set most of the webhelp parameters in an execution with <goal>generate-webhelp</goal>... but I cannot set <webhelpBaseDir>. IntelliJ says "Element webhelpBaseDir is not allowed here."

When I try to use it anyway, the build fails like this for example:

[ERROR] Failed to execute goal org.forgerock.commons:forgerock-doc-maven-plugin:2.1.0-SNAPSHOT:build (build-doc) on project forgerock-doc-maven-plugin-test: Unable to execute mojo: Unable to parse configuration of mojo com.agilejava.docbkx:docbkx-maven-plugin:2.0.15:generate-webhelp: Cannot find setter, adder nor field in com.agilejava.docbkx.maven.DocbkxWebhelpMojo for 'webhelpBaseDir' -> [Help 1]

Curiously, I do seem to be able to set <webhelpBaseDir> for <goal>generate-html</goal>.

How should I set the base directory for webhelp output?

Regards,

Mark

Mimil

unread,
Mar 6, 2014, 1:29:50 PM3/6/14
to docbkx-to...@googlegroups.com
Hi,

The plugin configures this property so you Will not be able to configure it externaly.

Why do you need it?

Regards,
Cédric
--
You received this message because you are subscribed to the Google Groups "Docbkx Tools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docbkx-tools-us...@googlegroups.com.
To post to this group, send email to docbkx-to...@googlegroups.com.
Visit this group at http://groups.google.com/group/docbkx-tools-users.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Craig

unread,
Mar 6, 2014, 2:14:38 PM3/6/14
to docbkx-to...@googlegroups.com
Thanks Cedric,

I have projects where the ${project.build.directory} is not under target/, so would like to be able to set <webhelpBaseDir> according to the location of ${project.build.directory}.

Regards,
Mark

Mimil Mimil

unread,
Mar 11, 2014, 7:14:15 PM3/11/14
to docbkx-to...@googlegroups.com
Hi,

could you manage it by changing property targetDirectory? (I guess you cannot use anymore the pluginSuffix which is generated for each docbkx goals)

/**
     * The target directory to which all output will be written.
     *
     * @parameter expression="\${basedir}/target/docbkx/$spec.pluginSuffix$"
     */
    private File targetDirectory;

Mark Craig

unread,
Mar 14, 2014, 2:53:00 AM3/14/14
to docbkx-to...@googlegroups.com
Hi Cedric,

In fact, yes, targetDirectory works fine for me.

Thanks for your suggestion.

Regards,
Mark

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages