-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse error: Execution of XJC goal... A required class was missing.. #156
Comments
Wrong project. This is maven-jaxb2-plugin here, not the Codehaus plugin.
… Am 07.09.2018 um 12:10 schrieb Ed Tshuma ***@***.***>:
In my Spring SOAP web service when I run
mvn eclipse:eclipse
I get an exception:
A required class was missing while executing org.codehaus.mojo:jaxb2-maven-plugin:2.2:xjc: com/sun/codemodel/CodeWriter*.
1)`Specifying a JDK for my Eclipse installation in eclipse.ini. I am not sure however if i should remove the Default JRE definition in the IDE and if so should i define a new JRE that pints to my JDK.
2)Force update of project and release snapshots.
3) I have checked the relevant jars in in my repository to see if they are any a malformed(size) but they are all ok.
I am using Eclipse Oxygen.3a Release (4.7.3a).Build id: 20180405-1200 .Also Spring Boot 1.5.9,,wsdl4j Ver 1.6.3, jaxb-api 2.3.0.
In my pom.xml i have:
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>xjc-schema</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<sources>
<source>src/main/resources/xsds</source>
</sources>
<packageName>webservices.disburse.generated</packageName>
<clearOutputDir>false</clearOutputDir>
</configuration>
</plugin>
</plugins>
In my disburse.xsd i have:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.onewallet.com/webservices/disburse/generated"
targetNamespace="http://www.onewallet.com/webservices/disburse/generated" elementFormDefault="qualified">
<xs:element name="getAllDisbursementsRequest">
<xs:complexType/>
</xs:element>
<xs:element name="getAllDisbursementsResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="disburseInfo" type="tns:disburseInfo" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="serviceStatus">
<xs:sequence>
<xs:element name="statusCode" type="xs:string"/>
<xs:element name="message" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
I am stuck..any assistance on what i may be missing would be greatly appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ok thanks .. I will refactor to maven-jaxb2-plugin and see if i can generate the classes . |
laurentschoelens
pushed a commit
to laurentschoelens/jaxb-tools
that referenced
this issue
May 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my Spring SOAP web service when I run
mvn eclipse:eclipse
I get an exception:
1)`Specifying a JDK for my Eclipse installation in eclipse.ini. I am not sure however if i should remove the Default JRE definition in the IDE and if so should i define a new JRE that pints to my JDK.
2)Force update of project and release snapshots.
3) I have checked the relevant jars in in my repository to see if they are any a malformed(size) but they are all ok.
I am using Eclipse Oxygen.3a Release (4.7.3a).Build id: 20180405-1200 .Also Spring Boot 1.5.9,,wsdl4j Ver 1.6.3, jaxb-api 2.3.0.
In my pom.xml i have:
In my disburse.xsd i have:
I am stuck..any assistance on what i may be missing would be greatly appreciated.
The text was updated successfully, but these errors were encountered: