文章分类 -  Maven+Nexus

摘要:转自http://kyfxbl.iteye.com/blog/1678121在一个大项目中拆分maven工程时,很有可能会把js、css、jsp等文件放在不同的工程里(根据业务模块划分)。因为如果都集中在一个maven webapp里,那么这个maven webapp会太大,而且在业务上也比较分散。... 阅读全文
posted @ 2015-04-03 19:10 princessd8251 阅读(680) 评论(0) 推荐(0) 编辑
摘要:Maven Resources plugin example from http://maven.apache.org/plugins/maven-resources-plugin/Specifying a character encoding schemeA character encoding ... 阅读全文
posted @ 2014-07-15 18:53 princessd8251 阅读(1227) 评论(0) 推荐(0) 编辑
摘要:I recentlyinstalledMaven at a client site that had a NTLM proxy, and ran into issues because it was failing to download maven dependencies. I was foll... 阅读全文
posted @ 2014-07-01 17:21 princessd8251 阅读(1903) 评论(0) 推荐(0) 编辑
摘要:1.Introduction to the Build Lifecyclehttp://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html2. Maven Assembly plugin Exampleshttp://maven.apache.org/plugins/maven-assembly-plugin/examples/index.html3. Maven Assembly Plugin overviewhttps://maven.apache.org/plugins/maven-assembl 阅读全文
posted @ 2014-04-10 16:44 princessd8251 阅读(155) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/wangjunjun2008/article/details/11201869使用Maven对Web项目进行打包,默认为war包;但有些时候,总是希望打成zip包(亦或其他压缩包),maven-war-plugin插件就无能为力了,这时就用到了maven-assembly-plugin插件了,官方网址:http://maven.apache.org/plugins/maven-assembly-plugin/该插件能打包成指定格式分发包,更重要的是能够自定义包含/排除指定的目录或文件(遗留项目中,过滤配置文件时,或者仅仅需要发布图片或者CSS/JS 阅读全文
posted @ 2014-04-10 16:35 princessd8251 阅读(488) 评论(0) 推荐(0) 编辑
摘要:AssemblyMaven Assembly Plugin relies on the provided assembly descriptors to dictate its execution. Although there are already prefabricated descriptors available for use, they can only suffice some of the common assembly requirements.So in order for you to customize the way the Assembly Plugin crea 阅读全文
posted @ 2014-04-10 16:09 princessd8251 阅读(1239) 评论(0) 推荐(0) 编辑
摘要:SCM使用GIT而非SVN时,使用Maven发布,总是会出一些莫名其妙的问题,google查找原因,无意中看到了这个插件;对于该插件,到目前为止,文档比较少,尤其是中文的文档;全部的信息都包含在项目说明文件中了;项目地址:https://github.com/ktoso/maven-git-commit-id-plugin作者说该插件类似于 buildnumber-maven-plugin 插件(关于该插件,可参考http://blog.csdn.net/u011453631/article/details/10394475),并对其进行了扩展。buildnumber-maven-plugin 阅读全文
posted @ 2014-04-02 18:53 princessd8251 阅读(844) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/wangjunjun2008/article/details/10394475某些情况下(这种情况一般很少见),使用maven构建项目时,需要一个不重复的序列号,比如说,打包时,包名称以当前构建时间结尾,或者每次生成的jar包中包含唯一的序列号,等等;这个时候,就用到了buildnumber插件,官方网址:http://mojo.codehaus.org/buildnumber-maven-plugin/index.html该插件能按照指定的方案生成序列号;首先引入该插件[html] view plaincopyorg.codehaus.mojob 阅读全文
posted @ 2014-04-02 18:52 princessd8251 阅读(1662) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示