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

随笔分类 -  Maven

摘要:If you had the user's email address set properly (and the smtp configuration set properly), you could click login in the UI and select forgot password, enter the username and email address, and a new password will be sent toyou. If you do not have email setup properly, you will need to manually 阅读全文

posted @ 2013-05-30 11:23 Bruce Zhang 阅读(1043) 评论(0) 推荐(0)

摘要:Need to be able to declare minimum, maximum allowed versions of a dependency (both min and max may be optional), and allow "holes" for known incompatible versions.Proposed syntax:RangeMeaning(,1.0]x <= 1.01.0"Soft" requirement on 1.0 (just a recommendation - helps select the c 阅读全文

posted @ 2013-05-16 17:51 Bruce Zhang 阅读(200) 评论(0) 推荐(0)

摘要:假设我在2013年03月07日08时48分52秒在我自己的电脑上使用“mvn clean install”构建了“com.my.testu:testu:1.0.1-SNAPSHOT”。那么Maven会在本地仓库目录“C:\MavenRepo\com\my\testu\1.0.1-SNAPSHOT”下生成文件“maven-metadata-local.xml”,内容如下:<?xml version="1.0" encoding="UTF-8"?><metadata modelVersion="1.1.0"> &l 阅读全文

posted @ 2013-04-08 09:34 Bruce Zhang 阅读(5217) 评论(0) 推荐(0)

摘要:There are some implicit properties available in any Maven project, these implicit properties are:project.*Maven Project Object Model (POM). You can us... 阅读全文

posted @ 2013-03-19 14:17 Bruce Zhang 阅读(306) 评论(0) 推荐(0)

摘要:操作系统:CentOS平台:Jenkins1. 启动Jenkins时,会启动一个JVM:jenkins 12280117 16:29 ? 00:00:54 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war... 阅读全文

posted @ 2013-03-18 17:27 Bruce Zhang 阅读(1480) 评论(0) 推荐(0)

摘要:1. Module的并行特性:待续。。。2. maven-surefire-plugin的并行特性:参考文档:http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html选择合适的fork策略和并行设置,可以极大的影响测试的内存消耗和运行时间。surefire为并行执行提供了多种配置项,你可以根据服务器的硬件参数任意配置。并且,特别需要提到的是,合适的fork配置可以减小内存消耗。基本上,surefire有两种方法可以实现并行测试。最明显的方法就是 阅读全文

posted @ 2013-03-18 10:40 Bruce Zhang 阅读(667) 评论(0) 推荐(0)

摘要:Nexus的LDAP配置可能会根据各自的LDAP 服务器不同而不同。贴上我的相关配置:1. LDAP Configuration配置:2. Server配置:3. 为LDAP中的Group配置Role:Step1: 创建“External Role Mapping”类型的RoleStep2: 选择 LDAP类型的Realm,并选择相应LDAP GroupStep3: 配置合适权限 阅读全文

posted @ 2013-03-15 10:24 Bruce Zhang 阅读(5041) 评论(1) 推荐(0)

摘要:1. CentOS下安装SonaType Nexus:1.1 下载SonaTYpe Nexus:cd /usr/local/srcwget http://download.sonatype.com/nexus/oss/nexus-2.3.1-01-bundle.tar.gz1.2 安装:cd /usr/local/srcsudo cp nexus-2.3.1-01-bundle.tar.gz /usr/localcd /usr/localsudo tar xvzf nexus-2.3.1-01-bundle.tar.gzln -s nexus-2.3.1-01 nexuscpnexus/bin 阅读全文

posted @ 2013-03-14 14:23 Bruce Zhang 阅读(6000) 评论(1) 推荐(0)

摘要:I've recently setup and successfully got Sonar and Jacoco running together. Since I'm recent with the topic, I figured I'd check on stackoverflow for similar issues and help out. I am getting results from Jacoco, but found you had to explicitly set the following parameters in addition to 阅读全文

posted @ 2013-03-05 17:08 Bruce Zhang 阅读(8196) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2013-02-26 10:05 Bruce Zhang 阅读(155) 评论(0) 推荐(0)

摘要:首先截取一段《Maven: The Complete Reference》关于Maven四维为坐标的解释:Coordinates define a unique location for a project. Projects are related to one another using Maven Coordinates.project-adoesn’t just depend onproject-b; a project with agroupId,artifactId, andversiondepends on another project with agroupId,artifa 阅读全文

posted @ 2013-01-18 10:54 Bruce Zhang 阅读(854) 评论(0) 推荐(0)

摘要:背景:我用Jenkins做CI,并同时加Sonar做单元测试和质量扫描。大家都知道,让Maven过滤掉单元测试一般会使用 -Dmaven.test.skip=true(即不编译单元测试代码,也不运行单元测试)。但是如果直接用-Dmaven.test.skip=true会导致Sonar也不跑单元测试。技巧:使用-Dtest -DfailIfNoTests=false 让单元测试仅仅在Sonar扫描时启动。解释:下面是官方对于“test”和“failIfNoTests”的解释:testString-Specify this parameter to run individual tests by 阅读全文

posted @ 2013-01-17 18:39 Bruce Zhang 阅读(2942) 评论(0) 推荐(0)