|
129 | 129 | <version>4.5.1</version> |
130 | 130 | </dependency> |
131 | 131 | </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> |
132 | 171 | <build> |
133 | 172 | <plugins> |
134 | 173 | <plugin> |
135 | 174 | <groupId>org.springframework.boot</groupId> |
136 | 175 | <artifactId>spring-boot-maven-plugin</artifactId> |
137 | 176 | <version>${spring-boot.version}</version> |
138 | 177 | </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> |
169 | 178 | </plugins> |
170 | 179 | </build> |
171 | 180 | <dependencyManagement> |
|
0 commit comments