好像maven2还有很多bug .....命令 mvn deploy 报错:[INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven -deploy-plugin:2.2.1 check that the following section of the pom.xml is present and correct: ... Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated前2天才下的maven2.0.4,plugin是自动下载的。看来只有等官方修正了,不过这个功能也没什么用吧?
-deploy-plugin:2.2.1
check that the following section of the pom.xml is present and correct:
...
Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated前2天才下的maven2.0.4,plugin是自动下载的。看来只有等官方修正了,不过这个功能也没什么用吧?
感觉maven2使用还是很方便的,就是中文文档基本没有...
打成war包,但我还没找到把这个war包copy到指定目录的方法,我在想是不是要用ant任务来做.....,不过这重要吗?正式发布,手工copy就够了,测试的话,使用
mvn jetty:run
就行了,jetty可比tomcat快多了,实际上我一直都是用jetty跑测试的。
maven2的文档,就是官网的咯... http://maven.apache.org/plugins/