Confluence 2.9 has reached end of life
Check out the [latest version] of the documentation
What class should my macro extend?
It should extend com.atlassian.renderer.v2.macro.BaseMacro, not com.atlassian.renderer.macro.BaseMacro.
Overview
Content Tools
Apps