Skip to content
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

When I use java classes to generate xsd, how do I Customized xsd names in batches? #230

Open
SwpuEsine opened this issue Oct 21, 2022 · 0 comments

Comments

@SwpuEsine
Copy link

SwpuEsine commented Oct 21, 2022

The current configuration is as follows. The generated XSD file names like schema1.xsd and schema2.xsd etc...

<build>
		<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>1.6</version>
				<executions>
					<execution>
						<id>xjc</id>
						<goals>
							<goal>xjc</goal>
						</goals>
					</execution>
					<execution>
						<id>schemagen</id>
						<goals>
							<goal>schemagen</goal>
						</goals>
						<phase>generate-resources</phase>
					</execution>
				</executions>
				<configuration>
					<outputDirectory>${project.basedir}/src/main/resources/</outputDirectory>
					<clearOutputDir>true</clearOutputDir>
					<includes>
						<include>com/javatechie/spring/soap/api/test/*.java</include>
					</includes>
				</configuration>
			</plugin>
		</plugins>
	</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant