MVN Instructions for Use

<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: groupId: The unique identifier of the project or organization, and the path generated during configuration is also generated from this,
        For example, the relative path generated by com.mycompany.app is: /com/mycompany/app -->
    <groupId>asia.banseon</groupId>
    <!-- artifactId: Common name of the project -->
    <artifactId>banseon-maven2</artifactId>
    <!-- packaging: packaging mechanism, such as pom, jar, maven-plugin, ejb, war, ear, rar, par -->
    <packaging>jar</packaging>
    <!-- version: The version of the project -->
    <version>1.0-SNAPSHOT</version>
    <!-- The name of the project, used by Maven for documentation -->
    <name>banseon-maven</name>
    <!-- Which website can find this project, prompt if there is no Maven resource list, you can go to this website to find it directly, the document generated by Maven is used -->
    <url>http://www.baidu.com/banseon</url>
    <!-- The description of the project, used by Maven for documentation -->
    <description>A maven project to study maven.</description>
    <!-- Developer Information-->
    <developers>
        <developer>
            <id>HELLO WORLD</id>
            <name>banseon</name>
            <email>[email protected]</email>
            <roles>
                <role>Project Manager</role>
                <role>Architect</role>
            </roles>
            <organization>demo</organization>
            <organizationUrl>http://hi.baidu.com/banseon</organizationUrl>
            <properties>
                <dept>No</dept>
            </properties>
            <timezone>-5</timezone>
        </developer>
    </developers>
    <!-- Similar to developers -->
    <contributors></contributors>
    <!-- Mail list related to this project, for subscription and other information-->
    <mailingLists>
        <mailingList>
            <name>Demo</name>
            <!-- Link mail -->
            <post>[email protected]</post>
            <!-- mail for subscribe the project -->
            <subscribe>[email protected]</subscribe>
            <!-- mail for unsubscribe the project -->
            <unsubscribe>[email protected]</unsubscribe>
            <archive>
            http:/hi.baidu.com/banseon/demo/dev/
            </archive>
        </mailingList>
    </mailingLists>
    <!-- The name and URL of the project's issue management system (Bugzilla, Jira, Scarab, or whatever you like), in this case jira -->
    <issueManagement>
        <system>jira</system>
        <url>http://jira.baidu.com/banseon</url>
    </issueManagement>
    <!-- organization information -->
    <organization>
        <name>demo</name>
        <url>http://www.baidu.com/banseon</url>
    </organization>
    <!-- License -->
    <licenses>
        <license>
            <name>Apache 2</name>
            <url>http://www.baidu.com/banseon/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>
    <!--
        - The scm (software configuration management) tag allows you to configure your codebase for use by the Maven web site and other plugins.
        - If you are using CVS or Subversion, the source repository page also gives detailed, tool-specific instructions on how to use the code repository.
        - Below is an example of a typical SCM configuration
    -->
    <scm>
        <!-- The resource corresponding to the project on svn-->
        <connection>
            scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk)
        </connection>
        <developerConnection>
            scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk
        </developerConnection>
        <url>http://svn.baidu.com/banseon</url>
    </scm>
    <!-- Used to configure distribution management, configure the corresponding product release information, mainly for release, after executing mvn deploy, it indicates the location to be released -->
    <distributionManagement>
        <!-- Configure to file system -->
        <repository>
            <id>banseon-maven2</id>
            <name>banseon maven2</name>
            <url>file://${basedir}/target/deploy</url>
        </repository>
        <!-- use ssh2 configuration -->
        <snapshotRepository>
            <id>banseon-maven2</id>
            <name>Banseon-maven2 Snapshot Repository</name>
            <url>scp://svn.baidu.com/banseon:/usr/local/maven-snapshot</url>
        </snapshotRepository>
        <!-- use ssh2 configuration -->
        <site>
            <id>banseon-site</id>
            <name>business api website</name>
            <url>
                scp: //svn.baidu.com/banseon: / var / www / localhost / banseon-web
            </url>
        </site>
    </distributionManagement>
    <!-- Dependencies -->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <!-- scope description
                - compile : default scope, used for compilation
                - provided: similar to compilation, but supports what you expect jdk or container to provide, similar to classpath
                - runtime: At execution time, you need to use
                - test: used for test tasks
                - system: The corresponding element needs to be provided externally. Obtained by systemPath
                - systemPath: only for system scope. provide the corresponding path
                - optional: The annotation is optional, when the project itself is also a dependency. Used for continuous dependencies
            -->
            <scope>test</scope>
            <!--
                - systemPath: only for system scope. provide the corresponding path
                - optional: The annotation is optional, when the project itself is also a dependency. Used for continuous dependencies
            -->
            <!--
                <type>jar</type>
                <optional>true</optional>
            -->
        </dependency>

        <!--
            - The external tells maven that you only include the specified project, not the related dependencies. This factor is mainly used to resolve version conflicts
            - The following dependencies indicate that the project acegi-security depends on the org.springframework.XXX project, but we do not need to reference these projects
        -->
        <dependency>
            <groupId>org.acegisecurity</groupId>
            <artifactId>acegi-security</artifactId>
            <version>1.0.5</version>
            <scope>runtime</scope>
            <exclusions>
                <exclusion>
                    <artifactId>spring-core</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-support</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>commons-logging</artifactId>
                    <groupId>commons-logging</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-jdbc</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-remoting</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>2.5.1</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>2.5.1</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>8.2-504.jdbc4</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>11.1.0.6</version>
            <scope>runtime</scope>
        </dependency>
    </dependencies>
    <!--
        - maven proxy, local repository, replaces the maven.apache.org website jar list, when users download, they first look for this site
        - If the resource is found, download it. Otherwise just go to the jar list site. Save download speed and personal storage space for multiplayer teams.
    -->
    <repositories>
        <repository>
            <id>banseon-repository-proxy</id>
            <name>banseon-repository-proxy</name>
            <url>http://192.168.1.169:9999/repository/</url>
            <layout>default</layout>
        </repository>
    </repositories>

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326798235&siteId=291194637