Intellij设置Jdk8的pom.xml

来源:互联网 发布:javascript 矩阵库 编辑:程序博客网 时间:2024/05/19 18:00
<?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.ximalaya</groupId>    <artifactId>search-plateform-client</artifactId>    <packaging>pom</packaging>    <version>1.0-SNAPSHOT</version>    <modules>        <module>search-plateform-client-core</module>        <module>search-plateform-client-inf</module>    </modules>    <build>        <!--所有子pom会继承到-->        <pluginManagement>            <plugins>                <!--编译插件-->                <plugin>                    <groupId>org.apache.maven.plugins</groupId>                    <artifactId>maven-compiler-plugin</artifactId>                    <version>2.3.2</version>                    <configuration>                        <encoding>UTF-8</encoding>                        <source>1.8</source>                        <target>1.8</target>                    </configuration>                </plugin>                <!--源码打包插件-->                <plugin>                    <artifactId>maven-source-plugin</artifactId>                    <executions>                        <execution>                            <id>attach-sources</id>                            <goals>                                <goal>jar</goal>                            </goals>                        </execution>                    </executions>                </plugin>                <!--打包war插件-->                <plugin>                    <groupId>org.apache.maven.plugins</groupId>                    <artifactId>maven-war-plugin</artifactId>                    <version>2.1.1</version>                    <configuration>                        <webResources>                            <resource>                                <directory>WebContent</directory>                            </resource>                        </webResources>                    </configuration>                </plugin>            </plugins>        </pluginManagement>        <!--和pluginManagements区别-->        <plugins>            <plugin>                <artifactId>maven-source-plugin</artifactId>            </plugin>            <plugin>                <artifactId>maven-war-plugin</artifactId>            </plugin>            <plugin>                <groupId>org.mybatis.generator</groupId>                <artifactId>mybatis-generator-maven-plugin</artifactId>                <version>1.3.2</version>                <configuration>                    <verbose>true</verbose>                    <overwrite>true</overwrite>                </configuration>            </plugin>        </plugins>    </build>   </project>

0 0
原创粉丝点击