groovy mvn

来源:互联网 发布:巨人网络回归a股涨多少 编辑:程序博客网 时间:2024/06/05 00:49
<?xml version="1.0" encoding="UTF-8"?><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>    <groupId>com.hd.groovy</groupId>    <artifactId>groovy</artifactId>    <version>1.0-SNAPSHOT</version>    <build>        <plugins>            <!--java compiler-->            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-compiler-plugin</artifactId>                <configuration>                    <source>1.8</source>                    <target>1.8</target>                </configuration>            </plugin>            <!--spring boot-->            <plugin>                <groupId>org.springframework.boot</groupId>                <artifactId>spring-boot-maven-plugin</artifactId>            </plugin>            <!--groovy-->            <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>                    </execution>                </executions>            </plugin>            <!--package lib-->            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-dependency-plugin</artifactId>                <executions>                    <execution>                        <id>copy-dependencies</id>                        <phase>package</phase>                        <goals>                            <goal>copy-dependencies</goal>                        </goals>                        <configuration>                            <outputDirectory>${project.build.directory}/lib</outputDirectory>                            <overWriteReleases>false</overWriteReleases>                            <overWriteSnapshots>false</overWriteSnapshots>                            <overWriteIfNewer>true</overWriteIfNewer>                            <useBaseVersion>false</useBaseVersion>                            <includeScope>runtime</includeScope>                        </configuration>                    </execution>                </executions>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-compiler-plugin</artifactId>                <version>3.3</version>                <configuration>                    <source>1.8</source>                    <target>1.8</target>                    <compilerId>groovy-eclipse-compiler</compilerId>                    <verbose>true</verbose>                    <fork>true</fork>                </configuration>                <dependencies>                    <dependency>                        <groupId>org.codehaus.groovy</groupId>                        <artifactId>groovy-eclipse-compiler</artifactId>                        <version>2.9.2-01</version>                    </dependency>                    <dependency>                        <groupId>org.codehaus.groovy</groupId>                        <artifactId>groovy-eclipse-batch</artifactId>                        <version>2.4.3-01</version>                    </dependency>                </dependencies>            </plugin>            <plugin>                <groupId>org.codehaus.groovy</groupId>                <artifactId>groovy-eclipse-compiler</artifactId>                <version>2.9.2-01</version>                <extensions>true</extensions>            </plugin>            <!--package jar-->            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-jar-plugin</artifactId>                <configuration>                    <archive>                        <manifest>                            <addClasspath>true</addClasspath>                            <classpathPrefix>./lib</classpathPrefix>                            <mainClass>${start-class}</mainClass>                        </manifest>                    </archive>                </configuration>            </plugin>        </plugins>    </build>    <parent>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-parent</artifactId>        <version>1.5.4.RELEASE</version>    </parent>    <properties>        <start-class>com.hd.Starter</start-class>        <v.servlet>3.1.0</v.servlet>    </properties>    <dependencies>        <!--core-->        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter</artifactId>        </dependency>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-test</artifactId>            <scope>test</scope>        </dependency>        <!--web-->        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-web</artifactId>        </dependency>        <!--http-->        <dependency>            <groupId>com.squareup.okhttp3</groupId>            <artifactId>okhttp</artifactId>            <version>3.8.1</version>        </dependency>        <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all -->        <dependency>            <groupId>org.codehaus.groovy</groupId>            <artifactId>groovy-all</artifactId>            <version>2.4.5</version>        </dependency>        <!--servlet-->        <dependency>            <groupId>javax.servlet</groupId>            <artifactId>javax.servlet-api</artifactId>            <version>${v.servlet}</version>        </dependency>    </dependencies></project>

原创粉丝点击