nexus-3.6.0-02-unix.tar.gz安装(Centos下),maven setting.xml配置案例,项目root的pom.xml配置,parent-pom的pom.xml配置案例

1、下载nexus

进入:http://www.sonatype.org/nexus/downloads/
nexus-3.6.0-02-unix.tar.gz安装(Centos下),maven setting.xml配置案例,项目root的pom.xml配置,parent-pom的pom.xml配置案例_第1张图片
说明:
[OSS = Open Source Software,开源软件 – 免费]
[FREE TRIAL,专业版本 – 收费]

nexus-3.6.0-02-unix.tar.gz安装(Centos下),maven setting.xml配置案例,项目root的pom.xml配置,parent-pom的pom.xml配置案例_第2张图片

2、Centos下安装Nexus

安装JDK,此处略,检查自己虚拟机上的JDK版本如下:
这里写图片描述

使用xftp将nexus上传到:/home/tuzq/software
首先解压下载到的文件:

[root@hadoop10 software]# tar -zxvf nexus-3.6.0-02-unix.tar.gz
[root@hadoop10 software]# ls
apache-maven-3.5.0-bin.tar.gz  azkaban-sql         jdk-8u73-linux-x64.tar.gz  nexus-3.6.0-02-unix.tar.gz  solr-4.10.3.tgz.tgz
apache-tomcat-8.5.12.tar.gz    incubator-rocketmq  nexus-3.6.0-02             solr-4.10.3                 sonatype-work

这里写图片描述

编辑环境变量

[root@hadoop10 software]# vi /etc/profile

添加Nexus的路径,一定要注意路径不能错
这里写图片描述

修改完成之后,最后执行下面的命令:

[root@hadoop10 bin]# source /etc/profile

修改nexus-3.6.0-02下的bin/nexus.rc文件

[root@hadoop10 bin]# vim nexus.rc

设置启动该服务的用户,Nexus不推荐使用root,这里暂时设置为root

run_as_user="root"

添加服务

[root@hadoop10 bin]# sudo ln -s $NEXUS_HOME/bin/nexus /etc/init.d/nexus

启动nexus

[root@hadoop10 init.d]# service nexus start
WARNING: ************************************************************
WARNING: Detected execution as "root" user.  This is NOT recommended!
WARNING: ************************************************************
Starting nexus
[root@hadoop10 init.d]#

到这里就算是启动完毕,log信息可以在下面的文件中查看:

[root@hadoop10 init.d]# cd /home/tuzq/software/sonatype-work/nexus3/log/
[root@hadoop10 log]# ls
jvm.log  karaf.log  nexus.log
[root@hadoop10 log]#

默认端口是8081
默认用户名是admin,密码admin123
修改端口在:/home/tuzq/software/nexus-3.6.0-02/etc/nexus-default.properties

在浏览器中访问:http://192.168.106.100:8081/
nexus-3.6.0-02-unix.tar.gz安装(Centos下),maven setting.xml配置案例,项目root的pom.xml配置,parent-pom的pom.xml配置案例_第3张图片

3、apache-maven-3.3.9\conf\setting.xml配置案例



<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    
    <localRepository>E:/maven_repolocalRepository>
    <interactiveMode>trueinteractiveMode>
    <offline>falseoffline>
    <pluginGroups>
        <pluginGroup>org.mortbay.jettypluginGroup>
        <pluginGroup>org.jenkins-ci.toolspluginGroup>
    pluginGroups>

    
    <servers>
        <server>
            <id>maven-centralid>
            <username>adminusername>
            <password>admin123password>
        server>
        <server>
            <id>maven-publicid>
            <username>adminusername>
            <password>admin123password>
        server>
        <server>
            <id>maven-releasesid>
            <username>adminusername>
            <password>admin123password>
        server>
        <server>
            <id>maven-snapshotsid>
            <username>adminusername>
            <password>admin123password>
        server>
    servers>

    <mirrors>

    mirrors>

    <profiles>
        <profile>
            <id>settingid>
            <activation>
                <activeByDefault>falseactiveByDefault>
                <jdk>1.8jdk>
            activation>
            <repositories>
                
                <repository>
                    <id>maven-publicid>
                    <url>http://192.168.106.100:8081/repository/maven-public/url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                    snapshots>
                repository>
                <repository>
                    <id>maven-snapshotsid>
                    <url>http://192.168.106.100:8081/repository/maven-snapshots/url>
                    <releases>
                            <enabled>trueenabled>
                    releases>
                    <snapshots>
                            <enabled>trueenabled>
                    snapshots>
                repository>
                <repository>
                    <id>maven-releasesid>
                    <url>http://192.168.106.100:8081/repository/maven-releases/url>
                    <releases>
                            <enabled>trueenabled>
                    releases>
                    <snapshots>
                            <enabled>trueenabled>
                    snapshots>
                repository>
                <repository>
                    <id>maven-centralid>
                    <url>http://192.168.106.100:8081/repository/maven-central/url>
                    <releases>
                            <enabled>trueenabled>
                    releases>
                    <snapshots>
                            <enabled>trueenabled>
                    snapshots>
                repository>
            repositories>
            <pluginRepositories>
                
                <pluginRepository>
                    <id>maven-publicid>
                    <url>http://192.168.106.100:8081/repository/maven-public/url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>trueenabled>
                   snapshots>
                pluginRepository>
            pluginRepositories>
        profile>
        <profile>  
            <id>jdk18id>  
            <activation>  
                <activeByDefault>trueactiveByDefault>  
                <jdk>1.8jdk>  
            activation>  
            <properties>  
                <maven.compiler.source>1.8maven.compiler.source>  
                <maven.compiler.target>1.8maven.compiler.target>
                <maven.compiler.compilerVersion>1.8maven.compiler.compilerVersion>
            properties>   
        profile>

    profiles>

    
    <activeProfiles>
        <activeProfile>settingactiveProfile>
    activeProfiles>   
settings>

4、一个root-pom的pom.xml配置案例

<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.0modelVersion>

    <groupId>projectnamegroupId>
    <artifactId>root-pomartifactId>
    <version>0.0.1-RELEASESversion>
    <packaging>pompackaging>

    <name>root-pomname>
    <url>http://maven.apache.orgurl>

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

    <dependencies>

    dependencies>

    <build>
        <pluginManagement>
            <plugins>
                
                <plugin>
                    <groupId>org.apache.maven.pluginsgroupId>
                    <artifactId>maven-compiler-pluginartifactId>
                    <configuration>
                        <source>1.8source>
                        <target>1.8target>
                        <encoding>UTF-8encoding>
                    configuration>
                plugin>


                
                <plugin>
                    <groupId>org.apache.maven.pluginsgroupId>
                    <artifactId>maven-resources-pluginartifactId>
                    <configuration>
                        <encoding>UTF-8encoding>
                    configuration>
                plugin>

            plugins>
        pluginManagement>
    build>

    <distributionManagement>
        <repository>
            <id>maven-releaseid>
            <name>Nexus Release Repositoryname>
            <url>http://192.168.106.100:8081/repository/maven-releases/url>
        repository>
        <snapshotRepository>
            <id>maven-snapshotsid>
            <name>Nexus Snapshot Repositoryname>
            <url>http://192.168.106.100:8081/repository/maven-snapshots/url>
        snapshotRepository>
    distributionManagement>
project>

5、parent-pom的pom.xml配置案例

<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.0modelVersion>

    <parent>
        <groupId>projectnamegroupId>
        <artifactId>root-pomartifactId>
        <version>0.0.1-SNAPSHOTversion>
    parent>

    <artifactId>parent-pomartifactId>
    <packaging>pompackaging>

    <name>parent-pomname>
    <url>http://maven.apache.orgurl>

    <modules>
        <module>../root-pommodule>

        <module>parent-webmodule>
        <module>parent-blmodule>
        <module>parent-daomodule>
        <module>parent-webappmodule>

        <module>../projectname-coremodule>
        <module>../projectname-core-servicemodule>
        <module>../projectname-webmodule>
        <module>../projectname-redismodule>
        <module>../projectname-mysqlmodule>
        <module>../projectname-service-basemodule>
        <module>../projectname-qxmodule>

        <module>../usrmodule>
    modules>

    <properties>
        <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
        <spring.version>4.3.10.RELEASEspring.version>
        <spring-session.version>1.3.1.RELEASEspring-session.version>
        <spring-data-redis.version>1.8.6.RELEASEspring-data-redis.version>
        <spring-data-hadoop.version>2.4.0.RELEASEspring-data-hadoop.version>
        <spring-data-hadoop-hbase.version>2.4.0.RELEASEspring-data-hadoop-hbase.version>
        <hbase-client.version>1.3.0hbase-client.version>
        <redis.clients.version>2.9.0redis.clients.version>
        <mybatis.version>3.3.0mybatis.version>
        <mybatis-spring.version>1.2.3mybatis-spring.version>
        <mysql-connector-java.version>5.1.40mysql-connector-java.version>
        <dubbo.version>2.5.3dubbo.version>
        <druid.version>1.1.2druid.version>
        <slf4j.version>1.7.25slf4j.version>
        <log4j.version>1.2.17log4j.version>
        <poi.version>3.14poi.version>
        <jxl.version>2.6.12jxl.version>
        <tomcat-catalina.version>8.0.23tomcat-catalina.version>
        <sqljdbc4.version>4.2sqljdbc4.version>
        <zookeeper.version>3.4.10zookeeper.version>
        <zkclient.version>0.10zkclient.version>
        <guice.version>4.1.0guice.version>
        <jdk.tools.version>1.8jdk.tools.version>
        <httpclient.version>4.5.2httpclient.version>
        <commons-httpclient.version>3.1commons-httpclient.version>
        <httpcore.version>4.4.5httpcore.version>
        <junit.version>4.12junit.version>
        <jackson-databind.version>2.9.0jackson-databind.version>
        <jstl.version>1.2jstl.version>
        <standard.version>1.1.2standard.version>
        <freemarker.version>2.3.23freemarker.version>
        <javax.servlet-api.version>3.1.0javax.servlet-api.version>
        <jspapi.version>2.2jspapi.version>
        <commons-dbcp2.version>2.1commons-dbcp2.version>
        <commons-codec.version>1.10commons-codec.version>
        <commons-pool2.version>2.4.2commons-pool2.version>
        <commons-lang3.version>3.5commons-lang3.version>
        <commons-lang.version>2.6commons-lang.version>
        <commons-logging.version>1.2commons-logging.version>
        <commons-io.version>2.5commons-io.version>
        <xstream.version>1.4.9xstream.version>
        <pinyin4j.version>2.5.1pinyin4j.version>
        <dom4j.version>1.6.1dom4j.version>

        
        <pagehelper.version>5.0.4pagehelper.version>
        <jsqlparser.version>1.1jsqlparser.version>
        <mapper.version>3.0.1mapper.version>


        <joda-time.version>2.9.9joda-time.version>

        
        <maven-clean-plugin-version>3.0.0maven-clean-plugin-version>
        
        <maven-compiler-plugin-version>3.6.0maven-compiler-plugin-version>
        <java-source-version>1.8java-source-version>
        <java-target-version>1.8java-target-version>
        
        <maven-deploy-plugin-version>2.8.2maven-deploy-plugin-version>
        
        <maven-war-plugin-version>3.1.0maven-war-plugin-version>
        
        <maven-install-plugin-version>2.5.2maven-install-plugin-version>
        
        <maven-surefire-plugin-version>2.20maven-surefire-plugin-version>
        
        <maven-source-plugin-version>3.0.1maven-source-plugin-version>
        
        <maven-help-plugin-version>2.2maven-help-plugin-version>
        
        <maven-eclipse-plugin-version>2.10maven-eclipse-plugin-version>
        
        <maven-resources-plugin-version>3.0.2maven-resources-plugin-version>
    properties>

    <dependencyManagement>
        <dependencies>
            
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-aopartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-aspectsartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-beansartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-contextartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-context-supportartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-coreartifactId>
                <version>${spring.version}version>
                <exclusions>
                    <exclusion>
                        <groupId>commons-logginggroupId>
                        <artifactId>commons-loggingartifactId>
                    exclusion>
                exclusions>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-txartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-testartifactId>
                <version>${spring.version}version>
                <scope>testscope>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-jdbcartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-webmvcartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframeworkgroupId>
                <artifactId>spring-webartifactId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <artifactId>spring-oxmartifactId>
                <groupId>org.springframeworkgroupId>
                <version>${spring.version}version>
            dependency>
            <dependency>
                <groupId>org.springframework.sessiongroupId>
                <artifactId>spring-sessionartifactId>
                <version>${spring-session.version}version>
            dependency>

            
            <dependency>
                <groupId>org.springframework.datagroupId>
                <artifactId>spring-data-redisartifactId>
                <version>${spring-data-redis.version}version>
            dependency>
            <dependency>
                <groupId>redis.clientsgroupId>
                <artifactId>jedisartifactId>
                <version>${redis.clients.version}version>
            dependency>

            
            <dependency>
                <groupId>org.mybatisgroupId>
                <artifactId>mybatis-springartifactId>
                <version>${mybatis-spring.version}version>
            dependency>
            
            <dependency>
                <groupId>org.mybatisgroupId>
                <artifactId>mybatisartifactId>
                <version>${mybatis.version}version>
            dependency>
            
            <dependency>
                <groupId>mysqlgroupId>
                <artifactId>mysql-connector-javaartifactId>
                <version>${mysql-connector-java.version}version>
            dependency>

            
            <dependency>
                <groupId>org.apache.commonsgroupId>
                <artifactId>commons-dbcp2artifactId>
                <version>${commons-dbcp2.version}version>
            dependency>
            
            <dependency>
                <groupId>commons-codecgroupId>
                <artifactId>commons-codecartifactId>
                <version>${commons-codec.version}version>
            dependency>
            <dependency>
                <groupId>org.apache.commonsgroupId>
                <artifactId>commons-pool2artifactId>
                <version>${commons-pool2.version}version>
            dependency>
            <dependency>
                <groupId>org.apache.commonsgroupId>
                <artifactId>commons-lang3artifactId>
                <version>${commons-lang3.version}version>
            dependency>
            <dependency>
                <groupId>commons-logginggroupId>
                <artifactId>commons-loggingartifactId>
                <version>${commons-logging.version}version>
            dependency>
            <dependency>
                <groupId>commons-langgroupId>
                <artifactId>commons-langartifactId>
                <version>${commons-lang.version}version>
            dependency>
            <dependency>
                <groupId>commons-iogroupId>
                <artifactId>commons-ioartifactId>
                <version>${commons-io.version}version>
            dependency>
            
            <dependency>
                <groupId>joda-timegroupId>
                <artifactId>joda-timeartifactId>
                <version>${joda-time.version}version>
            dependency>

            
            <dependency>
                <groupId>org.apache.poigroupId>
                <artifactId>poiartifactId>
                <version>${poi.version}version>
            dependency>

            <dependency>
                <groupId>net.sourceforge.jexcelapigroupId>
                <artifactId>jxlartifactId>
                <version>${jxl.version}version>
            dependency>

            <dependency>
                <groupId>javax.servletgroupId>
                <artifactId>javax.servlet-apiartifactId>
                <version>${javax.servlet-api.version}version>
                <scope>providedscope>
            dependency>

            <dependency>
                <groupId>javax.servlet.jspgroupId>
                <artifactId>jsp-apiartifactId>
                <version>${jspapi.version}version>
                
            dependency>

            <dependency>
                <groupId>org.apache.tomcatgroupId>
                <artifactId>tomcat-catalinaartifactId>
                <version>${tomcat-catalina.version}version>
                <scope>providedscope>
            dependency>

            
            <dependency>
                <groupId>com.microsoft.sqlservergroupId>
                <artifactId>sqljdbc4artifactId>
                <version>${sqljdbc4.version}version>
            dependency>

            
            <dependency>
                <groupId>com.alibabagroupId>
                <artifactId>druidartifactId>
                <version>${druid.version}version>
            dependency>

            
            <dependency>
                <groupId>com.alibabagroupId>
                <artifactId>dubboartifactId>
                <version>${dubbo.version}version>
                <exclusions>
                    <exclusion>
                        <artifactId>springartifactId>
                        <groupId>org.springframeworkgroupId>
                    exclusion>
                exclusions>
            dependency>

            <dependency>
                <groupId>org.apache.zookeepergroupId>
                <artifactId>zookeeperartifactId>
                <version>${zookeeper.version}version>
            dependency>

            <dependency>
                <groupId>com.101tecgroupId>
                <artifactId>zkclientartifactId>
                <version>${zkclient.version}version>
            dependency>

            
            <dependency>
                <groupId>com.google.injectgroupId>
                <artifactId>guiceartifactId>
                <version>${guice.version}version>
            dependency>

            <dependency>
                <groupId>org.springframework.datagroupId>
                <artifactId>spring-data-hadoopartifactId>
                <version>${spring-data-hadoop.version}version>
            dependency>

            <dependency>
                <groupId>org.springframework.datagroupId>
                <artifactId>spring-data-hadoop-hbaseartifactId>
                <version>${spring-data-hadoop-hbase.version}version>
            dependency>

            <dependency>
                <groupId>org.apache.hbasegroupId>
                <artifactId>hbase-clientartifactId>
                <version>${hbase-client.version}version>
            dependency>

            <dependency>
                <groupId>org.apache.httpcomponentsgroupId>
                <artifactId>httpclientartifactId>
                <version>${httpclient.version}version>
            dependency>

            <dependency>
                <groupId>commons-httpclientgroupId>
                <artifactId>commons-httpclientartifactId>
                <version>${commons-httpclient.version}version>
            dependency>

            <dependency>
                <groupId>org.apache.httpcomponentsgroupId>
                <artifactId>httpcoreartifactId>
                <version>${httpcore.version}version>
            dependency>

            <dependency>
                <groupId>com.alibabagroupId>
                <artifactId>fastjsonartifactId>
                <version>1.1.39version>
            dependency>
            <dependency>
                <groupId>org.codehaus.jacksongroupId>
                <artifactId>jackson-core-aslartifactId>
                <version>1.9.13version>
            dependency>
            <dependency>
                <groupId>org.codehaus.jacksongroupId>
                <artifactId>jackson-mapper-aslartifactId>
                <version>1.9.13version>
            dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.coregroupId>
                <artifactId>jackson-coreartifactId>
                <version>${jackson-databind.version}version>
            dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.coregroupId>
                <artifactId>jackson-databindartifactId>
                <version>${jackson-databind.version}version>
            dependency>

            
            <dependency>
                <groupId>com.github.pagehelpergroupId>
                <artifactId>pagehelperartifactId>
                <version>${pagehelper.version}version>
            dependency>
            <dependency>
                <groupId>com.github.jsqlparsergroupId>
                <artifactId>jsqlparserartifactId>
                <version>${jsqlparser.version}version>
            dependency>

            
            <dependency>
                <groupId>com.github.abel533groupId>
                <artifactId>mapperartifactId>
                <version>${mapper.version}version>
            dependency>

            
            <dependency>
                <groupId>com.belerwebgroupId>
                <artifactId>pinyin4jartifactId>
                <version>${pinyin4j.version}version>
            dependency>

            <dependency>
                <groupId>com.thoughtworks.xstreamgroupId>
                <artifactId>xstreamartifactId>
                <version>${xstream.version}version>
            dependency>

            
            <dependency>
                <groupId>javax.servletgroupId>
                <artifactId>jstlartifactId>
                <version>${jstl.version}version>
            dependency>

            <dependency>
                <groupId>taglibsgroupId>
                <artifactId>standardartifactId>
                <version>${standard.version}version>
            dependency>

            
            <dependency>
                <groupId>org.freemarkergroupId>
                <artifactId>freemarkerartifactId>
                <version>${freemarker.version}version>
            dependency>

            <dependency>
                <groupId>org.slf4jgroupId>
                <artifactId>jcl-over-slf4jartifactId>
                <version>${slf4j.version}version>
            dependency>

            <dependency>
                <groupId>org.slf4jgroupId>
                <artifactId>slf4j-log4j12artifactId>
                <version>${slf4j.version}version>
            dependency>


            <dependency>
                <groupId>dom4jgroupId>
                <artifactId>dom4jartifactId>
                <version>${dom4j.version}version>
            dependency>

            <dependency>
                <groupId>junitgroupId>
                <artifactId>junitartifactId>
                <version>${junit.version}version>
                <scope>testscope>
            dependency>

            <dependency>
                <groupId>jdk.toolsgroupId>
                <artifactId>jdk.toolsartifactId>
                <version>${jdk.tools.version}version>
                <scope>systemscope>
                <systemPath>${env.JAVA_HOME}/lib/tools.jarsystemPath>
            dependency>
        dependencies>
    dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-coreartifactId>
            <exclusions>
                <exclusion>
                    <groupId>commons-logginggroupId>
                    <artifactId>commons-loggingartifactId>
                exclusion>
            exclusions>
        dependency>
        <dependency>
            <groupId>org.slf4jgroupId>
            <artifactId>jcl-over-slf4jartifactId>
        dependency>
        <dependency>
            <groupId>org.slf4jgroupId>
            <artifactId>slf4j-log4j12artifactId>
        dependency>



        <dependency>
            <groupId>dom4jgroupId>
            <artifactId>dom4jartifactId>
        dependency>

        <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-contextartifactId>
        dependency>

        <dependency>
            <groupId>com.alibabagroupId>
            <artifactId>fastjsonartifactId>
        dependency>


        <dependency>
            <groupId>com.fasterxml.jackson.coregroupId>
            <artifactId>jackson-databindartifactId>
        dependency>

        <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-testartifactId>
            <scope>testscope>
        dependency>

        <dependency>
            <groupId>junitgroupId>
            <artifactId>junitartifactId>
            <scope>testscope>
        dependency>

        <dependency>
            <groupId>org.apache.commonsgroupId>
            <artifactId>commons-dbcp2artifactId>
            <scope>testscope>
        dependency>

        <dependency>
            <groupId>redis.clientsgroupId>
            <artifactId>jedisartifactId>
            <scope>testscope>
        dependency>

        <dependency>
            <groupId>org.apache.httpcomponentsgroupId>
            <artifactId>httpclientartifactId>
        dependency>

        <dependency>
            <groupId>commons-httpclientgroupId>
            <artifactId>commons-httpclientartifactId>
        dependency>

        <dependency>
            <groupId>org.apache.httpcomponentsgroupId>
            <artifactId>httpcoreartifactId>
        dependency>
    dependencies>

    
    <build>
        
        
        
    build>

project>

你可能感兴趣的:(#,maven/ant打包)