vscode maven


第一次写java

配置maven

安装后在

cd /usr/share/maven/conf

sudo xed settings.xml

依次复制 修改为

${user.home}/.m2/repository

 

<mirror>
<id>alimavenid>
<mirrorOf>centralmirrorOf>
<name>aliyun mavenname>
<url>http://maven.aliyun.com/nexus/content/groups/publicurl>
mirror>

结尾  里

    <repositories>
        <repository>
            <id>aliyunid>
            <name>aliyunname>
            <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
        repository>
    repositories>

 安装插件

命令行执行

mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="maven-archetype-quickstart" -DarchetypeGroupId="org.apache.maven.archetypes" -DarchetypeVersion="1.4"