Bug 787210 - Building of example custom plug-in fails with compilation failure
Summary: Building of example custom plug-in fails with compilation failure
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-03 15:05 UTC by bkramer
Modified: 2022-03-31 04:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.