zno2

2016年8月2日 #

部署到私服

摘要: eclipse 中 执行 Goals: deploy:deploy 报错: 查询原因是: http://stackoverflow.com/questions/6308162/maven-the-packaging-for-this-project-did-not-assign-a-file-to- 阅读全文

posted @ 2016-08-02 22:19 zno2 阅读(418) 评论(0) 推荐(0) 编辑

Proxy Hosted Virtual

摘要: http://books.sonatype.com/nexus-book/reference/confignx-sect-manage-repo.html Public Repositories 对外地址 http://192.168.0.244:8081/nexus/content/groups/ 阅读全文

posted @ 2016-08-02 22:18 zno2 阅读(267) 评论(0) 推荐(0) 编辑

nexus 私服跑一跑流程

摘要: 尝试建立新项目上传,分享 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http 阅读全文

posted @ 2016-08-02 22:18 zno2 阅读(420) 评论(0) 推荐(0) 编辑

nexus 下载及安装

摘要: 一、下载 nexus maven http://www.sonatype.org/ http://www.sonatype.org/nexus/ http://www.sonatype.org/nexus/go/ https://sonatype-download.global.ssl.fastly 阅读全文

posted @ 2016-08-02 22:17 zno2 阅读(1566) 评论(0) 推荐(0) 编辑

nexus 参考文档

摘要: 参考文档: http://books.sonatype.com/nexus-book/reference/index.html E:\e\nexus\nexus-2.12.0-01\conf\nexus.properties 配置文件: # Sonatype Nexus# # This is the 阅读全文

posted @ 2016-08-02 22:17 zno2 阅读(377) 评论(0) 推荐(0) 编辑

nexus 组件下载和上传

摘要: 一、 重写 super pom 修改 maven 的 settings.xml Configuring Maven to Use a Single Repository Group 补充: 目的是只使用nexus http://maven.apache.org/ref/3.0.4/maven-mod 阅读全文

posted @ 2016-08-02 22:17 zno2 阅读(653) 评论(0) 推荐(0) 编辑

17)maven-surefire-plugin

摘要: http://maven.apache.org/surefire/maven-surefire-plugin/ Goals Overview The Surefire Plugin has only one goal: surefire:test runs the unit tests of an 阅读全文

posted @ 2016-08-02 22:16 zno2 阅读(192) 评论(0) 推荐(0) 编辑

maven项目诡异的问题

摘要: install 的 war包中 dao 文件夹下没有xml文件 解决:重新注册为maven项目 阅读全文

posted @ 2016-08-02 22:16 zno2 阅读(113) 评论(0) 推荐(0) 编辑

13) Developing Java Plugins

摘要: 官方指导 http://maven.apache.org/guides/plugin/guide-java-plugin-development.html http://maven.apache.org/plugin-developers/ 插件命名公约和 Apache Maven 商标 maven 阅读全文

posted @ 2016-08-02 22:15 zno2 阅读(839) 评论(0) 推荐(0) 编辑

15) maven dependency scope

摘要: Dependency Scope Dependency scope is used to limit the transitivity of a dependency, and also to affect the classpath used for various build tasks. Th 阅读全文

posted @ 2016-08-02 22:15 zno2 阅读(85) 评论(0) 推荐(0) 编辑

16)maven lifecycle

摘要: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html http://maven.apache.org/ref/3.3.9/maven-core/lifecycles.html https://ma 阅读全文

posted @ 2016-08-02 22:15 zno2 阅读(175) 评论(0) 推荐(0) 编辑

11) 生成可执行jar文件 maven-shade-plugin

摘要: 搜索 site:maven.apache.org maven-assembly-plugin http://maven.apache.org/plugins/maven-assembly-plugin/usage.html All goals except assembly:single have 阅读全文

posted @ 2016-08-02 22:14 zno2 阅读(558) 评论(0) 推荐(0) 编辑

12) maven-compiler-plugin

摘要: The Compiler Plugin is used to compile the sources of your project. At present the default source setting is 1.5 and the default target setting is 1.5 阅读全文

posted @ 2016-08-02 22:14 zno2 阅读(315) 评论(0) 推荐(0) 编辑

14)settings.xml

摘要: 1. User Level. ${user.home}/.m2/settings.xml 2. Global Level. ${maven.home}/conf/settings.xml <settings> </settings> <?xml version="1.0" encoding="UTF 阅读全文

posted @ 2016-08-02 22:14 zno2 阅读(158) 评论(0) 推荐(0) 编辑

8) pom.xml

摘要: http://maven.apache.org/ref/3.3.3/maven-model/maven.html 执行mvn命令的时候默认文件名pom.xml 也可以通过 -f 指定 比如 mvn -f mypom.xml clean <xs:schema xmlns:xs="http://www. 阅读全文

posted @ 2016-08-02 22:13 zno2 阅读(1163) 评论(0) 推荐(0) 编辑

10) 常用坐标

摘要: 4.0.0 cn.zno D 1.0 org.springframework spring-context 4.1.6.RELEASE ... 阅读全文

posted @ 2016-08-02 22:13 zno2 阅读(152) 评论(0) 推荐(0) 编辑

9) 依赖查询 & 镜像站 阿里云 repositories

摘要: 依赖查询 http://mvnrepository.com/ Maven仓库查询 http://search.maven.org 仓库 如果使用中央仓库 Eclipse 极有可能会卡死 以下是国内镜像库 a 阿里云 https://maven.aliyun.com/mvn/guide <reposi 阅读全文

posted @ 2016-08-02 22:13 zno2 阅读(504) 评论(0) 推荐(0) 编辑

7) mvn dependency:tree

摘要: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html mvn dependency:tree 查看 去除第三方jar中引用 阅读全文

posted @ 2016-08-02 22:12 zno2 阅读(307) 评论(0) 推荐(0) 编辑

6) mvn archetype:create-from-project

摘要: cd %old%mvn archetype:create-from-projectcd %old%/target/generated-sources/archetype mvn installcd %newParent% mvn archetype:generate -DarchetypeCatal 阅读全文

posted @ 2016-08-02 22:12 zno2 阅读(464) 评论(0) 推荐(0) 编辑

4) Maven 安装

摘要: # # Maven2 Start Up Batch script## Required ENV vars:# # JAVA_HOME - location of a JDK home dir## Optional ENV vars# # M2_HOME - location of maven2's 阅读全文

posted @ 2016-08-02 22:11 zno2 阅读(220) 评论(0) 推荐(0) 编辑

导航