OSGI Problem com.atlassian.confluence.plugins.rest.entities on Confluence 9.4

I cannot enable my plugin on Confluence9.4 and Confluence9.2.3, which is working well on Confluence 8.5.
The following OSGI error occoured.

Caused by: org.osgi.framework.BundleException: Unable to resolve myplugin-confluence [288](R 288.0): missing requirement [myplugin-confluence [288](R 288.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.plugins.rest.entities) Unresolved requirements: [[myplugin-confluence [288](R 288.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.plugins.rest.entities)]
	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)

When I change the scope from provided to compile in my pom, the error change to other package. I think it’s not a correct way to resolve the issue. Can anyone Help ?

Unresolved requirements: [[myplugin-confluence [292](R 292.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.plugins.rest.jersey.cachecontrol)]

        <dependency>
            <groupId>com.atlassian.confluence.rest</groupId>
            <artifactId>confluence-rest-plugin</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>

Best regards