使用snoatype nexus搭建自己的maven私服
来源:互联网 发布:清除sql挂起 编辑:程序博客网 时间:2024/05/20 18:45
apache-maven3.0.4的conf/setting.xml中
<?xml version="1.0" encoding="UTF-8"?><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"> <servers> <server> <id>nexus-releases</id> <username>admin</username> <password>admin123</password> </server> <server> <id>nexus-snapshots</id> <username>admin</username> <password>admin123</password> </server> </servers> <mirrors> <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <name>Nexus Mirror</name> <url>http://localhost:8081/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>nexus-releases</id> <name>local private nexus</name> <url>http://localhost:8081/nexus/content/groups/public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository><repository> <id>nexus-snapshots</id> <name>local private nexus</name> <url>http://localhost:8081/nexus/content/groups/public-snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus-releases</id> <name>local private nexus</name> <url>http://localhost:8081/nexus/content/groups/public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </pluginRepository> <pluginRepository> <id>nexus-snapshots</id> <name>local private nexus</name> <url>http://localhost:8081/nexus/content/groups/public-snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <!-- activeProfiles | List of profiles that are active for all builds. |--> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles> </settings>
项目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>tudouSystem</groupId><artifactId>tudouSystem</artifactId><version>0.0.1-SNAPSHOT</version><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><distributionManagement><repository><id>nexus-releases</id><name>Nexus Release Repository</name><url>http://localhost:8081/nexus/content/repositories/releases/</url></repository><snapshotRepository><id>nexus-snapshots</id><name>Nexus Snapshot Repository</name><url>http://localhost:8081/nexus/content/repositories/snapshots/</url></snapshotRepository></distributionManagement><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>2.0.2</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>2.5</version></plugin><!-- 打包时不进行junit测试 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><skip>true</skip></configuration><version>2.12</version></plugin><plugin><groupId>maven</groupId><artifactId>maven-clover-plugin</artifactId><version>2.4.2</version></plugin></plugins><defaultGoal>compile</defaultGoal></build></project>
- 使用snoatype nexus搭建自己的maven私服
- maven+snoatype nexus+jrebel+eclipse+tomcat整合的小例子
- maven+snoatype nexus+jrebel+eclipse+tomcat整合的小例子
- 使用nexus-3.0.2-02-win64搭建自己的Maven nexus私服
- 使用 Gradle 和 Sonatype Nexus 搭建自己的 Maven 仓库
- 使用 Gradle 和 Sonatype Nexus 搭建自己的 Maven 仓库
- 使用 Gradle 和 Sonatype Nexus 搭建自己的 Maven 仓库
- Maven私服Nexus的搭建及使用
- nexus 使用Nexus搭建Maven私服
- 使用nexus搭建maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- 使用Nexus搭建Maven私服
- SCM软件配置管理 (二) SVN管理平台搭建以及详细设置
- 成员服务器与独立服务器
- linux设备驱动归纳总结(六):2.分享中断号
- Android中的Selector
- openstack单机ubuntu虚拟机环境安装部署经验及源码结构简单介绍(适合入门者)
- 使用snoatype nexus搭建自己的maven私服
- HTML5 WebSockets 基础使用教程
- linux设备驱动归纳总结(六):3.中断下半部之tasklet
- type="button"和type="submit"的区别
- Oracle 对象类型(Object)
- linux设备驱动归纳总结(六):3.中断下半部之工作队列
- linux设备驱动归纳总结(七):1.时间管理与内核延时
- hdu 4027 线段树+根号
- 为线性代数做一个临时性的节点