Hi Jim,
Please change the rt/management/pom.xml like this.
<configuration>
<obrRepository>NONE</obrRepository>
<instructions>
-
<Export-Package>org.apache.cxf.management*,org.apache.cxf.tracing*</Export-Package>
+ <Export-Package>
+
org.apache.cxf.management.counters,
+
org.apache.cxf.management.interceptor,
+
org.apache.cxf.management.persistence,
+
org.apache.cxf.management.utils,
+
org.apache.cxf.management.jmx,
+
org.apache.cxf.management.jmx.export.runtime,
+ org.apache.cxf.tracing*
+ </Export-Package>
</instructions>
<niceManifest>true</niceManifest>
</configuration>
This fine-grained export package can avoid including the package from
cxf-core module.
Best Regards
Freeman
On Mon, Apr 18, 2022 at 11:50 PM Jim Ma <[email protected]> wrote:
> Thanks Andriy. Jira is filled :
> https://issues.apache.org/jira/browse/CXF-8695
> and PRs are sent.
>
>
> On Sun, Apr 17, 2022 at 9:28 AM Andriy Redko <[email protected]> wrote:
>
> > Hey Jim,
> >
> > This is interesting, I believe it is not needed, only some compiler args
> > need
> > tailoring (for JDK-11) but the classes should not be copied to
> versions/11.
> > Thanks!
> >
> > Best Regards,
> > Andriy Redko
> >
> > JM> When building cxf-rt-management 3.5.1 with JDK11, some api classes
> are
> > JM> copied to the jar file. It looks like these classes are copied by the
> > JM> maven-bundle-plugin from java9-plus profile :
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > JM> *<profile> <id>java9-plus</id> <activation>
> > <jdk>[9,)</jdk>
> > JM> </activation> <build> <plugins> <plugin>
> > JM> <groupId>org.apache.felix</groupId>
> > JM> <artifactId>maven-bundle-plugin</artifactId>
> > JM> <extensions>true</extensions> <configuration>
> > JM> <obrRepository>NONE</obrRepository>
> > <instructions>
> >
> > JM>
> >
> <Export-Package>org.apache.cxf.management*,org.apache.cxf.tracing*</Export-Package>
> > JM> </instructions>
> > JM> <niceManifest>true</niceManifest> </configuration>
> > JM> </plugin--> </plugins> </build></profile> *
> >
> > JM> Why does cxf-rt-management need to copy these classes to the jar file
> > ? Is
> > JM> it still needed to duplicate these classes from cxf-core ?
> >
> > JM> Thanks,
> > JM> Jim
> >
> >
>