1つのプロジェクトで2つのxmlbeansを生成しようとしました。たとえば、それぞれが参加者オブジェクトを取得するので、私はそれらを1つの構成に入れることはできません。私がしたやり方は2つの発言を使っていた、ここに私のpomファイルです:1つのpomファイルで2つのxmlbeansを生成する方法
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xmlbeans-maven-plugin</artifactId>
<version>2.3.3</version>
<executions>
<execution>
<id>xmlbean1</id>
<phase>generate-sources</phase>
<goals>
<goal>xmlbeans</goal>
</goals>
<configuration>
<xmlConfigs>
<xmlConfig implementation="java.io.File">src/main/xsdconfig/xmlbean1</xmlConfig>
</xmlConfigs>
<verbose>true</verbose>
<schemaDirectory>src/main/xsd/xmlbean1</schemaDirectory>
</configuration>
</execution>
<execution>
<id>xmlbean2</id>
<phase>generate-sources</phase>
<goals>
<goal>xmlbeans</goal>
</goals>
<configuration>
<xmlConfigs>
<xmlConfig implementation="java.io.File">src/main/xsdconfig/xmlbean2</xmlConfig>
</xmlConfigs>
<verbose>true</verbose>
<schemaDirectory>src/main/xsd/xmlbean2</schemaDirectory>
</configuration>
</execution>
</executions>
<inherited>true</inherited>
</plugin>
しかし、それはまったく機能しません。誰でも助けてくれてありがとうございます。
はありますエラーはありますか? – drekka
単一のxmlbeansの生成は機能しますか? –
皆さん、ありがとうございます。次のpomはうまくいきます: – Luke