maven_基本配置

<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.cph.test</groupId>

    <artifactId>crawler</artifactId>

    <version>0.0.1-SNAPSHOT</version>

    <packaging>jar</packaging>

    <name>crawler</name>

    <url>http://maven.apache.org</url>

    <properties>

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

    </properties>

    <build>

        <plugins>

            <plugin>

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

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

                <version>2.3.2</version>

                <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                    <debug>true</debug>

                    <encoding>UTF-8</encoding>

                </configuration>

            </plugin>

        </plugins>

    </build>

    <dependencies>

        <!-- junit 用于单元测试 -->

        <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>4.7</version>

            <type>jar</type>

            <scope>test</scope>

        </dependency>

        <!-- 用于log4java -->

        <dependency>

            <groupId>log4j</groupId>

            <artifactId>log4j</artifactId>

            <version>1.2.17</version>

        </dependency>

        <!-- 用于解析html、xml -->

        <dependency>

            <groupId>org.jsoup</groupId>

            <artifactId>jsoup</artifactId>

            <version>1.7.3</version>

        </dependency>

    </dependencies>

    <!-- 私服 -->

    <!-- <distributionManagement> <repository> <id>nexus-releases</id> <url>http://192.168.80.132:8060/nexus/content/repositories/releases</url> 

        </repository> <snapshotRepository> <id>nexus-snapshots</id> <url>http://192.168.80.132:8060/nexus/content/repositories/snapshots</url> 

        </snapshotRepository> </distributionManagement> -->

</project>

    

 

你可能感兴趣的:(maven)