Bug 787210

Summary: Building of example custom plug-in fails with compilation failure
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: PluginsAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: hrupp, kejohnso, myarboro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description bkramer 2012-02-03 15:05:35 UTC
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:

Comment 1 Charles Crouch 2012-10-08 13:38:47 UTC
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

Comment 2 mark yarborough 2012-11-06 20:05:21 UTC
Per 3.1.2 triage with loleary, mfoley, ccrouch, asantos: Okay to move to JON 3.2.

Comment 3 mark yarborough 2013-03-04 22:33:13 UTC
We should remove this example from the product docs.

Comment 4 Deon Ballard 2013-04-30 02:27:17 UTC
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.