I tried to compile the BlogPostMacro by myself to lift the limit of 15 posts. I took the source code from the bitbucket repository and tried to get it running. Unfortunately, when I try to get it to display the blogposts, it yields a Null error because the SearchManager can’t be initalized.
I added the “com.atlassian.confluence.search.v2;resolution:=optional” to import package in the pom.xml at maven configuration where spring gets imported. Afterwards I tried several different ways to get the instance of the SearchManager. I tried to declare the component needed in the old fashioned v1 way in the atlassian-plugin.xml, to initialize via the BlogPostMacro constructor (which fauls because the amount of arguments does not match) and also to get it via the ContainerManager which probably doesn’t work because it is not available in the ContainerManager.
Are there any other steps I could take to get a modified BlogpostMacro running?