jaxb2-maven-plugin icon indicating copy to clipboard operation
jaxb2-maven-plugin copied to clipboard

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

Open SwpuEsine opened this issue 2 years ago • 0 comments

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>

SwpuEsine avatar Oct 21 '22 08:10 SwpuEsine