maven和mybatis

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>

        <groupId>cn.com.zzn</groupId>

        <artifactId>zzn_parent</artifactId>

        <version>0.0.1-SNAPSHOT</version>

    </parent>

    <artifactId>zzn_persist</artifactId>


    <dependencies>


        <!-- module dependency in the same domain -->

        <dependency>

            <groupId>cn.com.zzn</groupId>

            <artifactId>zzn_model</artifactId>

            <version>${project.version}</version>

        </dependency>


        <!-- third party dependency -->

        <dependency>

            <groupId>org.apache.tapestry</groupId>

            <artifactId>tapestry-core</artifactId>

        </dependency>

        <dependency>

            <groupId>org.apache.tapestry</groupId>

            <artifactId>tapestry-ioc</artifactId>

        </dependency>

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis</artifactId>

            <version>${mybatis-version}</version>

            <scope>compile</scope>

        </dependency>

        <dependency>

            <groupId>com.github.pagehelper</groupId>

            <artifactId>pagehelper</artifactId>

            <version>${mybatis-pagehelper-version}</version>

            <scope>compile</scope>

        </dependency>

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis-guice</artifactId>

            <version>${mybatis-guice-version}</version>

            <scope>compile</scope>

        </dependency>

        <dependency>

            <groupId>com.alibaba</groupId>

            <artifactId>druid</artifactId>

            <version>${druid-version}</version>

            <scope>runtime</scope>

        </dependency>

        <dependency>

            <groupId>mysql</groupId>

            <artifactId>mysql-connector-java</artifactId>

            <version>${mysql-connector-java-version}</version>

            <scope>provided</scope>

        </dependency>

    </dependencies>


    <build>

        <finalName>${project.artifactId}</finalName>

        <plugins>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-jar-plugin</artifactId>

                <configuration>

                    <archive>

                        <manifestEntries>

                            <Tapestry-Module-Classes>cn.com.zzn.p2p.persist.service.AdvisorPersistModule

                            </Tapestry-Module-Classes>

                        </manifestEntries>

                    </archive>

                </configuration>

            </plugin>

            <plugin>

                <groupId>org.mybatis.generator</groupId>

                <artifactId>mybatis-generator-maven-plugin</artifactId>

                <version>${mybatis-generator-version}</version>

                <dependencies>

                    <dependency>

                        <groupId>mysql</groupId>

                        <artifactId>mysql-connector-java</artifactId>

                        <version>${mysql-connector-java-version}</version>

                    </dependency>

                </dependencies>

                <configuration>

                    <verbose>true</verbose>

                    <overwrite>true</overwrite>

                </configuration>

            </plugin>

            <plugin>

                <artifactId>maven-assembly-plugin</artifactId>

                <configuration>

                    <descriptorRefs>

                        <descriptorRef>jar-with-dependencies</descriptorRef>

                    </descriptorRefs>

                </configuration>

            </plugin>

        </plugins>

    </build>

</project>


你可能感兴趣的:(maven和mybatis)