zoukankan      html  css  js  c++  java
  • MAVEN学习笔记之Maven插件的应用(4)

    MAVEN学习笔记之Maven插件的应用(4)

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>sql-maven-plugin</artifactId>
                    <version>1.5</version>
    
                    <!-- 使用插件依然可以指定相应的依赖 -->
                    <dependencies>
                        <dependencie>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.24</version>
    
                <!-- 配置参数 -->
                <configuration>
                    <driver>${jdbc.driver}</driver>
                    <url>${jdbc.url}</url>
                    <username>${jdbc.username}</username>
                    <password>${jdbc.password}</password>
                </configuration>
                <executions>
                <!--插件执行时间-->
                <execution>
                    <id>create-db</id>
                    <phase>compile</phase>
                    <goals><goal>execut</goal></goals>
                    <!--帮助文档中找-->
                    <configuration>
                        <sqlCommand>create database IF NOT EXIt itat_maven_test</sqlCommand>
                    </configuration>
                    </execution>
                </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
  • 相关阅读:
    爬虫杂七杂八
    pycharm使用技巧
    python杂七杂八
    mysql杂七杂八
    mysql常见函数总结:
    CF1030F Putting Boxes Together
    AT2688 [ARC080C] Young Maids
    P5280 [ZJOI2019]线段树
    雨的味道
    P2572 [SCOI2010]序列操作
  • 原文地址:https://www.cnblogs.com/lanzhi/p/6467992.html
Copyright © 2011-2022 走看看