Hi,
Michael is right. You may need some annotations on either the field (and then don't use any constructor parameters) or on the parameters in
the constructor.
Which one you need depends on how your plugin project is set up:
You probably have a 'transformless' plugin (your pom.xml contains "<Atlassian-Plugin-Key>" inside the "<instructions>" tag) because
otherwise your constructor should have worked (I just verified that the example plugin installs fine on Confluence 7.3).
In that case you should add the @ComponentImport annotation as Michael mentioned on all fields or constructor parameters for managers /
services that are not defined in your plugin and @Autowired or @Inject for all that are from within your plugin (in case you have any).
If your plugin is not transformless then you can try @Autowired or @Inject, or just create a setter for the PageManager field and spring
will call that one when the module is enabled.
More on transformless plugins can be found here, but it's sort of an advanced task to mess with that stuff, so it's better just to use the
approach the SDK generates nowadays (it generates transformless plugins by default).
https://bitbucket.org/atlassian/atlassian-spring-scanner
Cheers,
Jens