venusdrogon / feilong-platform Goto Github PK
View Code? Open in Web Editor NEW:gem:all feilong projects's parent
Home Page: http://feitianbenyue.iteye.com/
License: Apache License 2.0
:gem:all feilong projects's parent
Home Page: http://feitianbenyue.iteye.com/
License: Apache License 2.0
site-maven-plugin.message 增加 emoji 🚀
see http://www.techug.com/github-emoji-usage-tips
the method need rename :ParamUtil.getToBeSignedString(Map<String, String> params)
this name 's meaning can't be right, misleading
maven plugin 抽取requestmapping 信息
feilong-common-test 独立版本号
RequestUtil need add Map<String, String> getParameterSingleValueMap(HttpServletRequest request) method
because the getParameterMap return type is Map<String, String[]>
The subsequent operation is not very convenient
springmvc-handlerExceptionResolver.xml
httpcore insteadof httpclient
The Apache Maven team is pleased to announce the release of the Apache
Maven Shade Plugin, version 3.0.0.
This plugin provides the capability to package the artifact in an uber-jar, including its dependencies and to shade – i.e. rename – the packages of some of the dependencies.
You should specify the version in your project’s plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
</plugin>
You can download the appropriate sources etc. from the download page.
You can download the appropriate sources etc. from the download page.
Release Notes – Maven Shade Plugin – Version 3.0.0.
Improvements:
MSHADE-219 – Update XSD location of POM to the new one in POMWriter
MSHADE-224 – Preserve last modified time in resources files.
MSHADE-225 – Writing output only once
MSHADE-232 – Introduce ResourceBundleAppendingTransformer
MSHADE-241 – Groovy extension module transformer
MSHADE-246 – Switch to maven-artifact-transfer to support both Aether implementations
Bugs:
MSHADE-182 – ServicesResourceTransformer incorrectly ignores given Relocators
MSHADE-223 – Endless processing when promoteTransitiveDependencies=true
MSHADE-228 – Shade can incorrectly re-write an InterfaceMethodRef in the constant pool to a MethodRef
MSHADE-237 – ServicesResourceTransformer relocates excluded classes
MSHADE-239 – Shaded Source JAR not following finalName pattern
MSHADE-240 – support relocation pom.properties and pom.xml descriptors in shaded jars
Task:
MSHADE-222 – Dependency updates.
Enjoy,
-The Apache Maven team
研究 spring加载机制
maven-compiler-plugin update to 3.6.0
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12317225&version=12334708
Release Notes - Maven Compiler Plugin - Version 3.6.0
Apache Commons Configuration 2.1.1 发布了。
Apache Commons Configuration 是 Apache 提供的一个组件,用于读取保存有配置参数的 XML 文件。该版本是 Apache Commons Configuration 2.x 的首个维护版,修复了一些 bug,也提供了一些新功能,例如对于 Spring 框架更好的整合。要注意的是,这个组件需要在 Java 1.6 或更高的版本上使用。
更新内容:
bug 修复
改进了在 XMLConfiguration 中由具有定界符字符串的字符串定义的列表的处理。 保存配置时,此类列表现在保留其原始格式。
使 PropertyBuilderParameter 的 IOFactory 属性与最新版本的 Commons BeanUtils 兼容。 此版本更改了以多个大写字母开头的属性的处理。
PropertiesConfiguration 现在可以与自动保存模式正常工作。
如果加载了具有另一个注释的文件,PropertiesConfigurationLayout 不再复制标题注释。
用户指南文档改进。
改进了 FileBased 接口的文档。 Javadocs 现在明确地声明这些方法不应该被客户端代码调用。 实现 FileLocatorAware 的配置类中的异常处理已得到改进。
PropertiesConfiguration 现在可以正确地解除在 Java 属性文件中始终转义的一些特殊字符。
其他更改
在 Commons 配置包的 OSGi 绑定清单中,Spring 包的包导入现在标记为可选。
改进了单元测试中临时文件和文件夹的处理。
将 Commons BeanUtils 的依赖项更新到 1.9.3 版本。 这修复了在使用 ConfigurationBuilder 时记录的异常 stacktrace 的问题。
http://www.apache.org/dist/commons/configuration/RELEASE-NOTES.txt
http://blog.soebes.de/blog/2017/01/20/apache-maven-compiler-plugin-version-3-dot-6-1-released/
The Apache Maven team is pleased to announce the release of the Apache Maven Compiler Plugin
, version 3.6.1
.
The Compiler Plugin is used to compile the sources of your project.
Attention: Starting with version 3.5, the maven-compiler-plugin requires Maven 3 and won’t work with Maven 2 anymore.
You should specify the version in your project’s plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
</plugin>
Most important change is the support for test-compile when using JDK 9 build b148+
Release Notes – Maven Compiler Plugin – Version 3.6.1
Bugs:
MCOMPILER-282 – Remove link to non-existing Codehaus wiki
MCOMPILER-284 – maven.test.skip doesn’t skip test compilation
MCOMPILER-287 – Adjust documentation module-info
Documentation:
MCOMPILER-281 – Remove reference to Maven 1’s Java plugin
Improvement:
MCOMPILER-285 – Support test-compile for JDK 9 build b148+
https://www.oschina.net/news/81618/logback-1-1-10
https://logback.qos.ch/news.html
ogback 1.1.10 发布了。Logback 是由 log4j 创始人设计的又一个开源日志组件。logback 当前分成三个模块:logback-core、logback- classic 和 logback-access。logback-core 是其它两个模块的基础模块。logback-classic 是 log4j 的一个改良版本。此外 logback-classic 完整实现 SLF4J API 使你可以很方便地更换成其它日志系统如 log4j 或 JDK14 Logging。logback-access 访问模块与 Servlet 容器集成提供通过 Http 来访问日志的功能。
该版本提高吞吐量的几项更改:
OutputStreamAppender 中的 ReentrantLock 现在是 “unfair”
FileAppender 现在提供 bufferSize 选项
代码的关键部分现在使用 COWArrayList,这是一个定制开发的无分配的无锁线程安全实现的 {@link List} 接口
在 PatternLayoutBase 中,相同的 StringBuilder 被反复使用以减少内存分配
各项更改的详细说明及完整更新内容请查看发行日志
下载地址:
Source code (zip)
Source code (tar.gz)
maven-pmd-plugin update to 3.7
Release Notes - Maven PMD Plugin - Version 3.7
maven plugin 检查配置文件
aspectjweaver 的依赖移走 使用不多
移到spring 里面去
spring profile课程
貌似直接跳过了 3.0.6
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.tiles%22%20AND%20a%3A%22tiles-jsp%22
Release Notes - Tiles - Version 3.0.7
v.maven-site-plugin upgrade to 3.6
Release Notes - Maven Site Plugin - Version 3.6
add feilong-platform-repository for dev
有很多小伙伴自己下载代码 准备玩 mvn install
但是目前找不到 test 会报错
SLF4J 1.7.22 发布了,SLF4J 是为各种 loging APIs 提供一个简单统一的接口,从而使得最终用户能够在部署的时候配置自己希望的 loging APIs 实现。
更新内容:
December 13th, 2016 - Release of SLF4J 1.7.22
license-maven-plugin upgrade to 3.0
logback 1.2.0 发布了。logback 是由 log4j 创始人设计的又一个开源日志组件。logback 当前分成三个模块:logback-core、logback- classic 和 logback-access。logback-core 是其它两个模块的基础模块。logback-classic 是 log4j 的一个改良版本。此外 logback-classic 完整实现 SLF4J API 使你可以很方便地更换成其它日志系统如 log4j 或 JDK14 Logging。logback-access 访问模块与 Servlet 容器集成提供通过 Http 来访问日志的功能。
更新内容:
此版本修复了 SocketServer 和 ServerSocketReceiver 中相当严重的序列化漏洞。 运行这些组件的用户应立即升级。
编码器接口已更改,这种简化允许更细粒度的锁定,从而显着提高性能。
在 TimeBasedRollingPolicy 中,修复了 totalSizeCap 大于2 ^ 31的问题。
Logback-classic 现在首先搜索 logback-test.xml 文件,然后搜索 logback.groovy second 和 logback.xml。
更多详情查看发行日志
https://www.oschina.net/news/79830/logback-1-1-8
更新内容:
org.slf4j.impl.StaticLoggerBinder
class shipping in logback-classic no longer catches Throwable but Exception. This change was requested in LOGBACK-1159BeanDescriptionFactory
no longer outputs a superflous warning message in case the class contains bridgger methods. This fixes LOGBACK-1164reporting plugins 移除maven-javadoc-plugin
多耗时间,
单独执行即可
https://www.oschina.net/news/80252/spring-4-3-5-and-4-2-9-and-3-2-18
Release Notes - Spring Framework - Version 3.2.18
https://jira.spring.io/secure/ReleaseNote.jspa?projectId=10000&version=15566
logback 添加 SMTPAppender
ClipboardUtil and ScreenShotUtil no need in com.feilong.commons.core.awt.toolkit package
reason:
logback 1.2.1 发布,Java 日志框架
ogback 1.2.1 发布了。
logback 是由 log4j 创始人设计的又一个开源日志组件。logback 当前分成三个模块:logback-core、logback- classic 和 logback-access。logback-core 是其它两个模块的基础模块。logback-classic 是 log4j 的一个改良版本。此外 logback-classic 完整实现 SLF4J API 使你可以很方便地更换成其它日志系统如 log4j 或 JDK14 Logging。logback-access 访问模块与 Servlet 容器集成提供通过 Http 来访问日志的功能。
更新内容:
为了确保配置文件的向后兼容性,为 LayoutWrappingEncoder
设置的 immediateFlush
属性将传播到封装的 OutputStreamAppender
。
https://logback.qos.ch/news.html
February 9th, 2017, Release of version 1.2.1
To ensure backward compatibility of configuration files, the immediateFlush property set for a LayoutWrappingEncoder
is propagated to the enclosing OutputStreamAppender
.
feilong-net-filetransfer 貌似在两个定时任务同时发跑的情况下会出现异常
1011 15:20:00 ERROR (SysEmailExportManagerImpl.java:172) writeData() - 文件生成结果:0
1011 15:20:00 INFO (SFTPFileTransfer.java:117) connect() - connect [sftp]:[true]
1011 15:20:00 INFO (AbstractFileTransfer.java:141) checkOrMkdirs() - begin checkOrMkdirs remoteDirectory:[/upload_test/GW/08VIP/]
1011 15:20:01 INFO (SFTPFileTransfer.java:117) connect() - connect [sftp]:[true]
1011 15:20:01 INFO (AbstractFileTransfer.java:391) downloadDontClose() - remotePath:/upload_test/GW/08VIP/Staff_20161011.CSV will be download to filePath:/home/vmuser/staff_backup_gw/Staff_20161011.CSV
1011 15:20:01 INFO (SFTPFileTransfer.java:117) connect() - connect [sftp]:[true]
1011 15:20:01 INFO (AbstractFileTransfer.java:141) checkOrMkdirs() - begin checkOrMkdirs remoteDirectory:[/upload_test/GW/08VIP/]
1011 15:20:01 WARN (AbstractFileTransfer.java:146) checkOrMkdirs() - can't cd:[/upload_test/GW/08VIP/],cause by:[],will try [mkdirs]~~
1011 15:20:01 ERROR (SFTPFileTransfer.java:308) downRemoteSingleFile() -
com.jcraft.jsch.SftpException: RequestQueue: unknown request id 1852055663
at com.jcraft.jsch.ChannelSftp$RequestQueue.get(ChannelSftp.java:1220)
at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:1068)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1006)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:984)
at com.feilong.tools.net.filetransfer.sftp.SFTPFileTransfer.downRemoteSingleFile(SFTPFileTransfer.java:305)
at com.feilong.tools.net.filetransfer.AbstractFileTransfer.downloadDontClose(AbstractFileTransfer.java:392)
at com.feilong.tools.net.filetransfer.AbstractFileTransfer.download(AbstractFileTransfer.java:86)
at com.store.manager.member.impl.StaffMemberImportManagerImpl.importStaffDate(StaffMemberImportManagerImpl.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy527.importStaffDate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:312)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:114)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
1011 15:20:01 INFO (StaffMemberImportManagerImpl.java:123) importStaffDate() - Exception:
com.feilong.tools.net.filetransfer.FileTransferException: 4: RequestQueue: unknown request id 1852055663
at com.feilong.tools.net.filetransfer.sftp.SFTPFileTransfer.downRemoteSingleFile(SFTPFileTransfer.java:309)
at com.feilong.tools.net.filetransfer.AbstractFileTransfer.downloadDontClose(AbstractFileTransfer.java:392)
at com.feilong.tools.net.filetransfer.AbstractFileTransfer.download(AbstractFileTransfer.java:86)
at com.store.manager.member.impl.StaffMemberImportManagerImpl.importStaffDate(StaffMemberImportManagerImpl.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy527.importStaffDate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:312)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:114)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: com.jcraft.jsch.SftpException: RequestQueue: unknown request id 1852055663
at com.jcraft.jsch.ChannelSftp$RequestQueue.get(ChannelSftp.java:1220)
at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:1068)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1006)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:984)
at com.feilong.tools.net.filetransfer.sftp.SFTPFileTransfer.downRemoteSingleFile(SFTPFileTransfer.java:305)
... 25 common frames omitted
https://www.oschina.net/news/80690/jsoup-1-10-2
jsoup 1.10.2 发布了,该版本带来了更快的启动时间,扩展 DOM 树的遍历,提升了 HTTP 兼容性以及修复了一些 bug。
详情包括:
Improvements
Improved startup time, particularly on Android, by reducing garbage generation and CPU execution time when loading the HTML entity files. About 1.72x faster in this area.
Added Element.is(query) to check if an element matches this CSS query.
Added new methods to Elements: next(query), nextAll(query), prev(query), prevAll(query) to select next and previous element siblings from a current selection, with optional selectors.
Added Node.root() to get the topmost ancestor of a Node.
Added the new selector :containsData(), to find elements that hold data, like script and style tags.
Changed Jsoup.isValid(bodyHtml) to validate that the input contains only body HTML that is safe according to the whitelist, and does not include HTML errors. And in the Jsoup.Cleaner.isValid(Document) method, make sure the doc only includes body HTML.
In Whitelists, validate that a removed protocol exists before removing said protocol.
Allow the Jsoup.Connect thread to be interrupted when reading the input stream; helps when reading from a long stream of data that doesn't read timeout.
Jsoup.Connect now uses a desktop user agent by default. Many developers were getting caught by not specifying the user agent, and sending the default Java. That causes many servers to return different content than what they would to a desktop browser, and what the developer was expecting.
Increased the default connect/read timeout in Jsoup.Connect to 30 seconds.
Jsoup.Connect now detects if a header value is actually in UTF-8 vs the HTTP spec of ISO-8859, and converts the header value appropriately. This improves compatibility with servers that are configured incorrectly.
Fixes
下载地址:https://jsoup.org/download
相关链接
jsoup 的详细介绍:点击查看
jsoup 的下载地址: 点击下载
stfp com.jcraft.jsch.JSchException: connection is closed by foreign host
今天某商城 使用出现了以下的异常
1013 04:00:00 ERROR (SFTPFileTransfer.java:122) connect() - sftpFileTransferConfig: {
"port": 22,
"sshConfig": {"StrictHostKeyChecking": "no"},
"userName": "columbia",
"hostName": "********",
"password": "******",
"sessionTimeout": 120000
},by:connection is closed by foreign host
com.jcraft.jsch.JSchException: connection is closed by foreign host
at com.jcraft.jsch.Session.connect(Session.java:269)
at com.jcraft.jsch.Session.connect(Session.java:183)
at com.feilong.tools.net.filetransfer.sftp.SFTPUtil.connectSession(SFTPUtil.java:76)
at com.feilong.tools.net.filetransfer.sftp.SFTPFileTransfer.connect(SFTPFileTransfer.java:108)
at com.feilong.tools.net.filetransfer.AbstractFileTransfer.download(AbstractFileTransfer.java:83)
at com.store.manager.member.impl.MemberImportManagerImpl.readViplist(MemberImportManagerImpl.java:156)
at com.store.manager.member.impl.MemberImportManagerImpl.importVIPstaff(MemberImportManagerImpl.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy533.importVIPstaff(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
sftp 下载的时候,好像需要本地目录存在
测试代码:
@Test
public void downloadFile(){
String[] remotePaths = {
"/upload/Inbound/InventoryAdjustments/Archive/2016-07-15_11-58-58.389-INVENTORY_ADJUSTMENTS_3PL_20160715-154626-073.XML",
"/upload/Inbound/InventoryAdjustments/Archive/2016-07-22_10-46-00.318-INVENTORY_ADJUSTMENTS_3PL_20160722-144626-073.XML" };
String localAbsoluteDirectoryPath = "E:\\test\\1";
fileTransfer.download(localAbsoluteDirectoryPath, remotePaths);
}
当本地目录不存在的时候,会出现 FileNotFoundException
和注释里面的描述不一致
velocity log
see http://blog.csdn.net/remote_roamer/article/details/53162905
在maven项目中使用 Versions Maven Plugin 支持
...
<build>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
...
</plugins>
...
</build>
...
然后运行mvn命令 ,获取更新信息
mvn versions:display-dependency-updates
主页: http://www.mojohaus.org/versions-maven-plugin/
Goals Overview
The Versions Plugin has the following goals.
versions:compare-dependencies
compares the dependency versions of the current project to the dependency management section of a remote project.versions:display-dependency-updates
scans a project's dependencies and produces a report of those dependencies which have newer versions available.versions:display-plugin-updates
scans a project's plugins and produces a report of those plugins which have newer versions available.versions:display-property-updates
scans a projectand produces a report of those properties which are used to control artifact versions and which properies have newer versions available.versions:update-parent
updates the parent section of a project so that it references the newest available version. For example, if you use a corporate root POM, this goal can be helpful if you need to ensure you are using the latest version of the corporate root POM.versions:update-properties
updates properties defined in a project so that they correspond to the latest available version of specific dependencies. This can be useful if a suite of dependencies must all be locked to one version.versions:update-property
Sets a property to the latest version in a given range of associated artifacts.versions:update-child-modules
updates the parent section of the child modules of a project so the version matches the version of the current project. For example, if you have an aggregator pom that is also the parent for the projects that it aggregates and the children and parent versions get out of sync, this mojo can help fix the versions of the child modules. (Note you may need to invoke Maven with the -N option in order to run this goal if your project is broken so badly that it cannot build because of the version mis-match).versions:lock-snapshots
searches the pom for all -SNAPSHOT versions and replaces them with the current timestamp version of that -SNAPSHOT, e.g. -20090327.172306-4versions:unlock-snapshots
searches the pom for all timestamp locked snapshot versions and replaces them with -SNAPSHOT.versions:resolve-ranges
finds dependencies using version ranges and resolves the range to the specific version being used.versions:set
can be used to set the project version from the command line.versions:use-releases
searches the pom for all -SNAPSHOT versions which have been released and replaces them with the corresponding release version.versions:use-next-releases
searches the pom for all non-SNAPSHOT versions which have been a newer release and replaces them with the next release version.versions:use-latest-releases
searches the pom for all non-SNAPSHOT versions which have been a newer release and replaces them with the latest release version.versions:use-next-snapshots
searches the pom for all non-SNAPSHOT versions which have been a newer -SNAPSHOT version and replaces them with the next -SNAPSHOT version.versions:use-latest-snapshots
searches the pom for all non-SNAPSHOT versions which have been a newer -SNAPSHOT version and replaces them with the latest -SNAPSHOT version.versions:use-next-versions
searches the pom for all versions which have been a newer version and replaces them with the next version.versions:use-latest-versions
searches the pom for all versions which have been a newer version and replaces them with the latest version.versions:commit
removes the pom.xml.versionsBackup files. Forms one half of the built-in "Poor Man's SCM".versions:revert
restores the pom.xml files from the pom.xml.versionsBackup files. Forms one half of the built-in "Poor Man's SCM".http://blog.soebes.de/blog/2016/12/10/apache-maven-resources-plugin-version-3-dot-0-2-released/
Apache Maven Resources Plugin Version 3.0.2 Released
DEC 10TH, 2016 | COMMENTS
The Apache Maven team is pleased to announce the release of the Apache Maven Resources Plugin, Version 3.0.2.
Important Note:
Bugs:
MRESOURCES-233 – Upgrade of plexus-interpolation 1.24 to correct escaping issue.
MRESOURCES-234 – Upgrade of commons-io to 2.5 and correction of invalid scope.
Task:
MRESOURCES-235 – Revert enabling escaping by default introduced in 3.0.0.
Enjos,
-The Apache Maven team
Posted by Karl-Heinz Marbaise Dec 10th, 2016 BM, Maven, Maven-Plugin-Releases, Maven-Plugins, Neuigkeiten
Tweet
SolrException 和 log4j的格式结合起来使用
ajax 分页 封装
pluginManagement 增加 maven-assembly-plugin
这个插件的使用场景比较多
增加这个插件统一管理
Jsoup 1.10.1
发布了
Jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。
它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。
更新内容如下:
改进
修复
http://commons.apache.org/proper/commons-lang/release-notes/RELEASE-NOTES-3.5.txt
Apache Commons Lang
Version 3.5
Release Notes
INTRODUCTION:
Commons Lang 3.5 at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html
http://blog.soebes.de/blog/2016/12/16/apache-maven-dependency-plugin-version-3-dot-0-0-released/
The Apache Maven team is pleased to announce the release of the Apache Maven Dependecy Plugin
, version 3.0.0.
The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositories to a specified location.
https://maven.apache.org/plugins/maven-dependency-plugin/
You should specify the version in your project’s plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
</plugin>
You can download the appropriate sources etc. from the download page:
https://maven.apache.org/plugins/maven-dependency-plugin/download.cgi
Release Notes – Maven Dependency Plugin – Version 3.0.0
Bugs:
Documentation:
Improvements:
New Features:
Tasks:
Enjoy,
-The Apache Maven team
maven-changes-plugin update to 2.12.1
Release Notes - Maven Changes Plugin - Version 2.12.1
com.feilong.xml.dom.DomUtil 重命名
util通常是静态方法, 这里是需要构造的
所以 重命名成 DomParser比较好
FileTransfer.getFileEntityMap(String, String[]) 参数改成动态数组
现在是
/**
* 获得某特定文件夹下面指定文件名相关信息.
*
* @param remotePath
* 远程地址
* @param fileNames
* 文件名称组
* @return 如果fileNames 有文件不在 remotePath 路径下面, 则返回的map中这条数据的value 是null
*/
Map<String, FileInfoEntity> getFileEntityMap(String remotePath,String[] fileNames);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.