maven xmlbeans plugin 配置

<plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>xmlbeans-maven-plugin</artifactId>
     <version>2.2.0</version>
     <executions>
      <execution>  
       <phase>generate-sources</phase>            
       <goals>
        <goal>xmlbeans</goal>
       </goals>
      </execution>
     </executions>
     <inherited>true</inherited>
     <configuration>
      <schemaDirectory>src/main/resources/xsd</schemaDirectory>
       <sourceschemas>
          <sourceschema>v1/forum_messages.xsd</sourceschema>
          <sourceschema>v2/forum_messages.xsd</sourceschema>
        </sourceschemas>
     </configuration>
    </plugin>
   </plugins>

你可能感兴趣的:(plugin)