美文网首页Java
Create a maven project

Create a maven project

作者: JaedenKil | 来源:发表于2018-03-09 16:19 被阅读3次

    Projects notation in repository is groupId:artifactId:version

    com.company.bank:consumer-banking:1.0
    
    com.company.bank:consumer-banking:1.1
    

    pom.xml looks like:

    <?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.syna.LoginHulu</groupId>
        <artifactId>LoginHulu</artifactId>
        <version>1.0-SNAPSHOT</version>
    
        <dependencies>
            <dependency>
                <groupId>com.squareup.okhttp3</groupId>
                <artifactId>okhttp</artifactId>
                <version>3.10.0</version>
            </dependency>
        </dependencies>
    
    </project>
    

    The part was added manually:

        <dependencies>
            <dependency>
                <groupId>com.squareup.okhttp3</groupId>
                <artifactId>okhttp</artifactId>
                <version>3.10.0</version>
            </dependency>
        </dependencies>
    

    相关文章

      网友评论

        本文标题:Create a maven project

        本文链接:https://www.haomeiwen.com/subject/nhxmfftx.html