
Maven
jxxchallenger
不是看到希望才努力,而是努力了才能看到希望。
展开
-
Maven下载sources 源码包命令
mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true原创 2019-05-17 13:18:49 · 5386 阅读 · 0 评论 -
设置Maven的默认jdk编译版本
如果你不在项目中指定jdk编译版本,maven默认使用jdk 1.5版本,可以修改maven的settings.xml指定jdk版本,在<profiles></profiles>增加如下配置 <profile> <id>jdk8</id> <activation> ...原创 2019-05-15 23:36:02 · 3542 阅读 · 2 评论 -
Maven 打包生成-source.jar源码
maven-source-plugin 插件可以用来生成项目源码-source.jar文件使用命令行在项目路径下使用打开命令行工具(cmd/shell)mvn source:jar绑定到项目构建生命周期 <build> <plugins> <plugin> &l...原创 2019-05-05 22:03:29 · 9094 阅读 · 0 评论 -
maven 多核多线程执行
增加跳过测试代码的编译命令:-Dmaven.test.skip=true指明多线程进行编译:-Dmaven.compile.fork=truemvn -T 4 clean installmvn -T 1C clean install原创 2019-02-20 22:49:43 · 8222 阅读 · 1 评论 -
使用spring-framework-bom统一Spring版本
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-framework-bom</artifactId> &原创 2018-08-08 21:01:33 · 3194 阅读 · 0 评论 -
MANIFEST.MF文件
有时候我们需要在命令行下运行Jar包, 而一个Jar包通常会依赖其他的jar包,这样每次命令行运行时都需要将依赖的jar包classpath, 还有指定main方法的类全限定名称, 特别费尽,最近发现可以用MANIFEST.MF文件解决上面的问题在MANIFEST.MF文件中指定Main-Class和Class-Path就可以在运行命令时不需要指定依赖的Jar包,和main方法的全限定类名运行时之...原创 2018-06-27 23:19:09 · 2413 阅读 · 0 评论 -
log4j2配置
1、添加maven依赖 org.apache.logging.log4j log4j-core 2.8.2 org.apache.logging.log4j log4j-api 2.8.2 org.apache.logging.log4j log4j-slf4j-impl 2.8.2 org.apache.logging.log4j log4j-jcl 2.8.2原创 2017-07-15 11:23:25 · 726 阅读 · 0 评论 -
安装非开源jar包到maven本地仓库命令
mvn install:install-file -Dfile=xxxx -DgroupId=xxxx -DartifactId=xxxx -Dversion=xxxx -Dpackaging=jar原创 2017-02-28 20:13:58 · 594 阅读 · 0 评论