随笔分类 - Maven
摘要:打开navigator,修改下面的classpath文件:将改成:
阅读全文
摘要:问题:Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original e
阅读全文
摘要:<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> </e
阅读全文
摘要:I use the eclipse webtools plugin, and run my Tomcat from it. It has a republish method that publishes the jars as well (if not, you just clean the directory and republish).In the pom file, you should have the following lines so that the webtools will be supported automatically<build> ... <
阅读全文
摘要:正则表达式中的特殊字符字符含意\做为转意,即通常在"\"后面的字符不按原来意义解释,如/b/匹配字符"b",当b前面加了反斜杆后/\b/,转意为匹配一个单词的边界。-或-对正则表达式功能字符的还原,如"*"匹配它前面元字符0次或多次,/a*/将匹配a,aa,aaa,加了"\"后,/a\*/将只匹配"a*"。^匹配一个输入或一行的开头,/^a/匹配"an A",而不匹配"An a"$匹配一个输入或一行的结尾,/a$/匹配"An a",而不
阅读全文
摘要:方法一:在线安装1.打开HELP->MyEclipse ConfigurationCenter。切换到SoftWare标签页。2.点击Add Site 打开对话框,在对话框Name输入Svn,URL中输入:http://subclipse.tigris.org/update_1.6.x3.在左边栏中找到Personal Site中找到SVN展开。将Core SVNKit Library和Optional JNALibrary添加(右键Add to Profile),Subclipse下面的Subclipse Integration for Mylyn3.0可以不添加(特别注意,此
阅读全文
摘要:下面是官网的说明,基本上的意思下面有图片说明.To install m2eclipse, use the following Eclipse update site to install the core of the m2eclipse plugin. This Core update site contains a single component: “Maven Integration for Eclipse (Required)”. When you install this component you will be installing all of the core Wizard
阅读全文
摘要:用maven构建hibernate项目时,提示:Missing artifact javax.transaction:jta:jar:1.0.1B:compile,这是因为由于sun的许可协议,Maven repository中没有包含这个文件,有两种解决方案,Plan A.我们可以手工添加,具体方法是:1、下载jta-1_0_1B-classes.zip;2、运行mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.
阅读全文