maven groovy

<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/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>cn.eshore.elogistics</groupId>

    <artifactId>LecManager</artifactId>

    <packaging>war</packaging>

    <version>1.1.0-SNAPSHOT</version>

    <name>E-Logistics</name>

    <url>http://elogistics.eshore.cn</url>

    <description>Author:Ming Li@20130620</description>

    <properties>

        <!--源码的设置-->

        <maven.compiler.compilerVersion>6</maven.compiler.compilerVersion>

        <maven.compiler.source>6</maven.compiler.source>

        <maven.compiler.target>6</maven.compiler.target>

        <!--Release只提交jar,不提交Sources和Docs-->

        <useReleaseProfile>false</useReleaseProfile>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    </properties>

    <dependencies>

        <dependency>

            <groupId>asm</groupId>

            <artifactId>asm</artifactId>

            <version>1.4.1</version>

        </dependency>

        <dependency>

            <groupId>commons-cli</groupId>

            <artifactId>commons-cli</artifactId>

            <version>1.0</version>

        </dependency>

        <dependency>

            <groupId>ant</groupId>

            <artifactId>ant</artifactId>

            <version>1.6.1</version>

        </dependency>

        <dependency>

            <groupId>ant</groupId>

            <artifactId>ant-launcher</artifactId>

            <version>1.6.1</version>

        </dependency>

        <dependency>

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

            <artifactId>maven-plugin-api</artifactId>

            <version>2.0</version>

        </dependency>

        <dependency>

            <groupId>org.grails</groupId>

            <artifactId>grails-web</artifactId>

            <version>1.1</version>

        </dependency>

        <dependency>

            <groupId>org.grails</groupId>

            <artifactId>grails-spring</artifactId>

            <version>1.1</version>

        </dependency>

        <dependency>

            <groupId>org.grails</groupId>

            <artifactId>grails-scripts</artifactId>

            <version>1.1</version>

        </dependency>

        <dependency>

            <groupId>org.grails</groupId>

            <artifactId>grails-plugin-domain-class</artifactId>

            <version>2.2.0</version>

        </dependency>

        <dependency>

            <groupId>groovy</groupId>

            <artifactId>groovy-all</artifactId>

            <version>1.1-rc-1</version>

        </dependency>

        <dependency>

            <groupId>org.apache.commons</groupId>

            <artifactId>commons-lang3</artifactId>

            <version>3.1</version>

        </dependency>

        <dependency>

            <groupId>org.apache.poi</groupId>

            <artifactId>poi</artifactId>

            <version>3.8-beta5</version>

        </dependency>

    </dependencies>

    <build>

        <finalName>LecManager</finalName>

        <plugins>

            <plugin>

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

                <artifactId>maven-war-plugin</artifactId>

                <version>2.1-beta-1</version>

                <!--

                <configuration>

                    <packagingExcludes>

                        **/lbsAgentConf.properties,

                        **/logback.xml

                    </packagingExcludes>

                </configuration>

                -->

            </plugin>

            <plugin>

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

                <artifactId>maven-compiler-plugin</artifactId>

                <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                    <encoding>UTF-8</encoding>

                </configuration>

            </plugin>

            <plugin>

                <groupId>org.codehaus.groovy.maven</groupId>

                <artifactId>gmaven-plugin</artifactId>

                <version>1.0-rc-4</version>

                <executions>

                    <execution>

                        <goals>

                            <goal>generateStubs</goal>

                            <goal>compile</goal>

                        </goals>

                        <configuration>

                            <sources>

                                <fileset>

                                    <directory>${pom.basedir}/grails-app/</directory>

                                    <includes>

                                        <include>conf/**/*.groovy</include>

                                        <include>domain/**/*.groovy</include>

                                    </includes>

                                </fileset>

                            </sources>

                        </configuration>

                    </execution>

                </executions>

            </plugin>

            <plugin>

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

                <artifactId>maven-war-plugin</artifactId>

                <configuration>

                    <webXml>src/templates/war/web.xml</webXml>

                </configuration>

            </plugin>

        </plugins>

    </build>

    <!--版本控制-->

    <scm>

        <connection>scm:svn:http://10.18.96.33/svn/lec_main_manager_war/trunk/LecManager/</connection>

        <developerConnection>scm:svn:http://10.18.96.33/svn/lec_main_manager_war/trunk/LecManager/</developerConnection>

    </scm>

    <!--本地软件库管理-->

    <distributionManagement>

        <repository>

            <id>nexus-repo-releases</id>

            <name>Nexus Release Repository</name>

            <url>http://10.18.96.33/nexus/content/repositories/releases</url>

        </repository>

        <snapshotRepository>

            <id>nexus-repo-snapshots</id>

            <name>Nexus Snapshot Repository</name>

            <url>http://10.18.96.33/nexus/content/repositories/snapshots</url>

        </snapshotRepository>

    </distributionManagement>

</project>

猜你喜欢

转载自liming495.iteye.com/blog/1890499