![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
maven
文章平均质量分 56
DViewer
求知者
展开
-
Maven Lifecycle and Goals
The previous section covered plugin goals and how to run goals from command line. In very few situations we invoke plugin goals directly and more often than not, lifecycle phases are preferred. In thi转载 2015-11-23 11:32:24 · 768 阅读 · 0 评论 -
Setting the -source and -target of the Java Compiler
Sometimes when you may need to compile a certain project to a different version than what you are currently using. The javac can accept such command using -source and -target. The Compiler Plugin转载 2017-01-17 15:42:18 · 363 阅读 · 0 评论 -
使用 maven 创建 scala 项目问题总结
使用maven创建scala项目,scala-archetype-simple有bug,会遇到一些问题,这里整理记录一下。我的环境是:maven 3.3.9eclipse 4.6java 1.8通过命令行的形式创建 scala项目:#mvn archetype:generate -B \ -DarchetypeGroupId=net.alchim31.maven -Da转载 2017-01-17 12:52:43 · 6791 阅读 · 0 评论 -
maven下载依赖
Quick maven tip for downloading sources of a specific dependencyThis may come in handy. since on big projects with many dependencies it may take a while to download ALL sources. So, here is an examp转载 2016-12-06 16:11:10 · 485 阅读 · 0 评论 -
maven Assembly Basics
Apache Maven Assembly Plugin 文档assembly:assemblyFull name:org.apache.maven.plugins:maven-assembly-plugin:2.6:assemblyThis plugin goal has been deprecated:Use assembly:single instead!转载 2016-02-22 15:25:00 · 494 阅读 · 0 评论 -
maven 使用笔记
1.把某些依赖一起打包> > > >org.apache.maven.plugins> >maven-dependency-plugin> >2.10> > > >copy-depend原创 2016-01-15 12:38:24 · 862 阅读 · 0 评论 -
How to exclude jars generated by maven war plugin
Because of transitive dependencies, my wars are getting populated by xml-apis, xerces jars. I tried following the instructions on the reference page for maven-war-plugin but it is not working.plugin转载 2016-01-14 23:47:40 · 665 阅读 · 0 评论 -
How to create a jar file with Maven
In this tutorial, we will show you how to use Maven build tool, to create a single executable Jar, and how to deal with the project’s dependencies.Tools used :Maven 3.1.1JDK 1.7log4j 1.2.17Jod转载 2016-01-14 23:31:25 · 876 阅读 · 0 评论 -
maven打包的技巧
“打包“这个词听起来比较土,比较正式的说法应该是”构建项目软件包“,具体说就是将项目中的各种文件,比如源代码、编译生成的字节码、配置文件、文档,按照规范的格式生成归档,最常见的当然就是JAR包和WAR包了,复杂点的例子是Maven官方下载页面的分发包,它有自定义的格式,方便用户直接解压后就在命令行使用。作为一款”打包工具“,Maven自然有义务帮助用户创建各种各样的包,规范的JAR包和WAR包自然转载 2016-01-14 22:33:38 · 590 阅读 · 0 评论 -
maven 中的Classifier
Classifier可能是最容易被忽略的Maven特性,但它确实非常重要,我们也需要它来帮助规划坐标。设想这样一个情况,有一个jar项目,就说是 dog-cli-1.0.jar 吧,运行它用户就能在命令行上画一只小狗出来。现在用户的要求是希望你能提供一个zip包,里面不仅包含这个可运行的jar,还得包含源代码和文档,换句话说,这是比较正式的分发包。这个文件名应该是怎样的呢?dog-cli-1.0.转载 2016-01-14 22:31:41 · 10506 阅读 · 1 评论 -
Changing the scala version for scala-maven-plugin
Since version 2.7 of the plugin, the scala version to use is detected from dependency to scala-library. So it suggested to not use scalaVersion configuration. But if you want to define explicitly th转载 2017-01-17 15:44:20 · 1477 阅读 · 0 评论