Skip to content

Commit d010c6c

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

File tree

1 file changed

+39
-30
lines changed
  • api-boot-samples/api-boot-sample-integration

1 file changed

+39
-30
lines changed

api-boot-samples/api-boot-sample-integration/pom.xml

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -129,43 +129,52 @@
129129
<version>4.5.1</version>
130130
</dependency>
131131
</dependencies>
132+
<profiles>
133+
<profile>
134+
<id>codegen</id>
135+
<build>
136+
<plugins>
137+
<plugin>
138+
<groupId>org.minbox.framework</groupId>
139+
<artifactId>api-boot-mybatis-enhance-maven-codegen</artifactId>
140+
<version>${api-boot.version}</version>
141+
<dependencies>
142+
<!--数据驱动依赖-->
143+
<dependency>
144+
<groupId>mysql</groupId>
145+
<artifactId>mysql-connector-java</artifactId>
146+
<version>5.1.47</version>
147+
</dependency>
148+
</dependencies>
149+
<executions>
150+
<execution>
151+
<goals>
152+
<goal>generator</goal>
153+
</goals>
154+
</execution>
155+
</executions>
156+
<configuration>
157+
<!--为true时执行自动生成-->
158+
<execute>false</execute>
159+
<dbName>knowledge</dbName>
160+
<dbUrl>jdbc:mysql://localhost:3306</dbUrl>
161+
<dbUserName>root</dbUserName>
162+
<dbPassword>123456</dbPassword>
163+
<packageName>org.minbox.framework.knowledge.library.common.entity</packageName>
164+
<tableNamePattern>kl%</tableNamePattern>
165+
</configuration>
166+
</plugin>
167+
</plugins>
168+
</build>
169+
</profile>
170+
</profiles>
132171
<build>
133172
<plugins>
134173
<plugin>
135174
<groupId>org.springframework.boot</groupId>
136175
<artifactId>spring-boot-maven-plugin</artifactId>
137176
<version>${spring-boot.version}</version>
138177
</plugin>
139-
<plugin>
140-
<groupId>org.minbox.framework</groupId>
141-
<artifactId>api-boot-mybatis-enhance-maven-codegen</artifactId>
142-
<version>${api-boot.version}</version>
143-
<dependencies>
144-
<!--数据驱动依赖-->
145-
<dependency>
146-
<groupId>mysql</groupId>
147-
<artifactId>mysql-connector-java</artifactId>
148-
<version>5.1.47</version>
149-
</dependency>
150-
</dependencies>
151-
<executions>
152-
<execution>
153-
<goals>
154-
<goal>generator</goal>
155-
</goals>
156-
</execution>
157-
</executions>
158-
<configuration>
159-
<!--为true时执行自动生成-->
160-
<execute>false</execute>
161-
<dbName>knowledge</dbName>
162-
<dbUrl>jdbc:mysql://localhost:3306</dbUrl>
163-
<dbUserName>root</dbUserName>
164-
<dbPassword>123456</dbPassword>
165-
<packageName>org.minbox.framework.knowledge.library.common.entity</packageName>
166-
<tableNamePattern>kl%</tableNamePattern>
167-
</configuration>
168-
</plugin>
169178
</plugins>
170179
</build>
171180
<dependencyManagement>

0 commit comments

Comments
 (0)