[Maven Settings.xnl 开发最优配置]
来源:互联网 发布:淘宝兼职要身份证干么 编辑:程序博客网 时间:2024/06/12 21:48
<?xml version="1.0" encoding="UTF-8"?><settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <!--本地Maven仓库服务 :SSH相关配置--> <!-- <localRepository>C:\repository</localRepository>--> <!--本地Maven仓库服务 :SSM相关配置--> <!-- <localRepository>C:\.m2\repository</localRepository>--> <!--当前使用:如果使用远程仓库1.不需要指定仓库默认User\用户名\.m2\repository,2.可以指定本地仓库下载位置 --> <localRepository>D:\ALocal\Maven_Jars</localRepository> <pluginGroups></pluginGroups> <proxies></proxies> <!--配置参考: http://www.sojson.com/blog/168.html | Maven基础 http://blog.csdn.net/haohaizijhz/article/details/72841489 | Maven配置多仓库镜像 http://blog.csdn.net/caomiao2006/article/details/40401517 | mirror和repository 区别 http://wiki.jikexueyuan.com/project/intellij-idea-tutorial/maven-skill-introduce.html | IntelliJ IDEA 配合 Maven 的一些技巧 --> <!--阿里云中央Maven云服务--> <mirrors> <mirror> <!--id, name是该镜像的唯一定义符。id用来区分不同的mirror元素。 --> <id>aliyun</id> <name>aliyun maven</name> <!--url是该镜像的URL。构建系统会优先考虑使用该URL,而非使用默认的服务器URL。 --> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <!--<mirrorOf>的值为星号,表示该配置是匹配所有远程仓库。 --> <mirrorOf>*</mirrorOf> </mirror> </mirrors> <!--如果该镜像仓库需要认证,则配置setting.xml中的<server></server>即可。--> <servers></servers> <profiles> <!--1.下载源码的配置--> <profile> <id>aliyun</id> <properties> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </properties> </profile> <!--1.下载源码的配置--> </profiles> <!--当前使用的远程仓库名称--> <activeProfiles> <activeProfile>aliyun</activeProfile> </activeProfiles> <!--当前使用的远程仓库名称--></settings><!-----------------------------------------POM配置------------------------------------><!-- 配置Maven插件将Maven依赖的Jar全部导出到target/lib --> <!-- 将依赖Maven_Jar导出 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> </configuration> </execution> </executions> </plugin>
阅读全文
0 0
- [Maven Settings.xnl 开发最优配置]
- Maven settings.xml 配置
- maven settings配置
- Maven配置 settings.xml
- Maven settings.xml配置
- maven配置settings.xml
- maven学习-settings配置
- maven settings.xml配置
- Maven settings.xml配置
- 【Maven】settings配置了解
- Maven settings配置中的mirrorOf
- Maven配置之settings.xml
- Maven settings.xml 配置详解
- 配置Maven的settings.xml
- Maven配置之settings.xml
- maven的settings.xml配置
- 配置Maven的settings.xml
- Maven settings.xml配置详解
- 怎么彻底删除 免安装版的mysql
- 从零开始学C++之运算符重载(一):以成员函数方式重载、以友元函数方式重载
- 数据预处理之scaling
- Python之正则表达式
- Re+Selenium新手爬取猫眼Top 100
- [Maven Settings.xnl 开发最优配置]
- 欢迎使用CSDN-markdown编辑器
- 决策树和CART决策树
- rxjava2代码实战1--Map操作符
- Hibernate三种持久态
- 7-1 求二叉树的叶子结点个数
- 正向代理与反向代理
- 从乌镇大佬“饭局的诱惑”中我们可以解读出什么?
- Python之面向对象