Skip to content

Commit f862803

Browse files
committed
新增codegen构建profile
1 parent 758cc2f commit f862803

File tree

1 file changed

+38
-29
lines changed
  • api-boot-samples/api-boot-sample-mybatis-enhance-codegen

1 file changed

+38
-29
lines changed

api-boot-samples/api-boot-sample-mybatis-enhance-codegen/pom.xml

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -60,42 +60,51 @@
6060
</dependency>
6161
</dependencies>
6262
</dependencyManagement>
63+
<profiles>
64+
<profile>
65+
<id>codegen</id>
66+
<build>
67+
<plugins>
68+
<plugin>
69+
<groupId>org.minbox.framework</groupId>
70+
<artifactId>api-boot-mybatis-enhance-maven-codegen</artifactId>
71+
<version>${api-boot.version}</version>
72+
<dependencies>
73+
<!--数据驱动依赖-->
74+
<dependency>
75+
<groupId>mysql</groupId>
76+
<artifactId>mysql-connector-java</artifactId>
77+
<version>5.1.47</version>
78+
</dependency>
79+
</dependencies>
80+
<executions>
81+
<execution>
82+
<goals>
83+
<goal>generator</goal>
84+
</goals>
85+
</execution>
86+
</executions>
87+
<configuration>
88+
<execute>false</execute>
89+
<dbName>knowledge</dbName>
90+
<dbUrl>jdbc:mysql://localhost:3306</dbUrl>
91+
<dbUserName>root</dbUserName>
92+
<dbPassword>123456</dbPassword>
93+
<packageName>org.minbox.framework.api.boot.sample</packageName>
94+
<tableNamePattern>kl%</tableNamePattern>
95+
</configuration>
96+
</plugin>
97+
</plugins>
98+
</build>
99+
</profile>
100+
</profiles>
63101
<build>
64102
<plugins>
65103
<plugin>
66104
<groupId>org.springframework.boot</groupId>
67105
<artifactId>spring-boot-maven-plugin</artifactId>
68106
<version>${spring-boot.version}</version>
69107
</plugin>
70-
<plugin>
71-
<groupId>org.minbox.framework</groupId>
72-
<artifactId>api-boot-mybatis-enhance-maven-codegen</artifactId>
73-
<version>2.3.1.RELEASE</version>
74-
<dependencies>
75-
<!--数据驱动依赖-->
76-
<dependency>
77-
<groupId>mysql</groupId>
78-
<artifactId>mysql-connector-java</artifactId>
79-
<version>5.1.47</version>
80-
</dependency>
81-
</dependencies>
82-
<executions>
83-
<execution>
84-
<goals>
85-
<goal>generator</goal>
86-
</goals>
87-
</execution>
88-
</executions>
89-
<configuration>
90-
<execute>false</execute>
91-
<dbName>knowledge</dbName>
92-
<dbUrl>jdbc:mysql://localhost:3306</dbUrl>
93-
<dbUserName>root</dbUserName>
94-
<dbPassword>123456</dbPassword>
95-
<packageName>org.minbox.framework.api.boot.sample</packageName>
96-
<tableNamePattern>kl%</tableNamePattern>
97-
</configuration>
98-
</plugin>
99108
</plugins>
100109
</build>
101110
</project>

0 commit comments

Comments
 (0)