0

Trying to compile using maven-jaxb2-plugin for java 11 and getting package com.sun.jmx.snmp does not exist. Also i get the same issue using the latest version of 0.15.1

my pom

<build>
        <plugins>
            <plugin>
                <groupId>org.jvnet.jaxb2.maven2</groupId>
                <artifactId>maven-jaxb2-plugin</artifactId>
                <version>0.14.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <schemaDirectory>src/main/resources/</schemaDirectory>
                            <generateDirectory>${basedir}/target/generated/</generateDirectory>
                            <generatePackage>*hidden for security reasons*</generatePackage>
                            <schemaIncludes>
                                <include>*wsdl</include>
                                <include>*xsd</include>
                                <include>*xsd</include>
                                <include>*xsd</include>
                            </schemaIncludes>
                            <bindingIncludes>
                                <include>*xjb</include>
                            </bindingIncludes>
                            <args>-wsdl</args>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
compile error

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.015 s
[INFO] Finished at: 2022-11-15T10:28:21-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project: Compilation failure
[ERROR] /D:/filePath.java:[17,24] package com.sun.jmx.snmp does not exist

i have tried these solutions and no success Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1 package com.sun.jdmk.comm does not exist

0 Answers0