Hide Forgot
I am building the resource plug-in docs: http://support.rhq-project.org/display/RHQ/Generating+Plugin+Documentation At step 2, when I'm building the plugin docs for all plugins, I run... mvn org.rhq:rhq-core-plugindoc:plugindoc -Dmaven.test.skip=true And I get a build failure at the platform plug-in.... [snip] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.217s [INFO] Finished at: Fri Oct 21 13:49:50 EDT 2011 [INFO] Final Memory: 15M/76M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.rhq:rhq-core-plugindoc:4.0.1:plugindoc (default-cli) on project rhq-platform-plugin: Could not successfully parse plugin descriptor '/NotBackedUp/dlackey/rhq/modules/plugins/platform/src/main/resources/META-INF/rhq-plugin.xml'. UnmarshalException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'drift-definition'. One of '{"urn:xmlns:rhq-plugin":content, "urn:xmlns:rhq-plugin":resource-configuration, "urn:xmlns:rhq-plugin":help, "urn:xmlns:rhq-plugin":server, "urn:xmlns:rhq-plugin":service}' is expected. -> [Help 1] [snip] I *think* the schema definition needs to be updated for those plugins which use drift and bundles (just platforms and JBoss, I think) to account for the new config.
Nope, that's not it. I checked rhq/modules/core/client-api/src/main/resources/rhq-plugin.xsd, and both drift-detection and bundle-target are declared. Back to the drawing board.
Okay, one oddity just to note. How come the error says org.rhq:rhq-core-plugindoc:4.0.1 when the plugindoc jar that i build is version 4.1.0?
Yeah, that was the problem. It was maven looking at an old version of the plugindoc thing in my ~/.m2/ directory. When I manually set the version of the plugindoc thing to use -- mvn org.rhq:rhq-core-plugindoc:4.1.0-SNAPSHOT:plugindoc -- it built just fine.