流易

日日行,不怕千万里;常常做,不怕千万事。(https://github.com/poazy)

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Maven

摘要:jaxb-bindings.xml配置: 转载: https://stackoverflow.com/questions/21287429/unable-to-generate-java-util-calendar-from-xsd-getting-xmlgregoriancalendar http 阅读全文
posted @ 2018-07-02 16:43 流易 阅读(425) 评论(0) 推荐(0)

摘要:org.apache.cxf cxf-codegen-plugin 3.2.4 generate-sources-w2j generate-sources src/main/java ... 阅读全文
posted @ 2018-06-30 08:18 流易 阅读(596) 评论(0) 推荐(0)

摘要:添加-xjc-Xxew解决,同时还要给插件添加相应的jar包,如下: 转载:https://stackoverflow.com/questions/33667462/cxf-wsdl2java-listwrapper-in-wsdl-should-be-unwrapped 阅读全文
posted @ 2018-06-30 08:04 流易 阅读(348) 评论(0) 推荐(0)

摘要:添加要bindingFile的jaxb配置文件,如下: 引入bindingFile的jaxb配置文件,如下: 转载:https://stackoverflow.com/questions/12508741/jaxb-generating-jaxbelementstring-instead-of-st 阅读全文
posted @ 2018-06-30 07:56 流易 阅读(597) 评论(0) 推荐(0)

摘要:1、settings.xml (向私服上传资源需要) 2、pom.xml (配置repository:私服库代理中央仓库需要) (配置snapshotRepository、repository:SNAPSHOT包上专需要、RELEASES包上传需要) 3、第三方资源上传到私服库 阅读全文
posted @ 2018-06-13 14:03 流易 阅读(458) 评论(0) 推荐(0)

摘要:创建结果如下: 阅读全文
posted @ 2018-06-13 13:48 流易 阅读(3532) 评论(0) 推荐(1)

摘要:注意事务: -DrepositoryId=lutao-maven-nexus 参数值lutao-maven-nexus对应Maven中settings.xml的认证配的ID,如下: 阅读全文
posted @ 2018-06-13 13:33 流易 阅读(646) 评论(1) 推荐(0)

摘要:org.apache.cxf cxf-codegen-plugin 3.2.4 generate-sources-w2j generate-sources src/main/java ... 阅读全文
posted @ 2018-06-11 16:22 流易 阅读(663) 评论(0) 推荐(0)

摘要:maven-public maven-public maven-public http://127.0.0.1:8081/repository/maven-public/ public maven-public maven-public私服 http://127.0.0.1:8081/reposit... 阅读全文
posted @ 2017-06-03 22:30 流易 阅读(722) 评论(0) 推荐(0)

摘要:1、配置M2_HOME/conf/settions.xml 2、配置需要下载jar包的项目的pom.xml 阅读全文
posted @ 2017-05-30 23:50 流易 阅读(1998) 评论(0) 推荐(0)

摘要:<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirro 阅读全文
posted @ 2017-05-30 16:45 流易 阅读(41134) 评论(0) 推荐(1)

摘要:1、认证,在M2_HOME/conf/settings.xml配置用户名密码 2、在将要上传项目的pom.xml中配置jar包上传路径url 3、执行命令发布项目到私服(上传jar包到私服上) mvn deploy 阅读全文
posted @ 2017-05-30 16:30 流易 阅读(685) 评论(0) 推荐(0)

摘要:1. 代理仓库(Proxy Repository) 顾名思义是代理第三方仓库的,如: maven-central nuget.org-proxy maven-central nuget.org-proxy 版本策略(Version Policy): Release: 正式版本 Snapshot: 快 阅读全文
posted @ 2017-05-30 09:41 流易 阅读(1425) 评论(0) 推荐(0)

摘要:下载安装包:nexus(https://www.sonatype.com/download-oss-sonatype) 默认用户密码字符串: 阅读全文
posted @ 2017-05-30 08:45 流易 阅读(273) 评论(0) 推荐(0)

摘要:1、运行父工程(父工程将各个子模块聚合到一起) 2、直接运行子模块(Web工程) 阅读全文
posted @ 2017-05-30 07:47 流易 阅读(276) 评论(0) 推荐(0)

摘要:calsspath:仅加载本工程中的配置文件 classpath*:既要加载本工程中配置文件,也要加载jar包中的配置文件 阅读全文
posted @ 2017-05-29 23:55 流易 阅读(162) 评论(0) 推荐(0)

摘要:1、选取父工程创建子模块(Maven Modeule) 2、创建子模块时 Packaging 选 jar 阅读全文
posted @ 2017-05-29 23:32 流易 阅读(198) 评论(0) 推荐(0)

摘要:1、创建Maven工程时 Packaging 选项为 pom 2、父工程目录结构只有pom.xml(父工程不进行编码) 3、需要的依赖信息在父工程中定义,子模块继承 5、将各个子模块聚合到一起 6、将父工程发布到本地仓库 阅读全文
posted @ 2017-05-29 23:21 流易 阅读(682) 评论(0) 推荐(0)

摘要:org.apache.maven.plugins maven-compiler-plugin 1.7 1.7 阅读全文
posted @ 2017-05-29 23:11 流易 阅读(437) 评论(0) 推荐(0)

摘要:A依赖B,B依赖C。B是A的直接依赖,C是A的传递依赖。 1、Maven自己调解原则 先定义者优级先原则,谁先定义就用谁的传递依赖。 路径近者优级先原则,直接依赖级别高高于传递依赖。 2、排除依懒 3、版本锁定(推介使用) 阅读全文
posted @ 2017-05-29 22:44 流易 阅读(175) 评论(0) 推荐(0)