我正在使用这个插件从XSD生成java源代码。它正在生成。
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
</plugin>
但在其中一个java文件导入中我可以看到下面的导入,但它没有像下面那样生成名称空间
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AccountBaseType", namespace = "http://services.com/11/basetypes/account", propOrder = {
"accountId",
"accountSummary"
})
我正在接受这件事
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AccountBaseType", propOrder = {
"accountId",
"accountSummary"