zoukankan      html  css  js  c++  java
  • 本地maven仓库使用及配置

    本地仓库的创建

    下载 nexus-2.11.4-01-bundle.zip 解压并运行C: exus-2.11.4-01-bundle exus-2.11.4-01injswwindows-x86-64console-nexus.bat (不同系统选择不同目录)

    http://127.0.0.1:8081/nexus/登录,admin/admin123

    更新central ,codehanus snapshots,apache snapshots 的download remote index为true,

    如果需要存放自定义的jar包,选择 3rd party, 选择artifact upload,设置好相关信息,选择jar包并上传,在browse index中可以看见成功的jar包及

    xml

    如:

    <dependency>
      <groupId>xiao.chang.wei</groupId>
      <artifactId>xiaotest</artifactId>
      <version>2.0.1</version>
    </dependency>

    将此xml拷贝到pom.xml中即可加载相应的jar包

    本地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.0</modelVersion>
        <groupId>com.xiao</groupId>
        <artifactId>Test001</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>war</packaging>
    
        <properties>
            <argLine>-Dfile.encoding=UTF-8</argLine>
        </properties>
        
        <repositories>
            <repository>
                <id>nexus</id>
                <name>Team Nexus Repository</name>
                <url>http://localhost:8081/nexus/content/groups/public</url>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>nexus</id>
                <name>Team Nexus Repository</name>
                <url>http://localhost:8081/nexus/content/groups/public</url>
            </pluginRepository>
        </pluginRepositories>
    
        <dependencies>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.5</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>xiao.chang.wei</groupId>
                <artifactId>xiaotest</artifactId>
                <version>2.0.1</version>
            </dependency>
        </dependencies>
    
    </project>
  • 相关阅读:
    安卓平台下ARM Mali OpenCL编程-GPU信息检测(转)
    Android 常用的性能分析工具详解:GPU呈现模式, TraceView, Systrace, HirearchyViewer(转)
    windows配置meld
    nginx的学习材料
    nginx+lua组合的web框架
    [转] Linux下防火墙iptables用法规则详及其防火墙配置
    转:关于知乎音视频学习入门的解答
    转: 在创业公司使用C++
    【转】 消息队列设计精要
    转: __asm__ __volatile__内嵌汇编用法简述
  • 原文地址:https://www.cnblogs.com/xiaochangwei/p/4949218.html
Copyright © 2011-2022 走看看