मैं एक्सएसडी से जावा फाइलें उत्पन्न करने की कोशिश कर रहा हूं, लेकिन नीचे दिया गया कोड उत्पन्न नहीं होता है। अगर मैं outputDirectory को अपूर्ण करता हूं, तो यह पहले काम करता है लेकिन फ़ोल्डर को हटा देता है। clearOutputDir = false
जोड़ना भी कुछ भी उत्पन्न नहीं कर रहा है।जेएक्सबी मेवेन प्लगइन कक्षाएं उत्पन्न नहीं कर रहा
<build>
<plugins>
<!-- JAXB xjc plugin that invokes the xjc compiler to compile XML schema into Java classes.-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- The package in which the source files will be generated. -->
<packageName>uk.co.infogen.camel.message</packageName>
<!-- The schema directory or xsd files. -->
<sources>
<source>${basedir}/src/main/resources/xsd</source>
</sources>
<!-- The working directory to create the generated java source files. -->
<!--<outputDirectory>${basedir}/src/main/java</outputDirectory>
<clearOutputDir>false</clearOutputDir>-->
</configuration>
</plugin>
</plugins>
</build>
मैं संदेश प्राप्त हो रहा:
[INFO] --- jaxb2-maven-plugin:2.2:xjc (default) @ service-business ---
[INFO] Ignored given or default xjbSources [/Users/aaa/development/workspace/infogen/infogen_example/service-business/src/main/xjb], since it is not an existent file or directory.
[INFO] No changes detected in schema or binding files - skipping JAXB generation.
आपको कभी भी अपने स्रोत फ़ोल्डर में उत्पन्न नहीं करना चाहिए, लेकिन लक्षित/जेनरेट-स्रोत/xjc – jah
हां, इसलिए मैंने आउटपुट डायरेक्टरी पर टिप्पणी क्यों की, लेकिन यह स्रोत उत्पन्न नहीं कर रहा है और एक ही जानकारी संदेश दे रहा है। – krmanish007