package或者install時會自動執行 mybatis-generator:generate

添加下面這段配置便可解決code

<executions>
  <execution>
	  <id>Generate MyBatis Artifacts</id>
	  <phase>deploy</phase>
	  <goals>
	      <goal>generate</goal>
	  </goals>
  </execution>
</executions>

相關文章
相關標籤/搜索