I want to work with Eclipse and jdk 22 with JAXB to compile an xsd schema in order to generate the java classes.
I don't have a Maven installation except the one built into Eclipse itself.
To do this I create a maven project in Eclipse and configure pom.xml as follows:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.prueba</groupId> <artifactId>ruebaJAXB</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>jakarta.xml.bind</groupId> <artifactId>jakarta.xml.bind-api</artifactId> <version>4.0.2</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.3.3</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <version>2.4.0</version> <executions> <execution> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <schemaFiles> <schemaFile>${basedir}/src/main/resources/personas.xsd</schemaFile> </schemaFiles> <outputDirectory>${project.build.directory}/src/capaNegocio</outputDirectory> </configuration> </plugin> </plugins> </build> </project> I have a schema in src/main/resources. If I right-click on it under the Generate option, I only see the XML File option.
What steps do I need to take to generate Java classes from this schema?