Hide Forgot
Description of problem: Building of example custom plug-in fails with compilation failure Version-Release number of selected component (if applicable): JON 3.0 How reproducible: Every time (if rhq repository is empty or non-existing) Steps to Reproduce: 1. delete rhq maven repository (if exists); 2. download example plugins from the url specified in our "Writing Custom Plug-ins" document: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=etc/samples/custom-serverplugin;hb=master 3. execute mvn install Actual results: Build failed with the following: [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 1 source file to /home/biljana/JON_custom_plugin_example/rhq/simplereport-serverplugin/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /home/biljana/JON_custom_plugin_example/rhq/simplereport-serverplugin/src/main/java/org/custom/SimpleReportsPluginComponent.java:[35,31] package org.rhq.core.domain.auth does not exist /home/biljana/JON_custom_plugin_example/rhq/simplereport-serverplugin/src/main/java/org/custom/SimpleReportsPluginComponent.java:[36,40] package org.rhq.core.domain.configuration does not exist /home/biljana/JON_custom_plugin_example/rhq/simplereport-serverplugin/src/main/java/org/custom/SimpleReportsPluginComponent.java:[37,38] package org.rhq.core.domain.measurement does not exist /home/biljana/JON_custom_plugin_example/rhq/simplereport-serverplugin/src/main/java/org/custom/SimpleReportsPluginComponent.java:[38,35] package org.rhq.core.domain.resource does not exist /home/biljana/JON_custom_plugin_example/rhq/simplereport-serverplugin/src/main/java/org/custom/SimpleReportsPluginComponent.java:[39,35] package org.rhq.core.domain.resource does not exist Expected results: Build successful. Additional info:
We should fix the compilarion or fix the documentation to point to an example which works. This should probably point to a branch which matches a specific product version
Per 3.1.2 triage with loleary, mfoley, ccrouch, asantos: Okay to move to JON 3.2.
We should remove this example from the product docs.
AFAIK, this is not included anywhere in the product documentation. The only example server-side plug-in I document is an alert sender. I believe the sample itself is only available through RHQ in the etc/samples/ directory. I am going to change the product back to RHQ.